Colors
Synchronicity’s color system is built around warmth, contrast, and accessibility. Gold serves as the signature accent, while carefully calibrated grays adapt to each theme.
Gold Spectrum
Section titled “Gold Spectrum”Gold is the heart of Synchronicity. Use it sparingly for maximum impact.
Primary gold: gold-60 (#d4af37) is the canonical gold used for primary actions and accents.
Neutral Colors
Section titled “Neutral Colors”Void (Dark Backgrounds)
Section titled “Void (Dark Backgrounds)”Deep, cool-toned blacks for dark mode interfaces.
Cream (Light Backgrounds)
Section titled “Cream (Light Backgrounds)”Warm, paper-like tones for light mode interfaces.
Cool Gray (Dark Mode Text)
Section titled “Cool Gray (Dark Mode Text)”Blue-tinted grays for text and UI elements in dark mode.
Warm Gray (Light Mode Text)
Section titled “Warm Gray (Light Mode Text)”Beige-tinted grays for text and UI elements in light mode.
Ethereal Colors
Section titled “Ethereal Colors”Subtle accent colors for special states and decorative elements.
Support Colors
Section titled “Support Colors”Semantic colors for feedback and system states.
Semantic Color Mapping
Section titled “Semantic Color Mapping”Colors are mapped to semantic purposes that adapt per theme:
| Token | Light Mode | Dark Mode | True Black |
|---|---|---|---|
background | cream-10 | void-90 | void-100 |
surface | cream-20 | void-80 | void-90 |
text-primary | warm-90 | cool-10 | cool-10 |
text-secondary | warm-60 | cool-50 | cool-50 |
gold-primary | gold-60 | gold-60 | gold-60 |
border | cream-40 | void-60 | void-70 |
Accessibility
Section titled “Accessibility”All color combinations in Synchronicity meet WCAG AA standards:
- Text on background: Minimum 4.5:1 contrast ratio
- Large text: Minimum 3:1 contrast ratio
- UI components: Minimum 3:1 contrast ratio
Gold on dark backgrounds provides excellent contrast, while gold on light backgrounds uses the darker gold-80 variant for accessibility.
Usage in Code
Section titled “Usage in Code”import { useColors } from '@synchronicity/react-native';
function MyComponent() { const colors = useColors();
return ( <View style={{ backgroundColor: colors.background }}> <Text style={{ color: colors['text-primary'] }}> Hello </Text> <Text style={{ color: colors['gold-primary'] }}> Accent text </Text> </View> );}Or import primitives directly:
import { gold, warmGray } from '@synchronicity/tokens/primitives';
const styles = { accent: gold['gold-60'], text: warmGray['warm-90'],};