v4 + svelte, specify :dark variant for a color in app.css #13612
Unanswered
yanismarkin
asked this question in
Help
Replies: 1 comment
-
You could do: @theme {
--color-pink: #FF00FE;
}
@media (prefers-color-mode: dark) {
:root {
--color-pink: #FF00AA;
}
} See this working in this Tailwind Play (you can use your browser's developer tools or your system settings to toggle |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
is there a way to specify :dark variant for a color in app.css:
to simply use one color name in html:
<p class="text-pink bg-pink">123</p>
Beta Was this translation helpful? Give feedback.
All reactions