Skip to content
New: Customize your theme with an AI assistant. Read the guide

Customizing Theme Colors & Fonts

Files: src/styles/theme.css, src/config/fonts.json · Skill level: Beginner

Lumio uses Tailwind theme variables in src/styles/theme.css. Update those values to match your brand palette and typography.

src/styles/theme.css
@theme inline {
/* Configure font families in `src/config/fonts.json` */
--leading-body: 1.8;
--leading-inherit: inherit;
/* Colors */
--color-primary: #2563ff;
--color-secondary: #9ECF59;
--color-accent: #6366F1;
--color-body: #fff; /* Background color */
--color-theme-light: #f5f3ef; /* light surface/card section */
--color-theme-dark: #141414; /* dark surface/card section */
--color-text-default: #222222; /* default text on light backgrounds */
--color-text-inverse: #FFFFFF; /* default text on dark backgrounds */
--color-border-light: #ECEEF1; /* light border */
--color-border-dark: #222222; /* dark border */
--color-dark: #3B3B3B; /* heading/dark UI color if needed */
--color-light: #fff6f6; /* light UI color if needed */
}

Customizing Colors

  • Update the --color-* variables in src/styles/theme.css.
  • Keep contrast in mind for button states, footer text, and dark sections.
  • If you change brand colors heavily, review buttons.css, navigation.css, and section-specific classes afterwards.

Typography Settings

Fonts are configured in src/config/fonts.json and wired into Astro through astro.config.mjs.

[
{
"name": "Outfit",
"variants": [
{ "style": "normal", "weight": "400" },
{ "style": "normal", "weight": "500" },
{ "style": "normal", "weight": "600" },
{ "style": "normal", "weight": "700" },
{ "style": "normal", "weight": "900" }
],
"preload": true,
"display": "swap",
"cssVariable": "--font-primary",
"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"],
"fallback": false,
"languages": ["ar"]
}
]

Font Customization

  • Update name, variants, provider, and subsets to match your preferred font.
  • Keep cssVariable aligned with the variables referenced in theme.css.
  • Lumio uses Outfit for Latin text. IBM Plex Sans Arabic loads only on Arabic pages, because its languages value is ["ar"]. See RTL & Arabic.
  • If you add another family, also update the styles that should use it.
Type something to search...