Skip to content

Instantly share code, notes, and snippets.

@aquatix
Last active October 17, 2022 14:59
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save aquatix/82f8df145ae77a1160f58d894ddb7791 to your computer and use it in GitHub Desktop.
Save aquatix/82f8df145ae77a1160f58d894ddb7791 to your computer and use it in GitHub Desktop.
Obsidian Prism frontmatter highlighting
/* color YAML value text */
span.cm-meta.cm-hmd-frontmatter + span.cm-hmd-frontmatter {
/* color: blue; */
color: var(--orange200);
}
/* color YAML value - if it's a number */
span.cm-number.cm-hmd-frontmatter {
/* color: pink !important; */
color: var(--pink300) !important;
}
/* color YAML key text */
span.cm-atom.cm-hmd-frontmatter {
/* color: green; */
color: var(--green200);
}
/* color YAML separator text */
span.cm-meta.cm-hmd-frontmatter {
/*color: red;*/
color: var(--text-faint);
}
/* Divider line */
span.cm-def.cm-hmd-frontmatter {
color: var(--text-faint) !important;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment