Inputs

A switch changes something now; a checkbox marks a choice to submit; pills have four fixed roles.

Rules

A checkbox marks an item as selected (in a set, in a form to be submitted); a switch flips a state that takes effect immediately: auto-reply on, a connector enabled, a consent granted. Apple's and Google's guidelines draw the same line.

PlatformComponent
Web<Switch> from @yroun/ui (checked / onCheckedChange / disabled / label or ariaLabel): brand fill on, zinc track off, white thumb, role="switch" + aria-checked
iOSSwiftUI Toggle with .tint(AppTheme.Colors.brandPrimary)
AndroidMaterial 3 Switch, colorScheme.primary
  • One switch, no size or color variants: variants are how the fragmentation this ended starts over.
  • label renders the visible text as part of the same control (clicking it toggles); pass ariaLabel only when no visible label sits with it.

Pills: four roles, one discipline

Rounded tinted surfaces serve FOUR distinct roles. Every pill on any surface must be one of these, via its named utility, never a hand-rolled variant:

RoleUtility (web)DifferentiatorInteractive?
Actionbtn btn-filled / btn btn-tinted + a size (see Buttons)44pt min height on touch, size from btn-sm/md/lg✅ tap = do something
Filter chipchip-filter with aria-pressedmin-h-9, 44px on touch, text-xs, bordered✅ tap = narrow a list
Option cardoption-card (+ option-card-active)full-width rounded-2xl tile, title + description; unchosen it fills bg-surface with border-line, like an idle chip-filter, so it reads as a choice on the page ground, not as a label; chosen, its edge is the state cue and clears 3:1 on every ground: blue-600 in light (500 measured 2.96:1 on the gray ground), blue-500 in dark (5.29:1)✅ tap = pick one of N
Status badgebadge-blue / badge-neutral / badge-featured; badge-neutral-inline inside a text-xs list linetiny (text-[0.6875rem]), no hover, no min-height; the inline one is a 16px border box with its label in an inner truncate span❌ read-only label

badge-neutral reads on the page ground as well as on cards: its label is text-secondary-ground (6.09:1 on the ground), never the muted token (3.81:1 there). A badge that legally must be read, such as the shop's "Ad" disclosure label, can sit straight on the ground.

Ad label: badge-ad is the one ad disclosure label, and it sits inside the heading of what it labels. It is badge-neutral's shape at 12px, the accessibility floor for a label that legally must be read (badge-neutral is 11px), outlined with secondary text and never filled: a filled chip reads as an active control, so the label stays quiet and is found by its place inside the heading. It never takes a hover, a pointer of its own or a size step. badge-ad-overlay, the label on media, keeps its own dark fill. It goes in the h1 or h2 of every surface that lists ad items (the shop list, each theme page and its panels, the home shop card), as visible text, so a screen reader announces the heading with it and it wraps, never truncates. Its word is the bare label (ko 광고), which KFTC rule 499 V.6.B(3) lists as adequate content, and it names no program, so a second affiliate platform needs no new copy. One badge per block that carries recommendations, the page heading included: two badges in one viewport (the page title and a theme heading) is by design, not duplication, because each heading makes its own claim and the distance from any item to its label stays one heading. The full program sentence is disclosure-note, shown only beside partner links and before them. On the web: SectionHeader adLabel and www ShopPageTitle.

Where the label sits depends on what it marks. A LIST of ad items carries it in the list's heading (above). A SINGLE creative (a banner, a sponsored card, a video ad) carries it anchored to the creative itself, in the creative's top-right corner, inset 10px, on the overlay ground that holds 4.5:1 over any image (badge-ad-overlay, no visible edge), the same spot on every creative of that kind, never flowing with its copy. A mark that labels a whole object anchors to the object, never to text inside it (Spatial Memory). The upper-right corner is the documented default for an in-ad marker (DAA ad marker creative guidelines; IAB display portfolio), and Korean disclosure rules ask for a place found without hunting. Keep that corner free of any control: the IAB mobile specs put a close button there, and we draw none on banners. The corner label is text, never its own Tab stop: it is read with the creative it marks, so a keyboard or screen-reader user meets it once, as part of the ad.

No visible AI mark. No surface shows that content was AI-made: no "AI 생성", "AI 작성", "AI-generated" or "AI生成" line, chip or spoken label, on web, iOS or Android. The AiGeneratedMark component and its ai.mark. keys are gone; the briefing video's export metadata and the anchor profile's disclosure field stay. An outbound platform's own upload AI flag is that platform's rule, not a mark in our product.

The word AI: name it when AI is what the reader is dealing with, drop it when it is only how we built the feature. The rule above bans a provenance mark on content and reaches no further: a feature line naming AI as the mechanism is not a mark, and the gate agrees, matching AiGeneratedMark and the ai.mark. keys only. So one word covers three cases and hides the difference. A Mate IS a program, so "AI Mate" and "AI companions" stay: dropping the word there would hide from the reader who they are talking to, which is the one place naming it protects them. AI as the engine behind a feature is our process, so it leaves the copy and the line says what the reader gets instead. A label saying a machine made this content is the mark above, refused. Test a line by what the reader is dealing with, never by whether the sentence happens to be true.

Inline badge: badge-neutral-inline is badge-neutral sized to sit inside a text-xs line. It is 16px tall with its border, so a list row that carries one is exactly as tall as a row without, and a list of mixed rows keeps one height. It keeps badge-neutral's text-secondary-ground label, so its contrast is the same. It is a flex container with its label in an inner truncate span, so a narrow line ends it in an ellipsis rather than clipping a number. First use: the spend condition on a benefit row (content LifeScheduleRow).

