Skip to content

Gradient Frames

Eda edited this page Apr 27, 2024 · 2 revisions

Gradient Frames

Add color to your Obsidian window with hand-picked gradients!

gradient frames

42 linear gradients are from WebGradients.

You can choose the linear gradient direction: top or bottom.

Note: You can use the Obsidian Style Settings plugin to easily switch between gradients and their direction.

The top two frames show the top direction in gradients in dark and light themes, and the ones at the bottom display the when the direction is set to bottom.

warm flame night fade spring warmth young passion sunny morning rainy ashville winter neva warm flame heavy rain malibu beach true sunset morpheus den wild apple plum plate happy fisher blessing snow again february ink soft grass teen notebook purple division aqua splash love kiss premium dark cold evening summer games midnight bloom crystalline le cocktail frozen berry new retrowave dense water seashore cheerful caramel night sky colorful peach plum bath glass water north miracle smart indigo aqua guidance night call

You can add more gradients of your choosing with top and bottom variations, such as:

:root {
  ...
  --rainy-ashville-top: linear-gradient(to top, #fbc2eb 0%, #a6c1ee 100%);
  --rainy-ashville-bottom: linear-gradient(to bottom, #fbc2eb 0%, #a6c1ee 100%);
}

You can then create the styles:

body.top.rainy-ashville .workspace-tab-header-container,
body.top.rainy-ashville .workspace-ribbon.mod-left:before,
body.top.rainy-ashville .sidebar-toggle-button.mod-right {
  background-image: var(--rainy-ashville-top);
  color: var(--color-dark); /* or var(--color-light) */
  ...
}

body.bottom.rainy-ashville .workspace-tab-header-container,
body.bottom.rainy-ashville .workspace-ribbon.mod-left:before,
body.bottom.rainy-ashville .sidebar-toggle-button.mod-right {
  background-image: var(--rainy-ashville-bottom);
  color: var(--color-dark); /* or var(--color-light) */
  ...
}

And add them in gradient-frames.css in .obsidian/snippets folder inside your Obsidian vault.