Files
museion/Museion/DesignTokens.swift
T
AlexKucera d6c4712aaa
CI / ci (push) Canceled after 0s
feat(mentor): editorial pane chrome (#156)
Wayfinder map #153, build slice 2 of the #154 contract: the pane's
chrome joins the transcript's editorial voice (#155).

Header per .pane-head — serif-15/600 "Mentor", engine status, mono-10
session chip; ready is the semantic green dot (DesignTokens.readyGreen,
the palette's sole exception) + lowercase mono "ready", base version in
the tooltip, the drift note kept visible. The segmented Pass 1 | Pass 2
| Chat picker is dead (settled #4): PassBarView always carries and owns
the compact text-tab selector (2pt accent underline) over a PASS N ·
STATE status line, the cost line, and the actions as MonoButton —
accent solid / surface+border / accent outline, the danger voice.
Fix-cards row is the ruled plain mono link; crash, missing-engine, and
starting states render as the quiet state-cards.

Finish-audit fanout: security clean; orphaned MARK, stale doc comment,
and a phantom-border comment fixed; pass-selector remount reset and
solid-button contrast parked in the devlog (swift-wiki gotcha #28).

Suite 592/592 (xcresult count), swiftformat + swiftlint clean at the
error tier.

Closes #153
2026-11-04 10:37:13 +01:00

46 lines
2.1 KiB
Swift

//
// DesignTokens.swift
// Museion
//
// Visual tokens from the design contract (ref/Web-Prototype/museion-workspace.html, #17).
//
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: 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)
static let accent = Color(red: 0xC9 / 255, green: 0x64 / 255, blue: 0x42 / 255)
/// #153 map settle / #154 contract: the SOLE palette exception — the
/// semantic ready-green of the mentor header's ready dot. Never a style
/// color; it means "engine healthy".
static let readyGreen = Color(red: 0x36 / 255, green: 0x66 / 255, blue: 0x4F / 255)
static let radius: CGFloat = 10
/// #135 (prototype `.vC`): the Settings sidebar column and the detail
/// form's max width.
static let settingsSidebarWidth: CGFloat = 190
static let settingsFormWidth: CGFloat = 480
/// The workspace grid: rail | posts library | editor | mentor (grid-template-columns
/// `56px 232px minmax(420px, 1fr) 356px`). Editor min (420) has no enforcement
/// yet — the editor column arrives with #19.
static let railWidth: CGFloat = 56
static let libraryWidth: CGFloat = 232
static let mentorWidth: CGFloat = 356
/// The serif display face maps to the system serif design (export stack:
/// Iowan Old Style / Charter / Georgia); mono to the system monospaced.
static let serif: Font.Design = .serif
static let mono: Font.Design = .monospaced
}