Badge dot: a dot belongs to its icon, never to its tile. It sits on the icon's top-right corner, 8px, ringed in the surface colour so it reads on the icon's edge; anchored to the tile's corner it floated in the gap between tiles. A dot is decoration (aria-hidden); what it means is spoken in the link's name (an sr-only word, the same dictionary string the full-width row shows as a pill). Web: sidebar-feature-grid.tsx.

Mark chip: a link chip that carries its own mark toggle. It is the filter-chip shape composed with a mark, used where a list of entities each links somewhere and can be marked (the stocks a briefing names). It is ONE control with two targets inside one shape, never a chip with a loose icon beside it. The label segment links. A trailing 44px segment toggles the mark, with aria-pressed and an aria-label of the name plus Mark or Unmark. The whole chip is min-h-11, so both targets meet the touch floor. Web: chip-mark / chip-mark-active. Both states carry the full shape, and the active state is the brand container, the same as an active filter chip. A native surface that lists marked entities uses the same two-segment shape.

Rule 1: utilities are complete by default. Every utility above renders correctly bare. Active/selected variants carry the FULL base shape so both standalone and composed usage render identically. Call-site utilities still override the baked defaults when a context truly differs.

Rule 2: one state, one signal. A state already carried by an icon/shape (a check circle, a filled dot) does NOT also get a badge. Duplicated signals read as clutter and make the static badge look like a stray button.

Rule 3: status is never dressed as an action. Size is the separator: badges stay tiny with no hover/press states; anything 44pt-tall and tinted reads as tappable and must actually be tappable.

Rule 4: selection rides aria-pressed, and a selected utility always wins. A filter chip is chip-filter with aria-pressed={selected}, exactly one true in a one-of-N group: the one attribute a screen reader announces (WCAG 4.1.2) is the one the stylesheet reads, so the two cannot drift. The set is wrapped in role="group" with an aria-label from the dictionary, so "1M, not pressed" is heard inside "Chart range" (1.3.1). A chip in a nav of pages is a link, not a toggle: the current page is chip-filter with aria-current="page" (a span, never a link to itself), which takes the same selected look; in a picker the selected group (the year whose months are shown) is a span with aria-current="true", same look. Selected reads as the brand container plus a weight step, never color alone. In a multi-select set (more than one chip can be on) each selected chip also leads with a check: a reader scans for which ones are on, and a 1.1:1 tint plus a weight step at 12px does not scan (EXP-096; the filter chip pattern in Material 3). A one-of-N group keeps container plus weight, since exactly one is on. The check never comes out of the label: a label does not wrap or truncate because its chip is selected; the chip grows and wraps as one unit, and a set's labels are measured with the check in. A chip that leads with an icon (16px, hidden from screen readers, label always shown) keeps it at rest and in a one-of-N group; in a multi-select set the check replaces the icon in that same leading slot, never sits beside it. A one-of-N view switch is a segmented control by shape; until that utility exists it stays a chip row (ops finance-program.md row 77). That utility is a radiogroup of radios with aria-checked and a roving tabindex (one Tab stop, arrows move and select), never a tablist, which only switches tabpanels; its selected look binds to [aria-checked='true'].

Rule 5: a shared selected colour cannot serve a picker whose options ARE colours. Every selected-state utility here (option-card-active, a selected chip-filter) paints the chosen one in the brand container, which is right wherever the options are plain choices. The component was the correct one; the rule it lacked is this. So the chosen option takes the OPTION's colour, not the system's: option-card-active reads --option-accent, defaulting to the brand blue, and that token sets BOTH the border and the selected tint, because a red border on a blue-50 fill is the same contradiction one layer down. A picker that sets --option-accent also shows a check on the chosen option: once the accent follows the option, colour is otherwise the only cue (WCAG 1.4.1). That check is a requirement, not a description of today: global.css 1516 is border-blue-500 bg-blue-50 with no mark of its own, and only the janggi side cards carry one.

---

An option card's accent is brand blue, unless the option's own colour is something the reader will see elsewhere on the screen. A picker whose options carry a side, team or piece colour sets --option-accent and --option-accent-tint to that colour, so the choice and its consequence are the same colour; every other picker leaves them at the default. The test is whether the colour exists outside the control: a side's colour is on the board a second later, while a billing period, a placement or a plan has no colour of its own, and tinting one of those would teach a reader that the accent means "this option" in one place and "selected" in another. Selection is never carried by the accent alone: the card keeps its selected border and fill and its aria-pressed, so the state survives for a reader who cannot distinguish the two colours, and any accent a picker sets still meets the non-text 3:1 contrast floor against the surface behind it. Web: option-card-active reads --option-accent, --option-accent-tint, --option-accent-tint-hover and --option-accent-width, each defaulting to the brand values; option-card-accent derives the 2px width and both tints from --option-accent, so a picker sets only that one variable per option. The janggi side picker is the first.

Live specimens

SwitchA switch takes effect at once; a checkbox waits for a submit.
Input and textareainput-base: interactive border at rest, brand border and ring on focus.
CheckboxMarks items for a later submit; an 18px box inside a 44px hit area.
Pills: four rolesFilter chips narrow a list, badges only label, option cards pick one of N. Actions are buttons.
chip-filter · chip-filter-active
badge-blue · badge-neutral
ProDraft
status-pill-ok · -warn · -danger
LiveDelayedFailed
option-card · option-card-active