-
Notifications
You must be signed in to change notification settings - Fork 0
FAQ
No. The core ThemeKit product is zero-dependency. Lottie is only
downloaded if you depend on the separate ThemeKitLottie product.
They render, but fall back to system defaults. Apply
.themeKit() once at your app/scene root so components resolve the
design-system palette, spacing, and fonts.
The active theme is a singleton:
Theme.shared.setColorScheme(dark: true)If you applied .themeKit() (which reacts to runtime changes by default),
the whole UI re-skins.
Yes — generate a full palette from a single accent color at runtime:
Theme.shared.apply(ThemeConfig(primaryHex: "#7C3AED"))Yes. The type ramp (TextStyle) is built with relativeTo:, so every
.textStyle(_:) grows and shrinks with the user's preferred text size. Many
controls also scale their height to match.
Yes. SwiftUI mirrors layout automatically, and directional glyphs (chevrons, back/next arrows) are flipped via the library's RTL helper.
iOS 17+ and macOS 14+.
📖 Full API reference — build the DocC docs locally (the repo is private):
swift package --disable-sandbox preview-documentation --target ThemeKit