Skip to content
Discussion options

You must be logged in to vote

You can use the CSS selectors described here to switch the color variables for the code. Note that the default color schemes are called default and slate. The following switches just one color but you can modify this to your heart's content:

[data-md-color-scheme="default"] { 
    --md-code-hl-number-color: #B5CEA8;
    --md-code-hl-special-color: #DCDCAA;
    --md-code-hl-function-color: #DCDCAA;
    --md-code-hl-constant-color: #569CD6;
    --md-code-hl-keyword-color: #C586C0;
    --md-code-hl-string-color: #CE9178;
    --md-code-hl-name-color: #9CDCFE;
    --md-code-hl-operator-color: #D4D4D4;
    --md-code-hl-punctuation-color: #D4D4D4;
    --md-code-hl-comment-color: #6A9955;
    --m…

Replies: 2 comments 1 reply

Comment options

alexvoss
Feb 22, 2024
Collaborator Sponsor

You must be logged in to vote
1 reply
@SohamTilekar
Comment options

Comment options

alexvoss
Feb 22, 2024
Collaborator Sponsor

You must be logged in to vote
0 replies
Answer selected by alexvoss
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants