-
-
Notifications
You must be signed in to change notification settings - Fork 32.6k
[docs] text-secondary CSS variable does not work with Tailwind v4 #47870
Copy link
Copy link
Closed
Labels
customization: cssDesign CSS customizability.Design CSS customizability.docsImprovements or additions to the documentation.Improvements or additions to the documentation.scope: systemThe system, the design tokens / styling foundations used across components. eg. @mui/system with MUIThe system, the design tokens / styling foundations used across components. eg. @mui/system with MUItype: bugIt doesn't behave as expected.It doesn't behave as expected.
Metadata
Metadata
Assignees
Labels
customization: cssDesign CSS customizability.Design CSS customizability.docsImprovements or additions to the documentation.Improvements or additions to the documentation.scope: systemThe system, the design tokens / styling foundations used across components. eg. @mui/system with MUIThe system, the design tokens / styling foundations used across components. eg. @mui/system with MUItype: bugIt doesn't behave as expected.It doesn't behave as expected.
Steps to reproduce
Steps:
className="text-text-secondary".e.g. Lizards are a widespread group of squamate reptiles, with over 6,000 species, ranging across all continents except Antarctica
Current behavior
The computed color is a plain rgb (no alpha) color:
rgb(0,0,0)in light mode,rgb(255,255,255)in dark mode.Expected behavior
The computed colors should resolve to the same colors as in the default theme found at
palette.text.secondary, which arergba(0, 0, 0, 0.6)andrgba(255, 255, 255, 0.7), respectively.https://mui.com/material-ui/customization/default-theme/
Context
I am running across this issue in my nextjs application, but it seemed easier to use the official documentation to demonstrate the issue.
Your environment
npx @mui/envinfoSearch keywords: tailwind text-secondary CSS variable