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

Colors & Fonts

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

Components use named color tokens, so changing a token in one file changes it across the site.

Brand And Surface Colors

Open src/styles/theme.css. The colors are in the @theme block at the top:

@theme {
/* Brand colors */
--color-primary: #CCF664;
--color-accent: #0f3d3a;
/* Surface colors */
--color-body: #FFFFFF;
--color-theme-dark: #193133;
--color-theme-light: #F5F6F7;
--color-theme-cream: #FAF8F2;
/* Content colors */
--color-dark: #1e1e1e;
--color-text-default: #5f5f5f;
}
TokenUsed forTailwind classes
--color-primaryPrimary buttons, highlights, accentsbg-primary, text-primary
--color-accentDeep accent colorbg-accent, text-accent
--color-bodyPage backgroundbg-body
--color-body-secondaryAlternate page backgroundbg-body-secondary
--color-theme-darkDark sections and dark buttonsbg-theme-dark
--color-theme-lightLight gray panels and cardsbg-theme-light
--color-theme-creamWarm background of the corporate homepagebg-theme-cream
--color-section-warmWarm surface of some section cards and panelsbg-section-warm
--color-darkHeadings and strong texttext-dark
--color-lightText on dark backgroundstext-light
--color-text-defaultBody texttext-text-default
--color-border-light, --color-border-dark, --color-border-primary, --color-border-inputBorders, dividers, and form fieldsborder-border-light, …

Aim for a contrast of at least 4.5:1 between text and its background. The shipped primary is a light lime, so text on primary buttons is dark.

Consultiz has one color scheme. It has no dark mode switch.

Fonts

Fonts are set in src/config/fonts.json. Each entry is one family:

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

The shipped fonts and where they are used:

cssVariableShipped fontUsed for
--font-primaryInterBody text
--font-secondarySpace GroteskHeadings
--font-ternaryFunnel DisplayHeadings on pages that use the alternate heading font (pricing, legal, and several inner pages)
--font-reference-bodyPoppinsBody text on the main homepage
--font-reference-headingInter TightHeadings on the main homepage

To change a font, replace "name" with any Google Fonts family name and keep its cssVariable. List only the weights you use: every weight is an extra file to download. The font files are downloaded at build time and served from your own site.

FieldWhat it does
nameFont family name, exactly as it is written on the provider’s site
variantsThe styles and weights to include
cssVariableWhich role the font fills. Don’t rename these
providergoogle (default), fontsource, bunny, or fontshare
preloadtrue loads the font earlier. Use it for one font at most
subsetsCharacter sets, for example ["latin", "latin-ext"] for more accented letters
fallbackFont used while yours loads

Type Scale

Heading sizes are calculated from two numbers in theme.css:

--text-base: 1rem; /* body text size (16px) */
--text-base-scale: 1.23; /* each heading level is 1.23× the one below */
--text-base-sm: calc(var(--text-base) * 0.9); /* base size on small screens */

Raise --text-base-scale for bigger headings, or lower it for a quieter look. h1 to h6 and the large display sizes all follow.

Breakpoints

Screen widths where the layout changes, also in theme.css:

NameWidth
xs380px
sm540px
md768px
lg1024px
xl1320px

Corner Radius

--radius-custom (10px) and --radius-section (20px) in theme.css set the rounded corners of cards and section panels.

Type something to search...