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
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.
- Type
New gate
into the command palette - type the url and title of the site you want to embed
- click
Create
You can access the webviews from the left sidebar