Skip to content

Add coloured check marks #27

Closed
Closed
@MarcelloTheArcane

Description

@MarcelloTheArcane

I'm using a checkbox on a coloured background, and so I want the checkbox box to be white, and the tick inside to be the same colour as the background. Here's one made from an SVG I stole from here before Tailwind 2:

image

I'm trying to replicate this using just classes with Tailwind 2, but have been unable to so far:

image

<input type="checkbox" class="ml-1 h-4 w-4 rounded border-gray-400 focus:border-raisin focus:ring-2 focus:ring-black text-white">

(I have a custom colour called 'raisin' which is #27262c)

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions