SP GlassKit1.1.0

SwiftUI · iOS, iPadOS, macOS 26 · v1.1.0

The Liquid Glass design system you own.

50 native SwiftUI components, typed design tokens, 8 themes and a source registry. Add the Swift package, or copy the sources into your project and make them yours.

spglass add glass-button

The CLI is built from the repository. Or add the Swift package.

Get started Browse the components Source

Captures of the components running in SP Glass Studio on the iOS simulator. The glass is drawn by the system; these are images, not live previews.
Components
50
in 10 categories
Themes
8
light and dark, typed tokens
Platforms
3
iOS, iPadOS, macOS 26
Dependencies
0
no telemetry, no account

01 Native material

Real Liquid Glass, stated honestly.

Custom surfaces call the system glassEffect API, and system controls keep the glass the system draws. Nothing imitates the material with shaders or blur — on this site either: glass appears only in captures of the running app.

  • System control24Drawn by the system. GlassKit configures it and leaves the glass to the system.
  • Custom glass9Draws its own Liquid Glass surface, with an opaque form when Reduce Transparency is on.
  • Content17Content on an opaque, readable surface. Glass is kept for controls.
  • Glass for controls, opaque for content. Cards, tables and charts sit on readable surfaces, as the Human Interface Guidelines ask.
  • No fictional settings. Themes set colours, type, spacing, shape and motion. Blur, refraction and the opacity of glass belong to the system and are not offered as sliders.
  • Limits are written down. Each component page lists what the system draws, what was verified and what was not.

02 Distribution

Two ways to adopt it.

Depend on the Swift package, or run spglass add to copy a component and what it needs into your project. Copied files import nothing from GlassKit and are yours: an update never overwrites your changes without asking. The two modes can be mixed.

Installation guide

Swift package
// Package.swift
dependencies: [
    .package(
        url: "https://git.spboucher.ai/sp-glasskit.git",
        from: "1.1.0"
    )
]

// In a view
import SPGlassKit

GlassButton("Save", systemImage: "checkmark", variant: .prominent) {
    save()
}
.glassTheme(.aurora)
Copied sources
spglass init                 # writes spglass.json after detecting the project
spglass add glass-button     # copies the component and what it depends on
spglass theme add aurora

spglass diff                 # your changes against the installed version
spglass update --dry-run     # modified files are never overwritten silently

03 Themes

A theme is a value, not a global.

Colours for light and dark, typography, spacing, radii, motion and density, injected with .glassTheme(_:) and read from the environment. Two themes can live in the same window.

Swatches drawn in CSS from the theme files: left light, right dark. All themes and palettes

04 Studio

A native app to explore, tune and export.

SP Glass Studio runs on iPhone, iPad and Mac, offline. Browse the catalogue, change typed parameters on live previews, edit a theme with contrast checks, compose a screen in the playground and export Swift that compiles.

SP Glass Studio on macOS: the catalogue, a component preview with its variants, typed parameters and the generated Swift code.Capture
macOS — catalogue, preview, typed parameters and generated code. Capture of the real application.
SP Glass Studio on iPhone showing a component page.Capture
iPhone — capture of the real application on the iOS simulator.

Downloads and checksums

05 Accessibility

Built in, component by component.

  • Reduce TransparencyEvery custom glass surface has an opaque form, and previews can simulate the setting.
  • VoiceOverLabels, values and roles on every control. An icon button cannot be created without a label.
  • Dynamic TypeText follows the user's size and wraps instead of truncating.
  • Reduce MotionAnimations are short. With Reduce Motion they stop or become a plain cross-fade, and the state stays readable.
  • Not colour aloneStatus is carried by text, icon or system role as well as by colour.
  • Measured contrastText against the opaque backgrounds of the designed themes is tested to WCAG AA. Over glass a static ratio is an indication, and the site says so.

06 Registry and CLI

A registry you can read, a CLI that refuses to guess.

Static JSON manifests and source files over HTTPS, with immutable versions and a SHA-256 for every file. spglass verifies them, writes transactionally and rolls back on failure or interruption. Downloaded content is never executed.

How the registry works

Terminal
spglass list --category navigation
spglass info glass-tab-bar
spglass add glass-button glass-tab-bar --dry-run
spglass verify               # every installed file against its checksum
spglass doctor

Start with one component.

Install Components Themes