Recommended way to add style to existing class in v4 ? #16921
anthonyhexium
started this conversation in
General
Replies: 2 comments 1 reply
-
You should be able to apply @theme {
--font-sans: Foo, sans-serif;
--font-sans--font-variation-settings: 'opsz' 14;
} |
Beta Was this translation helpful? Give feedback.
0 replies
-
@wongjn it works yes (thank you). Maybe I didn't took the wright example ... 😅 What about this : @utility prose {
--tw-prose-bullets: var(--color-gray-800);
--tw-prose-counters: var(--color-gray-800);
--tw-prose-headings: var(--color-gray-950);
}
.prose :is(h1, h2, h3, h4, h5, h6) a {
color: inherit;
text-decoration: inherit;
font-weight: inherit;
}
.prose ol > li::marker {
font-weight: 700;
font-family: var(--font-sans);
} |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi,
Everything is in the title but what do you recommand ?
I want for example to add
font-variation-settings: 'opsz' 32;
to myfont-sans
class.Should I do
Or
Thanks !
Beta Was this translation helpful? Give feedback.
All reactions