Foundations/Colors

Color System

SwiftDS uses a carefully crafted color palette with warm sand accents and adaptive light/dark mode support. All colors are semantic tokens that automatically adapt to the user's appearance preference.

Primary Colors

dsPrimary

Warm sand accent

#C4A882

dsPrimaryHover

Hover state

#B09872

dsPrimaryMuted

Subtle background

#F5F0E8

Backgrounds

dsBackground

Page background

#FAFAFA

dsSurface

Card surface

#FFFFFF

dsSurfaceElevated

Elevated surface

#FAFAF9

Foreground / Text

dsForeground

Primary text

#1A1816

dsForegroundMuted

Secondary text

#5A5650

dsForegroundSubtle

Tertiary text

#9A9690

Semantic Colors

dsSuccess

Success state

#22C55E

dsWarning

Warning state

#F59E0B

dsError

Error state

#EF4444

dsInfo

Info state

#3B82F6

Borders

dsBorder

Default border

#E8E8E8

dsBorderSubtle

Subtle border

#F0F0F0

Dark Mode

All colors automatically adapt to dark mode. The system uses DSAdaptiveColor to provide light and dark variants that resolve based on the user's ColorScheme preference.

Dark mode variants are automatically applied. For example, dsBackground switches from #FAFAFA (light) to #0E0E0C (dark).