Calibrating WCAG AA-compliant violet accents across light and dark surfaces, syncing user appearance preferences with zero flash, and composing an asymmetric split media hero.
The ASBD theme system calibrates light-mode surface tokens (#F8FAFC / #ECEFF4) and deep obsidian dark surfaces (#050507 / #0D0D11) with WCAG AA-compliant violet accents (6.1:1 contrast ratio on light surfaces, 7.2:1 on dark surfaces), while keeping global header and footer chrome invariant.
| Token Variable | Light Mode | Dark Mode | Component Usage |
|---|---|---|---|
| --asbd-bg | #F8FAFC | #050507 | Primary canvas background & left nav rail |
| --asbd-surface | #ECEFF4 | #0D0D11 | Code blocks, command rows & inset cards |
| --asbd-border | #D5DCE6 | #222229 | 1px column dividers, card outlines & rules |
| --asbd-accent | #6842FF | #9D86E9 | Eyebrows, active links, breadcrumbs & focus rings |
| --asbd-text-primary | #0F172A | #FFFFFF | H1–H3 headings, active breadcrumbs & titles |
| --asbd-text-body | #334155 | #D4D4DA | Standard paragraph prose & list items |
Zero-Flash Appearance Sync
Bind colorMode ("system" | "light" | "dark") to the authenticated user's Appearance Settings record and execute a synchronous <head> boot script before stylesheets render so no session flashes between themes on load.
export type ColorModePreference = "system" | "light" | "dark";
const STORAGE_KEY = "ia.appearance.colorMode";
export function applyUserColorMode(mode: ColorModePreference): void {
const root = document.documentElement;
localStorage.setItem(STORAGE_KEY, mode);
if (mode === "system") {
root.removeAttribute("data-theme");
} else {
root.setAttribute("data-theme", mode);
}
}AgentSam Learn: Asymmetric Split-Composition Media Hero
On AgentSam Learn, the hero pairs an art-directed <picture> backdrop of an exploded 3D mechanical assembly composed on the right 60% of the frame with a left-to-right midnight-navy legibility scrim (#060A14 at 94% down to 12%) and tight stacked display typography (Design. / Create. / Ship.) with two-tone periods.
- Primary Button (Open Workbench): Cool metallic slate-silver (#9AA6B6) with deep obsidian ink (#090D16) and 10px soft-squircle corners.
- Secondary Button (Browse modules): Translucent smoked glass (rgba(15, 23, 42, 0.55)) with blur(8px) and hairline slate border.
- Sub-Hero Path Dock: 5-item horizontal row (Themes, SDK, Knowledge, CAD, Cloud) rendered as 42px × 42px rounded-square glass tiles.

Written by InnerAnimalMedia
Architecting Systematic Autonomous Machinery (SAM), hybrid edge-to-local Go runtimes, and multi-domain editorial systems.



