inneranimal
Exploded 3D mechanical assembly rendered in brushed steel and dark slate
Design SystemsCreated: Oct 22, 20268 min read

ASBD Dual-Mode Color Spec & AgentSam Learn Hero Architecture

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 VariableLight ModeDark ModeComponent Usage
--asbd-bg#F8FAFC#050507Primary canvas background & left nav rail
--asbd-surface#ECEFF4#0D0D11Code blocks, command rows & inset cards
--asbd-border#D5DCE6#2222291px column dividers, card outlines & rules
--asbd-accent#6842FF#9D86E9Eyebrows, active links, breadcrumbs & focus rings
--asbd-text-primary#0F172A#FFFFFFH1–H3 headings, active breadcrumbs & titles
--asbd-text-body#334155#D4D4DAStandard 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.

user-preferences.ts · typescript
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.
AgentSam Learn — Asymmetric Exploded Mechanical Assembly
Editorial studio portrait at a minimalist drafting desk

Written by InnerAnimalMedia

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

Continue Reading