feat(design): two-color world — cream chrome, shared page, rust caret (#89)

Calibrated live with Alexander: background #FAF9F3 (cream chrome, also
the focus ground), surface #FFFEFB (one page color for edit AND read —
kills the three-way jump white/gray/blueish), rust #C96442 caret,
reading highlights in cream washes at whisper strength, hardcoded
NSColor.white sites removed. Departure from the export contract is
deliberate and recorded in DesignTokens.
This commit is contained in:
AlexKucera committed 2026-10-09 20:24:59 +02:00
1 parent 9ad71ebf8a
commit c2be84e25a
2 files changed
+9 -6

No files matched your search

+5 -2
View File
@@ -9,9 +9,12 @@ import SwiftUI
/// Colors, radii, and column geometry extracted from the export's `:root`
/// and workspace grid. Light-only on purpose — the export defines one palette.
/// #89 calibration (2026-10-09): two-color world, deliberately departed from
/// the export — page (edit+read+cards share it) vs background (chrome/focus).
/// Values are live-calibrated with Alexander, not contract-fixed.
enum DesignTokens {
static let background = Color(red: 0xFA / 255, green: 0xFA / 255, blue: 0xF7 / 255)
static let surface = Color(red: 1, green: 1, blue: 1)
static let background = Color(red: 0xFA / 255, green: 0xF9 / 255, blue: 0xF3 / 255)
static let surface = Color(red: 0xFF / 255, green: 0xFE / 255, blue: 0xFB / 255)
static let foreground = Color(red: 0x1A / 255, green: 0x19 / 255, blue: 0x16 / 255)
static let muted = Color(red: 0x6B / 255, green: 0x69 / 255, blue: 0x64 / 255)
static let border = Color(red: 0xE8 / 255, green: 0xE5 / 255, blue: 0xDF / 255)
+4 -4
View File
@@ -17,7 +17,7 @@
--ink: #1d1d1f; --muted: #6e6e73; --secondary: #48484d;
--hairline: #d2d2d7; --rule: #a1a1a6; --substrate: #f5f5f7;
}
html { background: #fbfbfd; }
html { background: #fffefb; }
body {
margin: 24px auto; padding: 0 24px; width: var(--measure); max-width: calc(100vw - 48px);
color: var(--ink); font-family: var(--body-face); font-size: var(--body-size);
@@ -75,6 +75,6 @@ figure img { display: block; margin: 0 auto; max-height: 340px; max-width: 100%;
figcaption { color: var(--muted); font-size: 0.85em; text-align: center; margin-top: 8px; }
section.footnotes { color: var(--muted); }
section.footnotes li p { margin: 0; }
[data-source-line]:hover { background: rgba(0,122,255,.05); }
::selection { background: rgba(0,122,255,.12); }
:focus-visible { outline: 2px solid rgba(0,122,255,.6); outline-offset: 2px; }
[data-source-line]:hover { background: rgba(196,175,138,.075); }
::selection { background: rgba(196,175,138,.19); }
:focus-visible { outline: 2px solid rgba(201,100,66,.55); outline-offset: 2px; }