Skip to content

Unable to style background color of checkbox/radio #184

@Vinze

Description

@Vinze

What version of @tailwindcss/forms are you using?

v0.5.11

What version of Node.js are you using?

v22.22.0

What browser are you using?

Chrome, Firefox

What operating system are you using?

Fedora

Reproduction repository

https://play.tailwindcss.com/2lY3Z2TaqM

Describe your issue

I'm unable to set the background color of a checkbox or radio input. See the following example:

https://play.tailwindcss.com/2lY3Z2TaqM

When removing the bg-gray-100 class it does work. Also, in Tailwind V3 I didn't have this issue so I'm guessing it introduced with V4.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions