# Styled Select Options

> A select whose open dropdown and options are fully styled with appearance: base-select, falling back to a native select.

- Category: [CSS Form Elements](https://copy-css.com/category/forms)
- Tags: select, base-select, picker, dropdown, option styling, progressive enhancement
- Live preview: https://copy-css.com/snippets/styled-select-options
- License: Free for personal and commercial use. No signup, no attribution required.

## HTML

```html
<label class="select-pick">
  <span>Status</span>
  <select name="status">
    <option>Backlog</option>
    <option selected>In progress</option>
    <option>In review</option>
    <option>Done</option>
  </select>
</label>
```

## CSS

```css
.select-pick {
  display: grid;
  gap: 6px;
  width: 220px;
  color: #312e81;
  font: 600 13px system-ui, sans-serif;
}

.select-pick select {
  padding: 10px 12px;
  border: 1.5px solid #c7d2fe;
  border-radius: 10px;
  background: #fff;
  color: #1e1b4b;
  font: 15px system-ui, sans-serif;
  cursor: pointer;
}

.select-pick select:focus-visible {
  border-color: #4f46e5;
  outline: 3px solid rgba(79, 70, 229, 0.2);
  outline-offset: 0;
}

/* Browsers that support customizable selects get a fully styled dropdown. */
.select-pick select,
.select-pick select::picker(select) {
  appearance: base-select;
}

.select-pick select::picker(select) {
  margin-top: 4px;
  padding: 4px;
  border: 1px solid #c7d2fe;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 12px 30px -10px rgba(49, 46, 129, 0.35);
}

.select-pick option {
  padding: 8px 10px;
  border-radius: 8px;
  color: #1e1b4b;
}

.select-pick option:hover,
.select-pick option:focus-visible {
  background: #eef2ff;
  outline: none;
}

.select-pick option:checked {
  background: #4f46e5;
  color: #fff;
  font-weight: 600;
}

.select-pick option::checkmark {
  content: "✓";
}

.select-pick select::picker-icon {
  color: #4f46e5;
  transition: rotate 0.2s ease;
}

.select-pick select:open::picker-icon {
  rotate: 180deg;
}
```

## Notes

- This CSS Styled Select Options is 69 lines of pure CSS (1.3 KB) with no JavaScript and no dependencies. It uses customizable select (appearance: base-select), transitions, box shadows and CSS Grid.
- customizable select (appearance: base-select): Chrome and Edge 135+. Safari and Firefox are still rolling it out; without it you get a normal native select.
- In JSX use `className` instead of `class`. In Tailwind projects put the CSS in the global stylesheet.
