Skip to content

Instantly share code, notes, and snippets.

@ScriptAutomate
Created January 4, 2022 17:47
Show Gist options
  • Save ScriptAutomate/2c7bd7ccf8987f40f4125d8272333d55 to your computer and use it in GitHub Desktop.
Save ScriptAutomate/2c7bd7ccf8987f40f4125d8272333d55 to your computer and use it in GitHub Desktop.
Simple VS Code customization (in settings.json) to change heading colors and section folding shading. Makes reading markdown heck of a lot easier.
"workbench.colorCustomizations": {
"editor.foldBackground": "#f6f7d6"
},
"editor.tokenColorCustomizations": {
"textMateRules": [
{
"scope": "heading.1.markdown entity.name.section.markdown, heading.1.markdown punctuation.definition.heading.markdown",
"settings": {
"foreground": "#0111a1",
"fontStyle": "bold",
}
},
{
"scope": "heading.2.markdown entity.name.section.markdown, heading.2.markdown punctuation.definition.heading.markdown",
"settings": {
"foreground": "#0787ff",
"fontStyle": "bold"
}
},
{
"scope": "heading.3.markdown entity.name.section.markdown, heading.3.markdown punctuation.definition.heading.markdown",
"settings": {
"foreground": "#7f41e4",
"fontStyle": "bold"
}
},
{
"scope": "heading.4.markdown entity.name.section.markdown, heading.4.markdown punctuation.definition.heading.markdown",
"settings": {
"foreground": "#308144",
"fontStyle": "bold"
}
},
{
"scope": "heading.5.markdown entity.name.section.markdown, heading.5.markdown punctuation.definition.heading.markdown",
"settings": {
"foreground": "#ad9614",
"fontStyle": "bold"
}
}
]
}
@ScriptAutomate
Copy link
Author

Originally shared by kzilla#8818 (is on GitHub, too) on the Dendron Discord:

Simple VS Code customization (in settings.json) to change heading colors and section folding shading. Makes reading markdown heck of a lot easier. (ref: https://stackoverflow.com/questions/61181136/how-do-i-change-markdown-heading-color-by-heading-level-in-vs-code-editor)

See the comment here: original message

@ScriptAutomate
Copy link
Author

vinniefm#7247 shared on the Dendron Discord:

Very helpful but that H1 blue on dark is a little harsh on the eyes. I'm taking a look at these from Coolors

  • DFD5a5 (medium champagne)
  • D1FAFF (light cyan)
  • E0A458 (earth yellow)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment