Skip to content
Type something to search...
Stella Theme Documentation

Customizing Theme Colors & Fonts

The Stella theme uses CSS variables in src/styles/theme.css for colors and typography. Update these values to match your brand.

src/styles/theme.css
@theme inline {
/* Configure font families in `src/config/fonts.json` */
--leading-body: 1.8;
--leading-inherit: inherit;
/* Colors */
--color-primary: #6B1AFF;
--color-accent: #630FFD;
--color-body: #fff;
--color-border-light: #ECEEF1;
--color-theme-light: #F8F8F8;
--color-theme-dark: #372D3F;
--color-text-default: #3B3B3B;
--color-dark: #322B2B; /* Heading colors */
--color-light: #fff6f6;
}

Customizing Colors

  • Adjust the --color-* variables to match your brand palette.
  • Update --color-text-* variables to refine text contrast.

Typography Settings

Fonts are configured in src/config/fonts.json and loaded automatically.

[
{
"name": "Figtree",
"variants": [
{
"style": "normal",
"weight": "400"
},
{
"style": "normal",
"weight": "500"
}
],
"preload": false,
"display": "swap",
"cssVariable": "--font-primary",
"provider": "google",
"subsets": [
"latin"
],
"fallback": "sans-serif"
},
{
"name": "Instrument Serif",
"variants": [
{
"style": "normal",
"weight": "400"
}
],
"preload": false,
"display": "swap",
"cssVariable": "--font-secondary",
"provider": "google",
"subsets": [
"latin"
],
"fallback": "sans-serif"
}
]

Font Customization

  • Update name, weights/variants, and styles to match your brand.
  • Keep cssVariable in sync with theme styles that reference it.
  • For local fonts, ensure the src paths exist and are committed.