Skip to content

Latest commit

 

History

History
39 lines (27 loc) · 2.07 KB

README.md

File metadata and controls

39 lines (27 loc) · 2.07 KB

Obsidian Webviews

This plugin allows you to embed any website into obsidian, ontop of that, you can use (some) obsidian theme variables in your css snippets too like background-primary-obsidian This is based on Obsidian OpenGate

Example Images

image

image

image

Currently supported obsidian variables (can add more just by adding stuff to the arry in getCurrentCSSvalues.ts)

Variable Within webview CSS
--background-primary --background-primary-obsidian
--background-secondary --background-secondary-obsidian
--text-normal --text-normal-obsidian
--hr-color --hr-color-obsidian
--inline-title-color --inline-title-color-obsidian
--background-modifier-hover --background-modifier-hover-obsidian
--workspace-background-translucent --workspace-background-translucent-obsidian
--font-editor --font-editor-obsidian
--background-modifier-border --background-modifier-border-obsidian
--bold-color --bold-color-obsidian
--italic-color --italic-color-obsidian

Some CSS examples are present within the presets.ts file in this repo.

Usage

  1. Type New gate into the command palette
  2. type the url and title of the site you want to embed
  3. click Create

You can access the webviews from the left sidebar