Change the colors of the code block components

What I’m trying to do

Hello everyone! I hope somebody can help me to
change the colors of the code block components.

Things I have tried

I changed the colors and in edit mode everything works. But as soon as I switch to view mode, the changes are not displayed.

I tried to fix it using this code:

.markdown-preview-view {
color: #800000;

but it did not help :frowning:

my code:

edit mode/ view mode:

Please, help :frowning:

Here are the custom properties defined in the app.css theme variables section. You could try adjusting a few or all of these. With ```html set as the code block language, Editing and Reading views looked about the same with the few adjustments I made.

body {
    --code-background: var(--background-primary-alt);
    --code-normal: var(--text-muted);
    --code-comment: var(--text-faint);
    --code-function: var(--color-yellow);
    --code-important: var(--color-orange);
    --code-keyword: var(--color-pink);
    --code-operator: var(--color-red);
    --code-property: var(--color-cyan);
    --code-punctuation: var(--text-muted);
    --code-string: var(--color-green);
    --code-tag: var(--color-red);
    --code-value: var(--color-purple);

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.