@kartikarora Brand SwiftUI Component System (v2.0.0)

This skill provides the official Tokyo Neo-Brutalist SwiftUI Design System & Component Registry 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, maintaining 100% visual parity with the web baseline.


โš ๏ธ Strict Mandates for AI Agents

  1. Brand Fidelity: All views must use the semantic tokens defined in Color.brand, Font.brand*, BrandSpacing, and BrandCornerRadius. Never use raw hex colors or arbitrary padding.
  2. Dynamic Light & Dark Support: Use Color.brand semantic tokens which automatically adapt between the architectural light canvas (#FFFFFF paper) and the deep space obsidian dark canvas (#070A10).
  3. The Tokyo Punch in SwiftUI:
  4. Typography Standard: Use Chivo for display and body text, and JetBrains Mono for code, CLI snippets, and technical telemetry. Display headings must apply -0.03em to -0.04em tracking. (Albert Sans has been retired).
  5. 8pt Spacing Grid: Use BrandSpacing (xxs: 4, xs: 8, sm: 16, md: 24, lg: 32, xl: 48, xxl: 64, xxxl: 96) instead of hardcoded numbers.
  6. No Card Envelopes for Showcases: Use the full-bleed ArtifactRow and StanceView layouts with hairline dividers (Color.brand.rule) or neo-brutalist .tokyoCard() modifiers.
  7. Accessible Touch Targets: Interactive controls must maintain a minimum 44ร—44pt tap target on iOS/iPadOS and support instant :focus-visible on macOS and iPadOS pointer interactions.
  8. Fast Fluid Motion: Use standard iOS spring animations with fast response (Animation.spring(response: 0.22, dampingFraction: 0.8)).
  9. Brand Synchronization: This skill derives directly from tokens/design-tokens.json. Re-run make tokens whenever tokens are updated.

๐ŸŽจ Semantic Token Mapping

Web / SSOT Token Light Hex Dark Hex SwiftUI Semantic Token Usage
--color-paper #FFFFFF #070A10 Color.brand.canvas Base screen canvas background
--color-paper-alt #F4F6FA #0D121C Color.brand.surface Grouped containers, wells, sidebars
--color-paper-sunken #E6EBF3 #04060A Color.brand.surfaceSunken Code blocks, CLI pills
--color-ink #0A111C #F0F6FC Color.brand.ink Primary display headings and body text
--color-ink-muted #49586E #8A9BB4 Color.brand.inkMuted Secondary text, subtitles, metadata
--color-ink-faint #7F90A6 #4E5F7A Color.brand.inkFaint Tertiary labels, disabled states
--color-signal #0084C7 #00F0FF Color.brand.signal Akihabara Cyan interactive signal
--color-signal-hover #009CEB #33F3FF Color.brand.signalHover Pressed / hover state
--color-signal-secondary #E6B800 #FFE600 Color.brand.signalSecondary Caution Yellow secondary pop
--color-rule #CDD8E6 #1A2436 Color.brand.rule Hairline dividers and borders
--color-rule-strong #0A111C #273752 Color.brand.ruleStrong Neo-brutalist active borders and solid drop-shadows
--color-success #2DA44E #3FB950 Color.brand.success Status badges, passing tests
--color-danger #CF222E #F85149 Color.brand.danger Error states, deprecation badges
--color-warning #E6B800 #FFE600 Color.brand.warning Alerts, caution indicators

๐Ÿ“ฆ Component Registry & Usage

All components are located in references/Components.swift and are ready for production use across iOS, macOS, iPadOS, and watchOS:

1. BrandButton

High-contrast neo-brutalist buttons with solid block shadows and kinetic press physics:

BrandButton("Launch Platform", style: .primary) {
    launchURL()
}

BrandButton("Inspect Code", style: .outline) {
    openCode()
}

// Apple-Grade Liquid Glass Button (refractive frosted glass with tactile spring)
BrandButton("Deploy Build", icon: "sparkles", style: .liquidGlass) {
    deploy()
}

2. StatusBadge

Tokyo neo-brutalist status tags with solid block shadows:

StatusBadge("GDE Android", variant: .gde)
StatusBadge("Experimental", variant: .secondary)

3. CLICommandPill

Terminal command execution pill with solid Cyan accent left border and tap-to-copy:

CLICommandPill(command: "klaat compile --source ./spec.gdoc")

4. SlidingTabs

Accessible Tokyo neo-brutalist sliding tabs with Caution Yellow pop shadow on active Cyan pill:

@State private var selectedTab = "Overview"
let tabs = ["Overview", "Architecture", "Telemetry", "Specifications"]

SlidingTabs(tabs: tabs, selection: $selectedTab)

5. FeatureCard & TokyoCard

Solid block shadow card containers with 2pt rule borders:

FeatureCard(
    iconName: "bolt.fill",
    title: "High-Performance Runtimes",
    description: "Optimized GraalVM native image binaries delivering sub-10ms cold starts."
) {
    openRuntime()
}

TokyoCard {
    VStack(alignment: .leading, spacing: BrandSpacing.xs) {
        Text("ARCHITECTURAL INVARIANT").font(.brandMonoBadge).foregroundColor(Color.brand.signal)
        Text("Declarative State Hoisting").font(.brandTitle).foregroundColor(Color.brand.ink)
    }
}

6. ArtifactRow

Full-bleed software showcase row with tag, title, summary, and action link:

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() }
)

7. StanceView

Editorial architectural invariant presentation:

StanceView(
    title: "Declarative Compose Performance",
    bodyText: "UI is a pure reflection of state. Hoisting state cleanly guarantees steady 120Hz frame rates."
)

8. KeynoteRow

Symposium ledger item for conference presentations:

KeynoteRow(
    year: "2026",
    location: "Sydney",
    title: "High-Performance Multiplatform Runtimes",
    event: "Android Developer Conference",
    slidesURL: URL(string: "https://..."),
    videoURL: URL(string: "https://...")
)

9. BrandStatement

Editorial pull quote with 3pt Cyan left accent rule:

BrandStatement(
    quote: "Code is an artifact of thought; design is the discipline of making it inevitable.",
    citation: "Kartik Arora ยท Lead Engineer"
)

10. SpecCard & TelemetryMetric

Technical specification ledger and tabular metrics:

SpecCard(
    title: "Binary Targets",
    specs: [("Platform", "macOS / iOS"), ("Architecture", "Universal 2"), ("Size", "4.2 MB")]
)

TelemetryMetric(
    value: "150K+",
    label: "Active Developer Sessions"
)

11. LiquidGlassCard & LiquidGlassPill

Refractive frosted glass containers for Apple platforms:

LiquidGlassCard {
    Text("Frosted Glass Telemetry")
}

LiquidGlassPill {
    Text("Sydney ยท 120Hz")
}

๐Ÿ—‚ Reference Implementation Files