Destiny
Sign In
RES-143 · PORCELAIN LIGHT & OBSIDIAN DARK TOKENS HOLD 0.00 CLS & HIGH WCAG CONTRAST

Dual-Theme Engineering: CSS Custom Property Token Pairs Hold WCAG AA Contrast Across Light & Dark Modes

Documenting hairline border legibility, focus ring contrast, and pre-paint polarity binding without flash of unstyled theme.

Pixel Rule: Always capture visual screenshots in real browsers to verify contrast and border crispness directly.

RES-143 · Visual EngineeringApple Silicon Measured

02 · Quantitative Metrology Table

Audited Baselines & Measurement Methodology

Measured DimensionObserved ValueMethodology & Verification Scope
WCAG AA Text Margin>= 4.5:1 VerifiedPrimary body ink maintains steep legibility on both light & dark bases.
First-Paint Theme LockPre-Body Inline HashApplies stored or system polarity cleanly before first browser paint.
Layout Shift Impact0.00 Reflow DeltaSwaps purely color properties without shifting border widths or sizes.
Starter BlueprintMS-172 Token HubExports production light/dark CSS token systems cleanly offline.

03 · Empirical Takeaways

Key Buyer & Systems Findings

FINDING 01

Bolted-on dark mode toggles routinely invert backgrounds cleanly while dropping muted caption text below WCAG AA readability.

FINDING 02

Engineering every color surface, hairline border, and focus accent via matched semantic CSS token pairs prevents broken cards across themes.

FINDING 03

Applying theme state synchronously via tiny CSP-hashed head init prevents jarring white flashes on dark OS devices.

Destiny 2.0 Mac: 78.62 tok/s · M1–M6 NativeZero Trackers · Cross-Origin SVG
Embed Apple Silicon Metrology Badge

Cite reproducible Apple M4 Pro Unified Memory benchmark receipts in engineering repositories.

04 · Theme Token Parity & CLS FAQ

Theme Token Parity & CLS — Methodology & Reproduction

02 Questions
Why define semantic tokens like --bg-surface and --text-secondary instead of raw hex values?
Semantic tokens guarantee that swapping from light to dark themes updates card depth, hairline contrast, and accent balance cleanly everywhere.
Can teams build light/dark marketing pages offline inside Destiny Minisites?
Yes—every Minisite blueprint supports tuned light Porcelain and dark Obsidian token pairs (MS-172).