Repository navigation
Releases
Releases · emmanuel-defreitas/SpectrumUI
v0.2.0 — Foundations token system
Replaces the v0.1.0 marker namespace with a real Foundations token system.
What's new
- 8 token categories reachable via
Spectrum.{color, spacing, typography, motion, elevation, radius, opacity, sizing}. - 4 SwiftUI-native value types:
SpectrumColor(ShapeStyle-conforming),SpectrumFont,SpectrumDuration,SpectrumElevation. AllEquatable + Sendable. - Theme + ThemeOverrides with builder API; built-in
.light/.dark. - SwiftUI Environment integration:
\.spectrumTheme,View.spectrumTheme(_:),View.spectrumFont(_:),Animation.spectrum(_:reduceMotion:). - Real generator (SPM command plugin) emitting 326 tokens from the Adobe Spectrum JSON snapshot (
adobe/spectrum-design-datacommitc970c1e4adbc):- 19 color families × ~16 shades = 301 adaptive palette colors
- 15 spacing tokens, 10 corner-radius tokens
- Idempotent: re-running produces zero diff
- 5 categories hand-curated by design (Adobe doesn't publish them in a generator-ready form): typography, motion, elevation, opacity, sizing — each documented as such in source headers.
- Accessibility: every typography token carries a
Font.TextStyleanchor for Dynamic Type pickup; every motion token has a reduced-motion variant. - 40 / 40 tests covering color-scheme adaptation, theme override, sibling-isolation, Dynamic Type metadata, reduce-motion, and traceability.
Breaking changes from v0.1.0
SpectrumUIFoundationsno longer exposes themoduleNameconstant. Use theSpectrum.*namespace instead. Pre-1.0.0 versioning permits this break per the constitution.
What's not yet shipped
- Atoms, molecules, and icons remain v0.1.0 marker namespaces. Their real APIs come in subsequent releases.
- Image-snapshot baselines for token rendering (deferred — needs review tooling).
- A programmatic generator-idempotency XCTest (manual
md5sumcheck is in place).
Use it
.package(url: "https://github.com/Mannydefreitas7/SpectrumUI.git", from: "0.2.0")import SwiftUI
import SpectrumUIFoundations
Text("Hello")
.spectrumFont(Spectrum.typography.headingM)
.foregroundStyle(Spectrum.color.text.body)
.padding(Spectrum.spacing.s400)
.background(Spectrum.color.background.layer1,
in: .rect(cornerRadius: Spectrum.radius.s500))Full PR: #2
v0.1.0 — SPM package skeleton
Initial release. Establishes the multi-product SwiftPM package layout for SpectrumUI.
What's in v0.1.0
- 5 library products:
SpectrumUIFoundations,SpectrumUIIcons,SpectrumUIAtoms,SpectrumUIMolecules, and the umbrellaSpectrumUI. - Upward-only dependency graph; downward dependencies are structurally impossible (verified — see PR #1).
- Platforms: macOS 14+, iOS 17+.
- GitHub Actions CI matrix building and testing on both platforms.
- DocC catalog stubs per product.
- Apache 2.0 license.
What's NOT in v0.1.0
This release ships marker-namespace stubs only. There are no tokens, icons, atoms, or molecules yet. Importing any product gives you a single moduleName constant useful for diagnostics.
The next release will populate SpectrumUIFoundations with the design token system.
Pre-1.0.0 stability note
Per the constitution's versioning rules, pre-1.0.0 minor releases may contain breaking changes. The 1.0.0 release will ship alongside the first set of stable components.
Use it
```swift
.package(url: "https://github.com/Mannydefreitas7/SpectrumUI.git", from: "0.1.0")
```
Full PR with spec/plan/tasks paper trail: #1