Customizing Theme Colors & Fonts
Files: src/styles/theme.css, src/config/fonts.json · Skill level: Beginner
The Folex theme uses CSS variables in src/styles/theme.css for colors, breakpoints, and the type scale. Update these values to match your brand. These two files stay in code in all three editions, including Tina and Sanity.
@theme inline { --leading-body: 1.8; --leading-inherit: inherit;
/* Colors */ --color-primary: #0d0f01; --color-secondary: #bcd4ff; --color-accent: #e3ff04; --color-accent-blue: #1601ac; --color-body: #fff; --color-body-dark: #070800; --color-border-light: #e5e5e5; --color-border-dark: #292525; --color-theme-dark: #0e1118;; --color-theme-light: #f6f5f3; --color-text-default: #2e2e2e; --color-dark: #0a0c00; --color-light: #f6f5f3;
}Customizing Colors
- Adjust the
--color-*variables to match your brand palette. - Update
--color-text-defaultto refine text contrast.
Typography Settings
Fonts are configured in src/config/fonts.json and loaded automatically.
[ { "name": "Poppins", "variants": [ { "style": "normal", "weight": "400" }, { "style": "normal", "weight": "500" } ], "preload": true, "display": "swap", "cssVariable": "--font-primary", "provider": "google", "subsets": [ "latin" ], "fallback": "sans-serif" }, { "name": "Unbounded", "variants": [ { "style": "normal", "weight": "400" }, { "style": "normal", "weight": "500" }, { "style": "normal", "weight": "600" }, { "style": "normal", "weight": "700" } ], "preload": true, "display": "swap", "cssVariable": "--font-secondary", "provider": "google", "subsets": [ "latin" ], "fallback": "sans-serif" }, { "name": "IBM Plex Sans Arabic", "variants": [ { "style": "normal", "weight": "400" }, { "style": "normal", "weight": "500" }, { "style": "normal", "weight": "600" }, { "style": "normal", "weight": "700" } ], "preload": false, "display": "swap", "cssVariable": "--font-arabic", "provider": "google", "subsets": [ "arabic" ], "languages": [ "ar" ], "fallback": false }]Font Customization
- Update
nameandvariantsto match your brand. - Keep
cssVariablein sync with theme styles that reference it. - For local fonts, set
providertolocal, and make sure the font’s files exist and are committed. languageslimits a font to those languages. IBM Plex Sans Arabic loads only on Arabic pages. See RTL & Arabic.