The post-gate main surface is the workspace shell from the design
contract: nav rail (Posts/Sessions/Learnings/Settings), Posts pane
mirroring <home>/posts/ on disk (Pass State groups, origin meta,
empty state; lazy folders skipped), Settings pane with repoint-only
Home picking (NSOpenPanel + UserDefaults, default ~/Documents/Museion
per b3daac9), placeholder panes until #28/#26. Column collapse
mirrors the export's media queries so narrow windows never clip.
Mentor pane becomes the fourth column (#14 surface preserved).
[Generated by AI]
35 lines
1.4 KiB
Swift
35 lines
1.4 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.
|
|
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 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)
|
|
|
|
static let radius: CGFloat = 10
|
|
static let radiusLarge: CGFloat = 14
|
|
|
|
/// The workspace grid: rail | posts library | editor | mentor (grid-template-columns
|
|
/// `56px 232px minmax(420px, 1fr) 356px`).
|
|
static let railWidth: CGFloat = 56
|
|
static let libraryWidth: CGFloat = 232
|
|
static let editorMinWidth: CGFloat = 420
|
|
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
|
|
}
|