Improvements for Element Styling
Learn about useful new properties for styling elements like accent-color, color-scheme properties, color modes, and text decoration improvements.
We'll cover the following...
The accent-color
property
One of the most common things frameworks and design systems seek to change is native form field styles. Prior to the arrival of the accent-color
property, even changing a form element’s color was impossible. With accent-color
, we can now influence the checked appearance of radio buttons and checkboxes, and the filled-in state for range inputs and the progress element.
The color-scheme
property
If we’re looking to adapt our interface to a user’s light or dark mode preference ...