DEV Community

Ken Sparks
Ken Sparks

Posted on

Input[type='checkbox'] question. Is there a way to change the color of the checkmark?

I've looked at a lot of articles regarding checkboxes and styling them. I'm just looking for a way to change the color of the checkmark. Is there a way to do this without creating a brand new checkmark or using an icon?

Top comments (2)

Collapse
 
crimsonmed profile image
Médéric Burlet

The default no but you can create your own. W3Schools has a very simple tutorial for this:
w3schools.com/howto/howto_css_cust...

Collapse
 
patarapolw profile image
Pacharapol Withayasakpunt

You might try to access "shadowRoot".

A Workflow Copilot. Tailored to You.

Pieces.app image

Our desktop app, with its intelligent copilot, streamlines coding by generating snippets, extracting code from screenshots, and accelerating problem-solving.

Read the docs

👋 Kindness is contagious

Please leave a ❤️ or a friendly comment on this post if you found it helpful!

Okay