Colors
Theme-resolved semantic colors for foregrounds, backgrounds, accents, and status.
FreakUI exposes semantic colors as both Color values and adaptive ShapeStyle values. Each token resolves from the active light and dark theme.
| Token | Purpose |
|---|---|
.primaryAccent | Primary accent and interactive emphasis |
.primaryBackground | Base application background |
.secondaryBackground | Secondary grouped surface |
.tertiaryBackground | Elevated or tertiary surface |
.primaryFont | Primary foreground |
.secondaryFont | Secondary foreground |
.tertiaryFont | Tertiary foreground |
.primaryInvertedFont | Primary foreground on an inverted surface |
.secondaryInvertedFont | Secondary foreground on an inverted surface |
.primaryGreen | Positive or successful semantic state |
.primaryYellow | Cautionary semantic state |
.primaryRed | Destructive or error semantic state |
Text("Saved")
.foregroundStyle(.primaryGreen)
.padding(.paddingS)
.background(.secondaryBackground)
DefaultColorLibrary provides a named collection of Apple-native colors for client-owned objects such as color pickers. It is separate from the semantic theme palette.