import SwiftUI /// The panel's colours: the system's own, so the panel is a native macOS panel in light and dark /// (owner's direction, MAC-PANEL.md, 22 Nov 2026; the drawing is the lane's build/panel.html). enum Palette { static let paper = Color.clear static let ink = Color(nsColor: .labelColor) static let quiet = Color(nsColor: .secondaryLabelColor) static let faint = Color(nsColor: .tertiaryLabelColor) static let link = Color.accentColor static let card = Color(nsColor: .quaternarySystemFill) static let cardHover = Color(nsColor: .tertiarySystemFill) static let cardShadow = Color.clear static let live = Color(nsColor: .systemGreen) static let track = Color(nsColor: .quaternaryLabelColor) static let field = Color(nsColor: .textBackgroundColor) static let fieldBorder = Color(nsColor: .separatorColor) static let separator = Color(nsColor: .separatorColor) static let buttonText = Color.white static let note = Color(nsColor: .quaternarySystemFill) static let warnCard = Color(nsColor: .systemOrange).opacity(0.12) static let warnIcon = Color(nsColor: .systemOrange) static let warnText = Color(nsColor: .systemRed) static let good = Color(nsColor: .systemGreen) } enum Faces { static let title = Font.system(size: 15, weight: .semibold) static let headline = Font.system(size: 13, weight: .semibold) static let body = Font.system(size: 13) static let cardTitle = Font.system(size: 14, weight: .semibold) static let small = Font.system(size: 12) static let smallStrong = Font.system(size: 12, weight: .semibold) static let button = Font.system(size: 14, weight: .semibold) static let field = Font.system(size: 16) static let code = Font.system(size: 20) } extension Color { init(hex: UInt32) { self.init( .sRGB, red: Double((hex >> 16) & 0xFF) / 255, green: Double((hex >> 8) & 0xFF) / 255, blue: Double(hex & 0xFF) / 255, opacity: 1 ) } }