07 / 18

Principle 07

Native controls are designed too

Dropdowns, scrollbars, checkboxes, radios, date fields and text selection keep the look of the operating system unless someone decides otherwise. Left alone, they are the one part of the screen that belongs to nobody.

In a real interface

✕ Avoid

Order #1041

Order #1042

Order #1043

Order #1044

Order #1045

Order #1046

✓ Do

Size

Order #1041$ 8.750

Order #1042$ 9.100

Order #1043$ 9.450

Order #1044$ 9.800

Order #1045$ 10.150

Order #1046$ 10.500

01

Why

A carefully built page with a default blue checkbox and a gray system scrollbar reads unfinished. The controls are where people touch the product, so they carry more of its character than most decoration does.

The risk runs the other way too. MDN warns that appearance: none removes the native look and can leave some widgets, like checkboxes and radios, visually hidden while they still work, so whatever replaces them has to be drawn on purpose.

02

How to apply it

Start with the light tools. accent-color tints checkboxes, radios, range inputs and progress bars, and MDN notes that browsers adjust it for legibility and contrast. scrollbar-color sets the thumb and the track; MDN asks authors to keep enough contrast between the two.

For a select, keep the native element and style it. Adam Argyle describes appearance: base-select, which lets a select be styled with CSS, even with rich content in its options, while existing JavaScript keeps working. Style ::selection with the brand colors and keep a designed focus state on every control.

03

Edge cases

Do not hide scrollbars without another cue. Adrian Roselli asks for at least 3:1 contrast between thumb, track and page, a width that scales with zoom, scrollbars that stay visible for mouse users, and keyboard scrolling that keeps working.

If a native control truly cannot do the job, a custom one has to repeat its keyboard behavior and its semantics before it repeats its look.

✓ Do

  • Set accent-color to the brand color
  • Color scrollbars with scrollbar-color
  • Style the native select before replacing it
  • Style ::selection and focus on every control

✕ Avoid

  • Use appearance: none without drawing a replacement
  • Hide scrollbars with no other cue
  • Build a fake dropdown out of divs
  • Leave default blue controls in a branded page

For agents · PRINCIPLE.md

## Native controls are designed too

 

- Set accent-color and scrollbar-color to the brand palette, keeping 3:1 between scrollbar thumb, track and page.

- Style the native <select>, checkbox and radio before replacing them; never build a dropdown out of divs.

- Never use appearance: none without drawing a visible replacement with a designed focus state.

- Style ::selection, and never hide scrollbars without another cue that the area scrolls.

Enforced bykero-audit contrast of fields, checkboxes and switcheskero-system records control styles in the project skill