Skip to content
Discussion options

You must be logged in to vote

Yes, you're correct, thanks for pointing this out.

The SCSS for this specific scheme color is scoped to the primary color too. So in the inspector it's shown that the applied override is crossed off. And this selector for the color definition has higher Specificity, [data-md-color-scheme="slate"][data-md-color-primary="black"]. You can add one more attribute without a value to override it properly.

[data-md-color-scheme="slate"][data-md-color-primary] {
  --md-typeset-a-color: red;
  --md-accent-fg-color: blue;
}

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@Guangzhen-Jin
Comment options

@kamilkrzyskow
Comment options

Answer selected by Guangzhen-Jin
@Guangzhen-Jin
Comment options

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