-
-
Notifications
You must be signed in to change notification settings - Fork 4.8k
Closed
Description
What version of Tailwind CSS are you using?
"^4.1.9"
What build tool (or framework if it abstracts the build tool) are you using?
"next": "16.0.0"
What version of Node.js are you using?
For example: v22.0.0
What browser are you using?
Chrome
What operating system are you using?
macOS
Describe your issue
Custom font-size defined in global.css with --text- conflicts with custom colors defined with --color-, the last one in layout will be applied:
text-xxsis applied andtext-custom-accent-highlightentirely ignored, even won't appear in html tree.
'text-custom-accent-highlight text-xxs'
text-custom-accent-highlightis applied andtext-xxsentirely ignored, even won't appear in html tree.
'text-xxs text-custom-accent-highlight'
global.css:
:root{...}
.dark{...}
@theme inline {
--text-xxs: 0.688rem;
--text-xxxs: 0.625rem;
--color-custom-accent-highlight: var(--hotline-accent-highlight);
}
Outsmarting tailwind like this won't work either:
@layer utilities {
.text-xxs {
font-size: var(--text-xxs);
}
.text-xxxs {
font-size: var(--text-xxxs);
}
}
Metadata
Metadata
Assignees
Labels
No labels