We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Using these custom colors:
// tailwind.config.js module.exports = { theme: { extend: { colors: { primary: { 50: "#caf0f8", 300: "#90e0ef", 600: "#0077b6", 900: "#03045e", }, nested: { primary: { 50: "#caf0f8", 300: "#90e0ef", 600: "#0077b6", 900: "#03045e", }, }, }, }, }
When something like this is rendered in dark mode:
<div className="w-64 h-64 bg-nested-primary-50" />
It renders with bg-nested-primary-900, as it would if it were:
<div className="w-64 h-64 bg-primary-50" />
In dark more,
does not change colors to its dark variant.
Key nested colors as hyphenated keys:
// tailwind.config.js module.exports = { theme: { extend: { colors: { primary: { 50: "#caf0f8", 300: "#90e0ef", 600: "#0077b6", 900: "#03045e", }, "nested-primary": { 50: "#caf0f8", 300: "#90e0ef", 600: "#0077b6", 900: "#03045e", }, }, }, }, }
The text was updated successfully, but these errors were encountered:
Thanks for pointing this out and proposing a workaround. Planning to fix this in a future version of the library
Sorry, something went wrong.
No branches or pull requests
Expected
Using these custom colors:
When something like this is rendered in dark mode:
It renders with bg-nested-primary-900, as it would if it were:
Actual
In dark more,
does not change colors to its dark variant.
Current workaround:
Key nested colors as hyphenated keys:
The text was updated successfully, but these errors were encountered: