Color
Every color is a named role with a light and a dark value, the same on web, iOS and Android.
Rules
Every color is a semantic token with a light and a dark value. A view names the role it needs (brand-primary, surface-card, text-secondary), never a hex value, so both themes and all three platforms stay in step. The table maps each role to its values and its name on web, iOS and Android.
Semantic → Platform Mapping
All implementations must map to the canonical semantic name. When a new color is needed, name it semantically here first.
| Semantic Name | Light Hex | Dark Hex | Web (Tailwind) | iOS (AppTheme.Colors) | Android (colorScheme) |
|---|---|---|---|---|---|
| Brand | |||||
brand-primary | #155CFB | #155CFB | text-yroun-blue / bg-blue-600 (the filled button; white on bg-blue-500 fails AA) | brandPrimary | primary |
brand-inverse | #FFFFFF | #FFFFFF | text-white | brandInverse | onPrimary |
text-on-custom | #000000 | #000000 | text-black, only through pickTextOnColor (the third candidate: on a colour we do not choose, used only where neither brand-inverse nor surface-brand's near-black clears 4.5:1, a band near relative luminance 0.185; hover on such a chip tints away from its text, never opacity) | none yet: no native chip paints a data colour | none yet |
brand-container | #EFF6FF | #172545 | bg-blue-50 dark:bg-blue-950/40 | brandContainer* | primaryContainer |
brand-on-container | #155CFB | #60A5FA | text-yroun-blue dark:text-blue-400 | brandOnContainer* | onPrimaryContainer |
yroun-yellow | #FCB319 | same | text-yroun-yellow | brandYellow | brandYellow |
yroun-green | #00A651 | same | text-yroun-green | brandGreen | brandGreen |
yroun-red | #EF4632 | same | text-yroun-red | brandRed | brandRed |
| Surfaces | |||||
surface-page | #E4E4E7 | #09090B | bg-background (--background) | backgroundBottom | background |
surface-card | #FFFFFF | #1C1F24 | bg-surface (--surface) | surfacePrimary | surface |
surface-secondary | #F4F4F5 | #27272A | bg-muted (--muted) | surfaceSecondary | surfaceVariant |
surface-overlay | rgba(255,255,255,0.92) | rgba(32,40,51,0.92) | none | surfaceOverlay | none |
surface-brand | #09090B | same: theme-independent | brand-surface utility (--surface-brand, sets on-brand text) | brandSurface (not yet built) | brandSurface (not yet built) |
media-stage | #09090B (the ground under video and its caption strip: a stage stays dark in light mode, so a picture's edge and white caption text read the same in both themes) | same: theme-independent | bg-media-stage utility (--media-stage) | mediaStage (not yet built) | mediaStage (not yet built) |
skeleton-base | #F4F4F5 | #27272A | --skeleton-base (in skeleton-shimmer) | AppTheme.Colors.skeletonBase | YrounTheme.colors.skeletonBase |
skeleton-sheen | rgba(255,255,255,0.7) | rgba(255,255,255,0.07) | --skeleton-sheen (the left-to-right sweep) | AppTheme.Colors.skeletonSheen | YrounTheme.colors.skeletonSheen |
search-mark | yellow-200 (#FEF08A): text-primary on it 15.1:1; 1.16:1 against surface-card, a tint, never a boundary | yellow-900 at 40% over surface-card (about #3E2C1D): text-primary on it 12.7:1 | search-mark utility (bg-yellow-200 dark:bg-yellow-900/40), the word-sized sibling of the block tints; marks primary text only, since text-secondary on it is 4.15:1 | not yet built | not yet built |
amount-mark | amber-300 (#FCD34D) as a band under the lower 45% of the amount's line: text-primary on it 12.2:1 | amber-700 (#B45309) at 45%, about #603618 over surface-card and #562A0A over surface-page: text-primary on it 9.9:1 and 11.6:1 | amount-mark utility (to add), on a <strong> | none yet (native, a run attribute that draws the band) | none yet (native, a span that draws the band) |
block-tint | the hub editor's per-block ground, *-100 of its hue | *-900 at 40% | block-tint-<hue> rules (global.css); a tinted code block keeps the always-dark code surface, and the tint is a 4px inset edge in the hue's 400, because a pastel ground under light code text fails contrast | not yet built | not yet built |
toast-surface | #1F2937 | #27272A | bg-toast-surface (--toast-surface, in ToastProvider) | toastSurface | YrounTheme.colors.toastSurface |
toast-action | #60A5FA = the dark value of brand-text-ground, fixed because toast-surface is dark in both themes (5.8:1 on it) | same | text-toast-action (--toast-action = --color-blue-400, the blue text-brand-ground paints in dark) | toastAction | YrounTheme.colors.toastAction |
toast-action-press | rgba(255,255,255,0.12) | same | hover:bg-white/12 in btn-ghost-inverse | toastActionPress | YrounTheme.colors.toastActionPress |
toast-warn | amber-400, fixed because toast-surface is dark in both themes (8.5:1 on it) | same | text-toast-warn (--color-toast-warn), notification icon only | toastWarn | YrounTheme.colors.toastWarn |
toast-danger | red-400, fixed for the same reason (5.1:1 on it) | same | text-toast-danger (--color-toast-danger), notification and error icons only | toastDanger | YrounTheme.colors.toastDanger |
play-ground | #0B0B12, the near-black Play games run on, fixed in both themes because a game stage does not follow the site theme | same | bg-play-ground (--play-ground); dialog-play at 95% is the Play dialog tone, dialog-play-muted (zinc-300, about 13:1 on it) its secondary text; game-kit's --gk-panel-bg is this token at 95%, so panels and dialogs share one ground. A Play app whose top renders on it declares it as theme-color in both schemes (yrounPlayViewport, @yroun/ui/play), so the status bar draws light text over the stage; an app whose top follows the site keeps yrounViewport. The antique theme's warm ground is a theme of its own, not this token | not yet built | not yet built |
| Text | |||||
text-primary | #0A1931 | #F8FAFC | text-prime (--prime) | textPrimary | onSurface |
text-secondary | #71717A | #A1A1AA | text-muted-foreground | textSecondary | YrounTheme.colors.textSecondary |
text-secondary-ground | #52525B | #A1A1AA | text-secondary-ground / label-secondary-ground | textSecondaryGround | YrounTheme.colors.textSecondaryGround, and Material's onSurfaceVariant (placeholders and labels Material draws on any surface, the ground included) |
brand-text-ground | #1D4ED8 | #60A5FA | text-brand-ground (global.css; use it, never spell out text-blue-700 dark:text-blue-400) | brandTextGround | YrounTheme.colors.brandTextGround |
text-muted | #A1A1AA | #52525B | text-muted-foreground/60 | textMuted | none |
| Borders | |||||
border-subtle | #E4E4E7 | #27272A | border-line / divide-line | strokeSubtle | outlineVariant |
border-strong | #D4D4D8 | #3F3F46 | border-border | strokeStrong | outline |
border-interactive | #A1A1AA | #52525B | border-interactive (--interactive-border) | strokeStrong | outline |
border-field | #71717A | #71717A | border-field (to add) | fieldBorder | YrounTheme.colors.fieldBorder |
| Semantic | |||||
success | #19844D | #58D68D | text-green-700 dark:text-green-400 | accentGreen | none |
warning | #F08F23 | #FFB257 | text-amber-600 dark:text-amber-400 | accentOrange | none |
error (text) | #A93030 | #FF8F8F | text-error-on-container: one name for error text; destructive names fills and borders (same values today; hook no-destructive-as-text) | accentRed | error |
destructive-foreground | #FAFAFA | #09090B | the label on a bg-destructive fill (6.38:1 light, 9.07:1 dark) | none | none |
danger-fill | #DC2626 | #DC2626 | btn-danger (bg-red-600) | dangerFill | YrounTheme.colors.dangerFill |
info | #2C6EE8 | #76A6FF | text-blue-600 dark:text-blue-400 | accentBlue | none |
accent-sky | #7DD3FC | #BAE6FD | text-sky-300 dark:text-sky-200 | accentSky | none |
media-fallback (gradient) | #18181B → #27272A → #09090B (zinc-900 → 800 → 950, left to right) | same: theme-independent, because media and its white overlay text sit on it | bg-gradient-to-r from-zinc-900 via-zinc-800 to-zinc-950 (ad-slot no-media banner); a hero's plain bg-zinc-950 ground | Gradients.mediaFallback | YrounTheme.colors.mediaFallback |
discovery-fallback (gradient) | #EFF6FF → #E0E7FF (blue-50 → indigo-100, top-left to bottom-right) | #1A2132 → #202237 (blue-950/30 → indigo-900/20 flattened over the dark card) | bg-gradient-to-br from-blue-50 to-indigo-100 dark:from-blue-950/30 dark:to-indigo-900/20 (DiscoveryCard with no image) | Gradients.discoveryFallback | YrounTheme.colors.discoveryFallback |
mate-violet (gradient) | #8B5CF6 → #9333EA | same | from-violet-500 to-purple-600 | Gradients.mateViolet | none |
| Semantic containers † | |||||
success-container | #E8F6EE | #12301F | bg-success-container | successContainer | none |
success-on-container | #116B3E | #58D68D | text-success-on-container | onSuccessContainer | none |
warning-container | #FDF3E3 | #33230A | bg-warning-container | warningContainer | none |
warning-on-container | #8A5109 | #FFB257 | text-warning-on-container | onWarningContainer | none |
error-container | #FBEBEB | #331717 | bg-error-container | errorContainer | none |
error-on-container | #A93030 | #FF8F8F | text-error-on-container | onErrorContainer | none |
critical-container | #EFC0C0 | #631418 | bg-critical-container | criticalContainer | none |
critical-on-container | #630916 | #FFDADA | text-critical-on-container | onCriticalContainer | none |
| Content types ‡ | |||||
content-type-post | #1D4ED8 | #60A5FA | text-content-type-post | contentTypePost | YrounTheme.colors.contentTypePost |
content-type-page | #047857 | #34D399 | text-content-type-page | contentTypePage | YrounTheme.colors.contentTypePage |
content-type-hub | #7E22CE | #C084FC | text-content-type-hub | contentTypeHub | YrounTheme.colors.contentTypeHub |
content-type-link | #B45309 | #FBBF24 | text-content-type-link | contentTypeLink | YrounTheme.colors.contentTypeLink |
content-type-schedule | #4338CA | #818CF8 | text-content-type-schedule | contentTypeSchedule | YrounTheme.colors.contentTypeSchedule |
content-type-place | #BE123C | #FB7185 | text-content-type-place | contentTypePlace | YrounTheme.colors.contentTypePlace |
| Calendar kinds § | |||||
calendar-kind-benefit | #BE185D on #FDF2F8 | #F472B6 on #500724 | text-calendar-kind-benefit bg-calendar-kind-benefit | none yet | none yet |
calendar-kind-finance | #C2410C on #FFF7ED | #FB923C on #431407 | text-calendar-kind-finance bg-calendar-kind-finance | none yet | none yet |
calendar-kind-hub-event | #4338CA on #EEF2FF | #818CF8 on #1E1B4B | text-calendar-kind-hub-event bg-calendar-kind-hub-event | none yet | none yet |
calendar-kind-my-booking | #1D4ED8 on #EFF6FF | #60A5FA on #172554 | text-calendar-kind-my-booking bg-calendar-kind-my-booking | none yet | none yet |
calendar-kind-working-hours | #047857 on #ECFDF5 | #34D399 on #022C22 | text-calendar-kind-working-hours bg-calendar-kind-working-hours | none yet | none yet |
calendar-kind-day-off | #3F3F46 on #F4F4F5 | #D4D4D8 on #27272A | text-calendar-kind-day-off bg-calendar-kind-day-off | none yet | none yet |
| Place types §§ | |||||
place-type-restaurant | #CA3500, white 5.23:1 | same | bg-place-type-restaurant | none yet | none yet |
place-type-school | #7008E7, white 7.29:1 | same | bg-place-type-school | none yet | none yet |
place-type-government | #314158, white 10.34:1 | same | bg-place-type-government | none yet | none yet |
place-type-landmark | #A65F00, white 4.92:1 | same | bg-place-type-landmark | none yet | none yet |
place-type-company | #1447E6, white 6.82:1 | same | bg-place-type-company | none yet | none yet |
place-type-hospital | #C10007, white 6.42:1 | same | bg-place-type-hospital | none yet | none yet |
place-type-pharmacy | #007A55, white 5.37:1 | same | bg-place-type-pharmacy | none yet | none yet |
place-type-academy | #8200DB, white 7.07:1 | same | bg-place-type-academy | none yet | none yet |
place-type-apartment | #0069A8, white 5.85:1 | same | bg-place-type-apartment | none yet | none yet |
place-type-retail | #BB4D00, white 5.05:1 | same | bg-place-type-retail | none yet | none yet |
place-type-transit | #00786F, white 5.39:1 | same | bg-place-type-transit | none yet | none yet |
place-type-park | #008236, white 4.94:1 | same | bg-place-type-park | none yet | none yet |
place-type-other | #364153, white 10.31:1 | same | bg-place-type-other | none yet | none yet |
calendar-holiday | #B91C1C on #FEF2F2 | #F87171 on #450A0A | text-calendar-holiday bg-calendar-holiday | none yet | none yet |
| Weather kinds ¶ | |||||
weather-kind-clear | #F97316 | #FB923C | text-orange-500 dark:text-orange-400 | none yet | none yet |
weather-kind-cloud (and wind) | #71717A | #A1A1AA | text-zinc-500 dark:text-zinc-400 | none yet | none yet |
weather-kind-rain | #3B82F6 | #60A5FA | text-blue-500 dark:text-blue-400 | none yet | none yet |
weather-kind-snow (and sleet) | #0EA5E9 | #7DD3FC | text-sky-500 dark:text-sky-300 | none yet | none yet |
weather-kind-thunder | #A855F7 | #C084FC | text-purple-500 dark:text-purple-400 | none yet | none yet |
‡ Content types label a saved item's kind (Marks: Post, Page, Hub, Link, Schedule, Place), one tone per type, used for BOTH the type badge text and the icon tile glyph, identical on web, iOS and Android. Light is the 700 step, dark the 400 step; every one clears the 4.5:1 text floor on its chip ground (zinc-100 light, zinc-800 dark): 4.57 to 7.75:1, worst case link light at 4.57. The 500 steps they replace measured 2.15 to 4.47:1. A new saved-item kind adds its row here first.
§ Calendar kinds tell a calendar row's kind apart on every calendar view (home card, www /calendar, the hub calendar, my calendar), one tone per kind, read from ONE client registry. A chip is the kind's text tone on its own ground, a 3px left bar in the same tone, the kind's icon, then the title; the icon is the second cue (WCAG 1.4.1, it clears 3:1 on its ground) and the kind's word is in the chip's accessible name, never only its colour. Text on ground measured 4.88 to 9.50:1 light (worst finance 4.88) and 5.36 to 10.08:1 dark. The legend is the filter: chip-filter toggles with aria-pressed, in one order with one set of words on every view; a kind toggled off leaves the grid. A holiday is a mark on the day itself (calendar-holiday, the date and its name), never a chip. workingHours and dayOff show to a hub's owner only. iOS and Android names come with the native parity rows. A new kind adds its row here first.
§§ A place pin's colour says its type, on a map rather than on the page, so one value serves both themes and white is the only foreground on it. Each fill is the Tailwind 700 step of its hue, written here as the sRGB hex because iOS and Android consume hex; Tailwind v4 declares them in oklch, so the ratio beside each is computed from the sRGB rendering, which is the conservative reading. Every one clears the 4.5:1 text floor, worst landmark 4.92 and park 4.94, so the white glyph's 3:1 non-text floor follows without a second measurement. The fill does NOT follow the theme: the pin's ground is the basemap, and a 2px white ring on the disc is what holds its boundary at 3:1 on the light and the dark map style alike. Colour is the second cue, never the first: the lucide icon carries the type and the places-in-view list names it in words, so no hue needs telling apart from its neighbour, which is why darkening may bring two families closer. A new place type adds its row here first.
¶ A weather icon's colour says its kind, one tone per kind on every surface that draws weather (home card, its hourly rail, www /weather days and steps), from ONE rule. The kind comes from resolveWeatherKind: precipitation type, then a forecast amount (snow before rain), then sky, then a legacy code, else cloud; the icon and tone come from weatherVisual, and nothing else maps PTY or SKY. Colour is never the only cue: every weather icon is aria-hidden beside its word, so the tone carries no contrast duty of its own; snow and sleet moved off sky-300 (1.6:1 on white) all the same. A pill that sets its own ink (the briefing card's weather chip) uses the icon alone. iOS and Android names come with the native parity rows. A new kind adds its row here first.
* iOS navActiveBg / navActiveText are older aliases of brandContainer / brandOnContainer (same values). New code uses the semantic names for every container use: active navigation, the card tab strip, the tinted button; the aliases may only shrink.
† Semantic containers are the tinted-pill pair; the bare success/warning/error tone above is text-on-page only. Light error is #A93030 because text-on-page must hold 4.5:1 on the grey page ground (#E4E4E7): the former #C94545 measured 3.7:1 there. A status pill is -container fill + -on-container for BOTH its label and its dot: one value does both jobs, so there is no third "indicator" color to keep in sync. Every on/container pair is ≥ 5.77:1 and every on-container against its own page surface is ≥ 6.44:1, so the pair satisfies the 4.5:1 text floor and the 3:1 non-text floor simultaneously, in both themes. Measured: 8.20:1 light and 9.91:1 dark on its own container, ≥ 10.47:1 on either page ground. Its container is only 1.40:1 from the error container, and no better is reachable: two light tints that must both carry 4.5:1 dark text occupy one luminance band by construction. So a surface may place error and critical side by side ONLY when something other than colour names the severity (the chip prints the grade word). Colour-alone severity stops at three rungs.
Do NOT use the bare warning tone as a dot, bar, or icon on a light surface: #F08F23 measures 2.43:1 against #FFFFFF, under the 3:1 non-text floor. It is legible as large/bold text and nothing else; the light-mode indicator color is warning-on-container. (success 4.72 and error 4.75 do pass, but use the on-container value anyway so all three behave alike.)
Health status maps onto this palette. It does not get its own colors. resolveHealthState returns ok | warn | danger; those render as success / warning / error containers. One palette, two vocabularies pointing at it: a third color trio is the fragmentation the "no rainbow accent system" rule exists to prevent.
Never for financial price movement. Korean market convention is red = up, blue = down; a finance surface that borrowed the green/red status palette would invert its own meaning.
* media-fallback is what a banner or hero shows while its media loads or when a creative has none; white text on its lightest stop (zinc-800) is 14.9:1, and a new value must keep 4.5:1. A house ad's own gradient is campaign data, not this token. It replaces the iOS-only orange playHero and Android's brand-gradient fallback.
* A banner creative carries no lettering, and is composed for its tightest crop. The creative fills the banner as its background and our copy (title, description) is the per-language layer on its left, over scrim-ad: the same textless-master rule as video. So a creative holds no text or logos anywhere, and its subject sits in the area every crop keeps, which is the intersection of every aspect it renders at (3.5:1 on phones, 5:1 wider), with the copy's share of the FILE read from the file's own aspect. The copy column is the left 60% of the FRAME, and object-cover crops whichever axis the frame does not need, so the two cases differ: a master authored at 5:1 is cropped in WIDTH by a phone's 3.5:1 frame, and because the frame keeps the file's RIGHT edge (object-right), the crop drops its left 29.8% and it owes the copy the file's left 72%. Name the anchor when you reason about it: under a centred crop the same file would lose 15% on each side and the copy edge would move to 57%, so object-position is not a free change; a file 3.5:1 or narrower is cropped in HEIGHT instead, draws its full width at every size, and owes the copy the file's left 60%, while the phone shows MORE of its height than the desktop does. The file's copy column is 0.6 + 0.4 x max(0, 1 - 3.5 / aspect): 72% is the number for the 5:1 master this rule asks authors for, never a constant to carry onto a borrowed still, and a reused still is measured over its own column before it is listed. Measure it at hover too: the media scales to 1.03 from its centre, which slides a slightly different part of the file under the copy. On a dark creative it is noise (the Play banner moves 5.91:1 to 5.87:1), but a creative sitting near the 4.5:1 floor at rest can cross it on hover. A dark or mid-tone ground there reads better than white under the scrim, and it has to be dark enough to hold white copy at 4.5:1, which is luminance 118 of 255. A creative that breaks this would overprint two texts, so it shows the plain ground instead until it is re-exported (web isCopySafeHouseCreative). That function reads COPY_SAFE_HOUSE_PATHS, an allowlist: full-bleed only for a creative known copy-safe, the crop otherwise. So an unchecked upload is never drawn full-bleed under our title, which is what the denylist it replaced allowed by construction. A self-spoken creative is exempt by construction, not by being listed: copySafe exists to stop OUR title overprinting a creative's own lettering, and a self-spoken creative draws no title, so decideBannerVisual takes selfSpoken and returns media whatever copySafe says. The brand film is therefore full-bleed because of what it is, and the known-safe list seeds EMPTY, which is the honest state: no human upload has been verified by anything but an eye. The list matches an exact path, never a stem, the opposite of SELF_SPOKEN_STEMS and for the opposite reason: failing to match a self-spoken stem prints copy over a film, while failing to match a copy-safe path only crops, so a versioned re-upload must fall out and be re-verified rather than inherit a verdict. House ads only. An advertiser's creative keeps today's decision until its own default is decided: we do not re-render an advertiser's file, so failing safe there costs them placement rather than costing us an overprint, and that trade needs its own answer. The verdict is then measured, never declared by the uploader, which is why it is not a flag on the row: a flag is the same promise with a column around it. A creative we generate carries its verdict from birth. A human upload is scanned asynchronously instead, since the upload door is server-main Kotlin and the detector is synapse Python on the render machines: a job scans new house-ad media and stamps the row through a sudo /ctrl endpoint only synapse may write. That scan decides nothing until its false-positive rate on photographic stock is read on a hand sample, and an upload with no verdict takes the crop. The banner face itself carries no icon; the feed card, in-article and compact house formats keep theirs. Compliance is established by opening the file: a transcription is not evidence of what an image says.
* discovery-fallback is the no-image ground of a discovery card (recommended hubs, featured pages). Its title is text-primary, never white (the ground is light in light mode), and its meta line is text-secondary-ground: text-secondary (#71717A) measures 3.92:1 on the light end stop #E0E7FF, under the 4.5:1 floor, while text-secondary-ground measures 6.27:1 there and 6.09:1 on the dark end stop.
* accent-sky exists for the weather icon condition map only (snow). mate-violet is the ONE Mate-identity violet on every platform (roster tiles, mate chat, recommend cards): never restyle a Mate surface with brand-primary.
Rules
- Never hardcode a hex value in any view, component, or stylesheet. Reference the token.
- Never use opacity hacks like
brandPrimary.opacity(0.12)for container backgrounds. Usebrand-containerdirectly. - A benefit amount inside a title is bold with a highlighter band,
amount-mark. The amount is a<strong>, never a<mark>:<mark>andsearch-markmean "this matched your search", so the two never share an element, and they differ in shape too (a band under the lower 45% of the line, against the full-height search tint). The bold carries the meaning, so the amount still stands out with the colour gone: in forced colours the gradient band is dropped by the browser, andamount-marksetsbackground-color: Mark; color: MarkTextthere instead. The band wraps with its text (box-decoration-break: clone). The text holds AA on the band and on the ground beside it in both themes (values in the table); the band against its ground is a tint, never a boundary, so no 3:1 is owed. Review: hub reads frames at 320 and at 200% text once built. Gate: not yet; the utility is the one source once added, and a hand-rolled amount highlight is refused at review. - Dark mode is not optional. Every token must have both light and dark values.
- The wordmark's yellow, green and red are accents, never surfaces. They colour one word or one mark to say which domain it belongs to. Measured on the brand surface: 9.9:1, 5.6:1, 4.8:1. Never a background, never two of them in one sentence for decoration.
- The slot's shape picks the mark. A square or round slot (an app icon, an avatar, a favicon) takes the Y mark; a wide slot (a link preview, a header, a banner) takes the YROUN wordmark. A wide slot's mark stays inside its centre square, since some chat clients crop link previews to a square: on the 1200x630 preview the wordmark is 600px wide. The wordmark is drawn from
yroun-wordmark.ts, never from a separate file, and a preview image showing only the mark has the alt textYroun. - The drawn wordmark is a mark, not a name. So the all-caps shape is the mark itself and the First-Letter-Capital rule for brand names (
AGENTS.md§1) does not reach it; typeset copy beside the mark is stillYroun, and the pairing staysYroun 이로운. Android's drawer draws the name as text, correctly, and has no wordmark image. - A dark hero or panel uses
surface-brand, neverbg-prime.--primeis the TEXT token and flips to near-white in dark mode, so a hero painted with it turns white-on-white the moment the viewer's theme is dark. The brand surface is the one surface that does not follow the theme. It is flat: no gradient, and no scrim painted over motion on it. Text over a moving canvas keeps contrast because the canvas dims its own marks inside the measured line boxes of the text (web:BrandDotsCanvaswithmotion="globe"readsdata-dots-avoid), never by shading the surface. The mobile top bar's scroll-edge fade is hidden while a brand surface is under it (useBrandSurfaceUnderTopBar): a fade from the page ground over a dark hero draws a band, not an edge. - A secondary token is a CARD token for text; on the page ground the token is
*-ground.text-secondary/label-secondary(#71717A) measures 4.83:1 on a white card and only 3.81:1 on the light page ground (#E4E4E7), so the identical class passes AA inside a panel and fails it one DOM level out. A non-text indicator may still carry the secondary token on the ground, where the floor is 3:1 (rule 6 of Tabs and segmented controls, and the scrollbar thumb above): that is why the 3.81 figure appears beside a pass elsewhere in this document. Why a class-matching gate cannot see this: the failing pair exists only as a composition, sono-light-gray-textand its siblings read the class and find nothing wrong. Reader and cadence: the owning lane runsmake check-a11yon every new www page before its catalog or nav row is turned on. - Scrollbars are skinned from tokens, on every surface, by default. The thumb is a FOREGROUND token, never a border one:
--linemeasures 1.27:1 on a light surface and 1.00:1 on a lightbg-backgroundpage: the identical colour, an invisible scrollbar.--muted-foregroundmeasures 4.83:1 / 3.81:1 light and 6.45:1 / 7.76:1 dark; the game thumb 5.2:1 on the menu card and above 4.5:1 on a panel, 7.1:1 on hover. All clear of the 3:1 non-text floor. Standard properties only: styling::-webkit-scrollbaropts every scroller out of macOS overlay scrollbars into a classic layout-consuming one, which would silently take 10px from every scroller on every site and put a permanent bar on two dozen horizontal chip strips. Three spellings hide a bar and all three are defined:scrollbar-none,hide-scrollbar,no-scrollbar. - The brand surface's dot grid:
.brand-dotsis the still frame (no JS, reduced motion); the moving surface is one canvas component (BrandDotsCanvas, @yroun/ui) with two motions:wateron the sign-in panel, whose numbers are named at the top of the file (wave period 4.5s, wavelength 290px, swell 7s/750px, flatten 1.6), andglobeon the about hero. Decorative,aria-hidden, paused off screen, one still frame underprefers-reduced-motion. Lines that name several surfaces (the about day lines) light one word each intext-on-brandat the heaviest weight over a lighttext-on-brand-mutedline: contrast by weight and the white token, one colour, never a hue per surface. The hero headline types itself in (Motion → Typed reveal) with the whole text in the DOM for crawlers.
Live specimens
brand-primary
bg-yroun-bluebrand-container
bg-blue-50yroun-yellow
bg-yroun-yellowyroun-green
bg-yroun-greenyroun-red
bg-yroun-red
surface-page
bg-backgroundsurface-card
bg-surfacesurface-secondary
bg-mutedsurface-brand
brand-surface
text-prime Every screen has one clear focal point
text-muted-foreground Every screen has one clear focal point