Extending existing theme options in V4 #15371
Unanswered
SebastianPfliegel
asked this question in
Help
Replies: 1 comment
-
I also ran into a similar issue. I had to do the following to get my fonts to work with the default fallbacks: @theme inline {
--font-serif: var(--font-family-serif);
--font-newfont: var(--font-family-newfont);
}
@layer base {
:root {
--font-family-serif: "MyFont", var(--font-serif);
--font-family-newfont: "MyFont", var(--font-serif);
}
} |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
In the JS config files theme options could be extended with the spread operator like this:
How would I accomplish this behaviour in the CSS config files? I tried the following:
The first try with overriding the existing
--font-serif
does not work. Creating a new font based on--font-serif
works though.Beta Was this translation helpful? Give feedback.
All reactions