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.

TokenPurpose
.primaryAccentPrimary accent and interactive emphasis
.primaryBackgroundBase application background
.secondaryBackgroundSecondary grouped surface
.tertiaryBackgroundElevated or tertiary surface
.primaryFontPrimary foreground
.secondaryFontSecondary foreground
.tertiaryFontTertiary foreground
.primaryInvertedFontPrimary foreground on an inverted surface
.secondaryInvertedFontSecondary foreground on an inverted surface
.primaryGreenPositive or successful semantic state
.primaryYellowCautionary semantic state
.primaryRedDestructive 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.