Repository Public
1// GENERATED by packages/ui-tokens/build.mjs — do not edit.2import SwiftUI34/// Design tokens shared with the web app. Colours adapt to the effective colour scheme; dark is the product default.5public enum Tokens {6 public struct Palette: Sendable {7 public let bgCanvas: Color8 public let bgSurface: Color9 public let bgRaised: Color10 public let bgInset: Color11 public let bgHover: Color12 public let borderSubtle: Color13 public let borderDefault: Color14 public let borderStrong: Color15 public let textPrimary: Color16 public let textSecondary: Color17 public let textTertiary: Color18 public let textDisabled: Color19 public let accentDefault: Color20 public let accentMuted: Color21 public let accentContrast: Color22 public let stateOk: Color23 public let stateOkMuted: Color24 public let stateWarning: Color25 public let stateWarningMuted: Color26 public let stateCritical: Color27 public let stateCriticalMuted: Color28 public let stateInfo: Color29 public let stateInfoMuted: Color30 public let stateStale: Color31 public let stateStaleMuted: Color32 public let stateOffline: Color33 public let stateOfflineMuted: Color34 public let stateMaintenance: Color35 public let stateMaintenanceMuted: Color36 public let chart1: Color37 public let chart2: Color38 public let chart3: Color39 public let chart4: Color40 public let chart5: Color41 public let chart6: Color42 public let chartGrid: Color43 public let chartAxis: Color44 public let focusRing: Color45 public let overlayScrim: Color46 public let qrLight: Color47 public let qrDark: Color48 }4950 public static let dark = Palette(51 bgCanvas: Color(.sRGB, red: 0.0392, green: 0.0431, blue: 0.0510, opacity: 1.000),52 bgSurface: Color(.sRGB, red: 0.0667, green: 0.0745, blue: 0.0902, opacity: 1.000),53 bgRaised: Color(.sRGB, red: 0.0902, green: 0.1020, blue: 0.1216, opacity: 1.000),54 bgInset: Color(.sRGB, red: 0.0275, green: 0.0314, blue: 0.0392, opacity: 1.000),55 bgHover: Color(.sRGB, red: 0.1137, green: 0.1294, blue: 0.1529, opacity: 1.000),56 borderSubtle: Color(.sRGB, red: 0.1216, green: 0.1373, blue: 0.1647, opacity: 1.000),57 borderDefault: Color(.sRGB, red: 0.1647, green: 0.1843, blue: 0.2196, opacity: 1.000),58 borderStrong: Color(.sRGB, red: 0.2314, green: 0.2588, blue: 0.3059, opacity: 1.000),59 textPrimary: Color(.sRGB, red: 0.9255, green: 0.9333, blue: 0.9490, opacity: 1.000),60 textSecondary: Color(.sRGB, red: 0.6392, green: 0.6627, blue: 0.7098, opacity: 1.000),61 textTertiary: Color(.sRGB, red: 0.5451, green: 0.5725, blue: 0.6275, opacity: 1.000),62 textDisabled: Color(.sRGB, red: 0.3059, green: 0.3294, blue: 0.3765, opacity: 1.000),63 accentDefault: Color(.sRGB, red: 0.4863, green: 0.7176, blue: 1.0000, opacity: 1.000),64 accentMuted: Color(.sRGB, red: 0.0863, green: 0.1882, blue: 0.3098, opacity: 1.000),65 accentContrast: Color(.sRGB, red: 0.0235, green: 0.0706, blue: 0.1216, opacity: 1.000),66 stateOk: Color(.sRGB, red: 0.2392, green: 0.8392, blue: 0.5490, opacity: 1.000),67 stateOkMuted: Color(.sRGB, red: 0.0588, green: 0.1804, blue: 0.1294, opacity: 1.000),68 stateWarning: Color(.sRGB, red: 0.9608, green: 0.7098, blue: 0.2902, opacity: 1.000),69 stateWarningMuted: Color(.sRGB, red: 0.2000, green: 0.1490, blue: 0.0510, opacity: 1.000),70 stateCritical: Color(.sRGB, red: 1.0000, green: 0.4196, blue: 0.4196, opacity: 1.000),71 stateCriticalMuted: Color(.sRGB, red: 0.2275, green: 0.0824, blue: 0.0902, opacity: 1.000),72 stateInfo: Color(.sRGB, red: 0.4863, green: 0.7176, blue: 1.0000, opacity: 1.000),73 stateInfoMuted: Color(.sRGB, red: 0.0863, green: 0.1882, blue: 0.3098, opacity: 1.000),74 stateStale: Color(.sRGB, red: 0.7176, green: 0.6118, blue: 0.9490, opacity: 1.000),75 stateStaleMuted: Color(.sRGB, red: 0.1490, green: 0.1176, blue: 0.2392, opacity: 1.000),76 stateOffline: Color(.sRGB, red: 0.4196, green: 0.4471, blue: 0.5020, opacity: 1.000),77 stateOfflineMuted: Color(.sRGB, red: 0.1098, green: 0.1216, blue: 0.1451, opacity: 1.000),78 stateMaintenance: Color(.sRGB, red: 0.3686, green: 0.8196, blue: 0.8784, opacity: 1.000),79 stateMaintenanceMuted: Color(.sRGB, red: 0.0588, green: 0.1765, blue: 0.2000, opacity: 1.000),80 chart1: Color(.sRGB, red: 0.4863, green: 0.7176, blue: 1.0000, opacity: 1.000),81 chart2: Color(.sRGB, red: 0.2392, green: 0.8392, blue: 0.5490, opacity: 1.000),82 chart3: Color(.sRGB, red: 0.9608, green: 0.7098, blue: 0.2902, opacity: 1.000),83 chart4: Color(.sRGB, red: 0.7176, green: 0.6118, blue: 0.9490, opacity: 1.000),84 chart5: Color(.sRGB, red: 0.3686, green: 0.8196, blue: 0.8784, opacity: 1.000),85 chart6: Color(.sRGB, red: 1.0000, green: 0.5608, blue: 0.6941, opacity: 1.000),86 chartGrid: Color(.sRGB, red: 0.1216, green: 0.1373, blue: 0.1647, opacity: 1.000),87 chartAxis: Color(.sRGB, red: 0.5451, green: 0.5725, blue: 0.6275, opacity: 1.000),88 focusRing: Color(.sRGB, red: 0.6118, green: 0.7961, blue: 1.0000, opacity: 1.000),89 overlayScrim: Color(.sRGB, red: 0.0000, green: 0.0000, blue: 0.0000, opacity: 0.702),90 qrLight: Color(.sRGB, red: 1.0000, green: 1.0000, blue: 1.0000, opacity: 1.000),91 qrDark: Color(.sRGB, red: 0.0000, green: 0.0000, blue: 0.0000, opacity: 1.000)92 )9394 public static let light = Palette(95 bgCanvas: Color(.sRGB, red: 0.9608, green: 0.9647, blue: 0.9725, opacity: 1.000),96 bgSurface: Color(.sRGB, red: 1.0000, green: 1.0000, blue: 1.0000, opacity: 1.000),97 bgRaised: Color(.sRGB, red: 1.0000, green: 1.0000, blue: 1.0000, opacity: 1.000),98 bgInset: Color(.sRGB, red: 0.9255, green: 0.9333, blue: 0.9490, opacity: 1.000),99 bgHover: Color(.sRGB, red: 0.9137, green: 0.9255, blue: 0.9451, opacity: 1.000),100 borderSubtle: Color(.sRGB, red: 0.8902, green: 0.9020, blue: 0.9216, opacity: 1.000),101 borderDefault: Color(.sRGB, red: 0.8078, green: 0.8275, blue: 0.8588, opacity: 1.000),102 borderStrong: Color(.sRGB, red: 0.6039, green: 0.6353, blue: 0.6863, opacity: 1.000),103 textPrimary: Color(.sRGB, red: 0.0667, green: 0.0745, blue: 0.0902, opacity: 1.000),104 textSecondary: Color(.sRGB, red: 0.2706, green: 0.2941, blue: 0.3412, opacity: 1.000),105 textTertiary: Color(.sRGB, red: 0.4118, green: 0.4392, blue: 0.4902, opacity: 1.000),106 textDisabled: Color(.sRGB, red: 0.6392, green: 0.6627, blue: 0.7098, opacity: 1.000),107 accentDefault: Color(.sRGB, red: 0.0431, green: 0.3725, blue: 0.8000, opacity: 1.000),108 accentMuted: Color(.sRGB, red: 0.8627, green: 0.9216, blue: 1.0000, opacity: 1.000),109 accentContrast: Color(.sRGB, red: 1.0000, green: 1.0000, blue: 1.0000, opacity: 1.000),110 stateOk: Color(.sRGB, red: 0.0549, green: 0.4784, blue: 0.2902, opacity: 1.000),111 stateOkMuted: Color(.sRGB, red: 0.8667, green: 0.9608, blue: 0.9098, opacity: 1.000),112 stateWarning: Color(.sRGB, red: 0.5608, green: 0.3529, blue: 0.0000, opacity: 1.000),113 stateWarningMuted: Color(.sRGB, red: 0.9882, green: 0.9373, blue: 0.8235, opacity: 1.000),114 stateCritical: Color(.sRGB, red: 0.7529, green: 0.1490, blue: 0.1765, opacity: 1.000),115 stateCriticalMuted: Color(.sRGB, red: 0.9922, green: 0.8902, blue: 0.8902, opacity: 1.000),116 stateInfo: Color(.sRGB, red: 0.0431, green: 0.3725, blue: 0.8000, opacity: 1.000),117 stateInfoMuted: Color(.sRGB, red: 0.8627, green: 0.9216, blue: 1.0000, opacity: 1.000),118 stateStale: Color(.sRGB, red: 0.3569, green: 0.2471, blue: 0.7020, opacity: 1.000),119 stateStaleMuted: Color(.sRGB, red: 0.9176, green: 0.8902, blue: 0.9843, opacity: 1.000),120 stateOffline: Color(.sRGB, red: 0.3569, green: 0.3843, blue: 0.4392, opacity: 1.000),121 stateOfflineMuted: Color(.sRGB, red: 0.9020, green: 0.9098, blue: 0.9255, opacity: 1.000),122 stateMaintenance: Color(.sRGB, red: 0.0392, green: 0.4353, blue: 0.4863, opacity: 1.000),123 stateMaintenanceMuted: Color(.sRGB, red: 0.8471, green: 0.9451, blue: 0.9569, opacity: 1.000),124 chart1: Color(.sRGB, red: 0.0431, green: 0.3725, blue: 0.8000, opacity: 1.000),125 chart2: Color(.sRGB, red: 0.0549, green: 0.4784, blue: 0.2902, opacity: 1.000),126 chart3: Color(.sRGB, red: 0.5608, green: 0.3529, blue: 0.0000, opacity: 1.000),127 chart4: Color(.sRGB, red: 0.3569, green: 0.2471, blue: 0.7020, opacity: 1.000),128 chart5: Color(.sRGB, red: 0.0392, green: 0.4353, blue: 0.4863, opacity: 1.000),129 chart6: Color(.sRGB, red: 0.7020, green: 0.1412, blue: 0.3608, opacity: 1.000),130 chartGrid: Color(.sRGB, red: 0.8902, green: 0.9020, blue: 0.9216, opacity: 1.000),131 chartAxis: Color(.sRGB, red: 0.4118, green: 0.4392, blue: 0.4902, opacity: 1.000),132 focusRing: Color(.sRGB, red: 0.0431, green: 0.3725, blue: 0.8000, opacity: 1.000),133 overlayScrim: Color(.sRGB, red: 0.0667, green: 0.0745, blue: 0.0902, opacity: 0.400),134 qrLight: Color(.sRGB, red: 1.0000, green: 1.0000, blue: 1.0000, opacity: 1.000),135 qrDark: Color(.sRGB, red: 0.0000, green: 0.0000, blue: 0.0000, opacity: 1.000)136 )137138 public static func palette(_ scheme: ColorScheme) -> Palette { scheme == .light ? light : dark }139140 public enum Space {141 public static let s0: CGFloat = 0142 public static let s1: CGFloat = 2143 public static let s2: CGFloat = 4144 public static let s3: CGFloat = 8145 public static let s4: CGFloat = 12146 public static let s5: CGFloat = 16147 public static let s6: CGFloat = 20148 public static let s7: CGFloat = 24149 public static let s8: CGFloat = 32150 public static let s9: CGFloat = 40151 public static let s10: CGFloat = 56152 public static let s11: CGFloat = 72153 }154155 public enum Radius {156 public static let none: CGFloat = 0157 public static let sm: CGFloat = 4158 public static let md: CGFloat = 6159 public static let lg: CGFloat = 10160 public static let xl: CGFloat = 14161 public static let pill: CGFloat = 999162 }163164 public enum FontSize {165 public static let s2xs: CGFloat = 11166 public static let xs: CGFloat = 12167 public static let sm: CGFloat = 13168 public static let md: CGFloat = 14169 public static let lg: CGFloat = 16170 public static let xl: CGFloat = 20171 public static let s2xl: CGFloat = 26172 public static let s3xl: CGFloat = 34173 public static let display: CGFloat = 44174 }175176 public enum Size {177 public static let touchMin: CGFloat = 44178 public static let controlSm: CGFloat = 28179 public static let controlMd: CGFloat = 34180 public static let controlLg: CGFloat = 44181 public static let sidebar: CGFloat = 232182 public static let topbar: CGFloat = 52183 public static let contentMax: CGFloat = 1680184 }185186 public enum Motion {187 public static let instant: Double = 0.08188 public static let fast: Double = 0.14189 public static let base: Double = 0.22190 public static let slow: Double = 0.36191 }192}193