Changing the page name font's color #7981
-
Hi all, I'm trying to change the color of the page name that is displayed as your first h1 header. I'd like the h1 (i.e. "Calendar") to be displayed in black, just as the h2 "Calendar Views" The corresponding markdown file is structured as follows:
I've tried different approaches, including changing the color palette, but I did not succeed. Can anyone point me into the right direction? Thanks! |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Hello @manueleckarth, The other headings seem to be using the default from the .md-typeset h1 {
color: var(--md-typeset-color);
} Selecting only |
Beta Was this translation helpful? Give feedback.
Hello @manueleckarth,
the H1 heading has custom styling, different than the rest of the page. This can be seen in your Browser Web Tools.
The other headings seem to be using the default from the
body
styling, which appliescolor: var(--md-typset-color)
.Therefore, you can add extra css to your site and add this:
Selecting only
h1
without the.md-typeset
isn't enough, because of Specificity