Re: [csswg-drafts] [css-color] [css-ui-4] Authors should have access to accent-color value to use in their code (#5900)

This is a great idea. Most frontend developers are familiar with the `accent-color` property but on professional websites its more common to use `appearance: none` and customise the control, which limits the usefulness of `accent-color`. There are hundreds of component libraries out there. Currently they all use differently named custom properties. Imagine knowing how to style form controls without needing to look in the docs. Some websites use both native form controls and some custom form controls. With this property you could be confident you were styling all of them with a single line of CSS. I've built custom checkboxes/radios/etc plenty of times in various JavaScript frameworks over the years. Having a consistent way to style them is definitely worthwhile. 

-- 
GitHub Notification of comment by o-t-w
Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/5900#issuecomment-1665147302 using your GitHub account


-- 
Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config

Received on Friday, 4 August 2023 07:36:46 UTC