This skill provides the official SwiftUI Design System & Production Components for Apple platforms (iOS, macOS, iPadOS, watchOS, visionOS). It ensures all native UI automatically adheres to @kartikarora brand guidelines across colors, typography, shapes, spacing, and animations.
Color.brand, Font.brand*, BrandSpacing, and BrandCornerRadius. Never use raw hex colors or arbitrary padding.Color.brand semantic tokens which automatically adapt between the light canvas (#FFFFFF) and the signature dark studio canvas (#000000 pitch black).-0.03em tracking.BrandSpacing (xxs: 4, xs: 8, sm: 16, md: 24, lg: 32, xl: 48, xxl: 64, xxxl: 96) instead of hardcoded numbers.ArtifactRow and StanceView layouts with hairline dividers (Color.brand.rule) rather than wrapping every element in a rounded card.:focus-visible on macOS and iPadOS pointer interactions.Animation.spring(response: 0.22, dampingFraction: 0.8)).tokens/design-tokens.json. Re-run make tokens whenever tokens are updated.| Web / SSOT Token | Light Hex | Dark Hex | SwiftUI Semantic Token | Usage |
|---|---|---|---|---|
--color-paper |
#FFFFFF |
#000000 |
Color.brand.canvas |
Base screen canvas background |
--color-paper-alt |
#F6F8FA |
#0A0A0A |
Color.brand.surface |
Grouped containers, wells, sidebars |
--color-paper-sunken |
#EAEEF2 |
#050505 |
Color.brand.surfaceSunken |
Code blocks, CLI pills |
--color-ink |
#0D1117 |
#F0F4F8 |
Color.brand.ink |
Primary display headings and body text |
--color-ink-muted |
#57606A |
#8C9BA5 |
Color.brand.inkMuted |
Secondary text, subtitles, metadata |
--color-ink-faint |
#8D96A0 |
#64748B |
Color.brand.inkFaint |
Tertiary labels, disabled states |
--color-signal |
#0066CC |
#818CF8 |
Color.brand.signal |
Interactive accent (Precision Cobalt / Electric Indigo) |
--color-signal-hover |
#0052A3 |
#A5B4FC |
Color.brand.signalHover |
Pressed / hover state |
--color-signal-wash |
10% Alpha |
15% Alpha |
Color.brand.signalWash |
Translucent background washes |
--color-rule |
12% Black |
8% White |
Color.brand.rule |
Hairline dividers and borders |
--color-success |
#2DA44E |
#3FB950 |
Color.brand.success |
Status badges, passing tests |
--color-danger |
#CF222E |
#F85149 |
Color.brand.danger |
Error states, deprecation badges |
--color-warning |
#BF8700 |
#D29922 |
Color.brand.warning |
Alerts, draft states |
All components are located in references/Components.swift:
BrandButtonHigh-contrast pill buttons (.primary, .outline, .ghost, .small, .liquidGlass):
BrandButton("Launch Platform", style: .primary) {
launchURL()
}
// Apple-Grade Liquid Glass Button (refractive frosted glass with tactile spring)
BrandButton("Deploy Build", icon: "sparkles", style: .liquidGlass) {
deploy()
}
.liquidGlass(), .liquidGlassPill())Apply native Apple optical depth combining .ultraThinMaterial, specular beveled borders, and ambient light refraction:
// Any view or container to liquid glass
VStack(alignment: .leading, spacing: BrandSpacing.sm) {
Text("Live Telemetry").font(.brandHeadline)
Text("99.98% uptime across Sydney nodes").font(.brandBody)
}
.padding(BrandSpacing.md)
.liquidGlass(cornerRadius: BrandCornerRadius.lg)
// Full-round floating pill
HStack {
Image(systemName: "circle.fill").foregroundColor(Color.brand.success)
Text("Active Deployment")
}
.padding(.horizontal, BrandSpacing.sm)
.padding(.vertical, BrandSpacing.xs)
.liquidGlassPill()
LiquidGlassCard & LiquidGlassPillPre-built glassmorphic containers for floating panels and status bars:
LiquidGlassCard {
Text("Frosted Glass Metric Card")
}
LiquidGlassPill {
Text("Sydney ยท 120Hz")
}
StatusBadgeTranslucent status indicators (.win, .loss, .draft, .gde):
StatusBadge("GDE Android", variant: .gde)
ArtifactRowFull-bleed production software showcase with CLI pill and direct action:
ArtifactRow(
tag: "Tooling / 2026",
badge: "GraalVM Native",
title: "Klaat",
summary: "Native CLI compiler converting Google Docs into interactive codelabs.",
cliCommand: "klaat compile --source ./spec.gdoc",
actionTitle: "Launch codelab",
action: { launchKlaat() }
)
CLICommandPillTerminal command execution pill with one-tap copy:
CLICommandPill(command: "rocketflag.evaluate(\"dark_launch\")")
StanceViewEditorial architectural invariant presentation:
StanceView(
title: "Declarative Compose Performance",
bodyText: "UI is a pure reflection of state. Hoisting state cleanly guarantees steady 120Hz frame rates."
)
KeynoteRowSymposium ledger item for conference presentations:
KeynoteRow(
year: "2024",
location: "Sydney",
title: "High-Performance Multiplatform Runtimes",
event: "Android Developer Conference",
slidesURL: URL(string: "https://..."),
videoURL: URL(string: "https://...")
)
references/Color.swift โ Color tokens with dynamic dark/light supportreferences/Spacing.swift โ 8pt spacing grid constantsreferences/Shape.swift โ Corner radii and shape stylesreferences/Typography.swift โ Font styles and text modifiersreferences/Components.swift โ Complete SwiftUI component implementationsreferences/Theme.swift โ Environment keys and view modifiers