shibro
Show the version of “Controls keep their edges in forced colors”

Theming · SU-168

Controls keep their edges in forced colors

Flip between the version shibroUI flags and the one it ships. The marks and callouts show what changes.

  • Button edge none · reads as text
  • Button edge 1px border · 2px outline
  • Toggle fill only · disappears
  • Toggle border + thumb survive

What changes

Bad
In a simulated contrast theme the buttons and toggle have no border or outline, so the toggle vanishes and Cancel and Save read as loose words.audit.js: SU-168 warn: .btn:focus-visible: focus drawn only with box-shadow
Good
Every control keeps a 1px border, Save a 2px outline, and the toggle a border and thumb, so all of it survives as system colors.

The rules

  • SU-168

    Controls keep their edges in forced colors. Draw boundaries and focus with border and outline (transparent is fine: forced colors turn them into system colors), never with box-shadow or background alone. Icons use currentColor. Selected and checked states need a non-color cue. Use forced-color-adjust: none only for color swatches.