Skip to content

Instantly share code, notes, and snippets.

@andreiRS
Created March 4, 2021 10:34
Show Gist options
  • Save andreiRS/e23458997b8daf7b2d954fcbae56990e to your computer and use it in GitHub Desktop.
Save andreiRS/e23458997b8daf7b2d954fcbae56990e to your computer and use it in GitHub Desktop.
A simple css snippet that extends the minimalist obsidian theme with custom colors for headers
/* colors of italics in Edit mode all notes in a vault */
.cm-em, em {
color: #ffb86c !important;
}
.cm-strong, strong {
color: #ff5555 !important;
}
/* headings for editor and preview */
.cm-header-1, .markdown-preview-view h1
{
color: #ff79c6 !important;
}
.cm-header-2, .markdown-preview-view h2
{
color: #bd93f9 !important;
}
.cm-header-3, .markdown-preview-view h3
{
color: #F49145 !important;
}
.cm-header-4, .markdown-preview-view h4
{
color: #ffb86c !important;
font-variant:normal !important;
}
.cm-header-5, .markdown-preview-view h5
{
color: #94F434 !important;
font-variant:normal !important;
}
.cm-header-6, .markdown-preview-view h6
{
color: #ff5555 !important;
font-variant:normal !important;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment