adding variants to tailwind.config.ts doesn't update #3675
Unanswered
sedagulkesen
asked this question in
Help
Replies: 1 comment
-
Hey! These will only take place if you also add the I think you can actually achieve what you want to do here much more easily with the Tailwind CSS forms plugin. Here's a Tailwind Play that shows how you can style the color of the checkbox with https://play.tailwindcss.com/WGi7NYNLfk Fun timing because we're working on making this plugin more visible in the documentation - I am actually working on a video to explain this plugin right now 😅 |
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
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hello Tailwind team,
I am using Tailwind v2.0.3. I am trying to customize the background colour of the checkbox element once it is in
checked
status.By following the documentation here , first I added
checked
variants totailwind.config.js
file as following:After the changes on
tailwind.config.ts
, I am runningyarn build
.Then, I have added the
checked:
prefix to the element like this:The checked class doesn't seem to be applied, it still shows the
background-color
as the default colour.Beta Was this translation helpful? Give feedback.
All reactions