DesignFoundation
A SwiftUI design system I built because every new project I started, I was rebuilding the same buttons, inputs, cards, and modals, losing another two weeks to it.

DesignFoundation gives you a token-based theming engine and 54 SwiftUI components that all read from the same theme. Set the theme once at the app root, every component underneath updates. That's the whole idea.
8 theme presets (16 light/dark themes). A style protocol for every styleable component, including Liquid Glass styles for iOS/macOS 26+. One popup engine that powers toasts, floaters, centered cards and bottom sheets. Swift 6 strict concurrency safe.
One component set in the Slate, Aurora, Copper and Sage presets (Garnet not shown), each in light and dark. Only the theme changed.

DesignFoundation is free and open source. If it saved you time, sponsoring NerdSnipe Inc pays for the maintenance, bug fixes and new releases that keep it working.
Requirements
- iOS 18+, macOS 15+, visionOS 2+
- Xcode 26+ (Swift tools 6.0; deploys to iOS 18+, macOS 15+, visionOS 2+)
- Liquid Glass (
.glass) styles only take effect on iOS/macOS 26+. Everything else works on the minimums above.
Installation
Add the package via Swift Package Manager.
Xcode: File → Add Package Dependencies → https://github.com/NerdSnipe-Inc/design-foundation → Up to Next Major Version from 1.9.0
Package.swift:
dependencies: [
.package(url: "https://github.com/NerdSnipe-Inc/design-foundation", from: "1.9.0")
],
targets: [
.target(
name: "YourApp",
dependencies: [
.product(name: "DesignFoundation", package: "design-foundation")
]
)
]
Then import DesignFoundation. The package is named design-foundation (the repo name) and the library product is DesignFoundation, so use the .product(name:package:) form; the bare "DesignFoundation" shorthand doesn't resolve against the GitHub URL.
Claude Code Plugin
Install the AI-agent knowledge and slash commands directly:
/plugin install design-foundation --marketplace NerdSnipe-Inc/design-foundation
Or in two steps:
/plugin marketplace add NerdSnipe-Inc/design-foundation
/plugin install design-foundation
Gives you /design-foundation:component, /design-foundation:theme, /design-foundation:new-screen, /design-foundation:audit, and /design-foundation:pro.
Claude Desktop / claude.ai: run python3 scripts/build_desktop_skill_zip.py and upload the resulting zip under Settings → Capabilities → Skills.
Quick Start
Set a theme preset at the root, then use components. This is the whole setup:
import SwiftUI
import DesignFoundation
@main
struct MyApp: App {
var body: some Scene {
WindowGroup {
HomeView()
.dfToast() // once, at the root: enables toasts
.dfThemePreset(.slate) // theme at or outside .dfToast() so toasts are themed too
}
}
}
struct HomeView: View {
@Environment(\.dfTheme) private var theme
@State private var email = ""
var body: some View {
DFCard {
VStack(alignment: .leading, spacing: theme.spacing.md) {
DFText("Welcome", scale: .title)
DFTextField("Email", text: $email, placeholder: "[email protected]")
DFButton("Get started") {
DFToastQueue.shared.show(text: "Saved", severity: .success)
}
}
}
.padding(theme.spacing.lg)
}
}
Theme System