Back to Snippets

Customizable Select with appearance base-select CSS

A status field that looks like a designed dropdown, with a colored dot beside every option and a check beside the chosen one, yet it is a plain select element. Keyboard behavior, screen reader support and form submission stay native because nothing has been replaced.

The switch is appearance set to base-select on the select and on its ::picker(select) pseudo-element. That opts the control into the browser's stylable mode, where the button, the picker and each option are ordinary boxes that take normal CSS, and options may contain elements such as the swatch spans here. The selectedcontent element mirrors the chosen option into the button, and ::checkmark is the tick the browser draws beside the current choice.

Customizable select shipped in Chrome and Edge in 2025. A browser without it ignores the appearance value and renders its own select, so the field never breaks.

0
#css
#html
#select
#dropdown
#form
#customizable select
#ui