CSS Styled Select Options

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

  • select
  • base-select
  • picker
  • dropdown
  • option styling
  • progressive enhancement
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
.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;
}

About this CSS Styled Select Options

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. It relies on customizable select (appearance: base-select), which not every browser supports yet, so check the browser notes below. It works in any stack: plain HTML, React, Vue, Svelte, Astro, WordPress or Webflow.

CSS features used

Customize it

The colors in this snippet. Search and replace them to match your brand:

  • #312e81
  • #c7d2fe
  • #fff
  • #1e1b4b
  • #4f46e5
  • #eef2ff

How to use this styled select options

  1. Copy the HTML and paste it where you want the element to appear.
  2. Copy the CSS into your stylesheet, or inside a <style> tag.
  3. Keep the .select-pick class name, or rename it in both places. Then tweak colors, sizes and timing to match your design.
  4. Using React or Next.js? Change class to className in the HTML. The CSS works as is, including in Tailwind projects (put it in your global stylesheet).

Building with an AI tool?

“Copy for AI” copies a short prompt for Cursor, Claude Code, Lovable, Bolt or v0. Your AI tool opens the Markdown version of this snippet and reads the HTML, CSS and setup notes there. If your tool can't open links, with the code instead. More ways to use copy CSS with AI.

Feedback