-
I try to ovveride the --tw-prose-links variable that is set by the @tailwindcss/typography plugin, i tried to override it in @theme {} but it doesn't work. Is there a good way to do that ? |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 2 replies
-
You could use @utility prose {
--tw-prose-links: …;
} |
Beta Was this translation helpful? Give feedback.
-
This solution stopped working, it doesn't take precedence over the base typography setup. I don't now what changed here, but this should be the case if you setup your .css file like @plugin "@tailwindcss/typography";
@utility prose {
--tw-prose-body: var(--color-primary);
} I would expect that my body color now honors --color-primary... (note, this worked before, versions: "@tailwindcss/typography": "^0.5.16", "tailwindcss": "^4.1.11") |
Beta Was this translation helpful? Give feedback.
You could use
@utility
like: