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
Email notifications
CancelSave
Email notifications
CancelSave
-
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
1pxborder, Save a2pxoutline, 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
borderandoutline(transparent is fine: forced colors turn them into system colors), never withbox-shadowor background alone. Icons usecurrentColor. Selected and checked states need a non-color cue. Useforced-color-adjust: noneonly for color swatches.