Unable to Overwrite Sphinx Design Variables with Furo Variables #298
-
From what I can tell, it's not possible to overwrite CSS variables introduced by Sphinx Design with those from Furo. For example, I would like to be able to do: :root {
--sd-color-info: var(--color-admonition-title-background--note);
--sd-color-warning: var(--color-admonition-title-background--warning);
--sd-color-danger: var(--color-admonition-title-background--danger);
} However the CSS variables from Furo get defined after those from my custom CSS is so I'm unable to use them in this way. Note: setting the priority of my CSS files in |
Beta Was this translation helpful? Give feedback.
Answered by
rmorshea
Nov 10, 2021
Replies: 1 comment
-
Correction. I just needed to change my CSS from body {
--sd-color-info: var(--color-admonition-title-background--note);
--sd-color-warning: var(--color-admonition-title-background--warning);
--sd-color-danger: var(--color-admonition-title-background--danger);
} |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
rmorshea
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Correction. I just needed to change my CSS from
:root
tobody
: