Foundations
Typography and shadows
Change the font, use the type scale and keep weights and shadows consistent.
Fonts are CSS variables
The template uses Literata for display and headline titles, Plus Jakarta Sans for interface text and figures (.kpi-value), and JetBrains Mono for codes. All three are self-hosted by @nuxt/fonts, so no request goes to Google at runtime. They are set in BRAND_FONTS (config/brand.config.ts), and npm run fonts:sync writes them as CSS variables:
:root {
--v-font-body:
'Plus Jakarta Sans', 'Plus Jakarta Sans Fallback', system-ui, -apple-system, 'Segoe UI',
sans-serif;
--v-font-heading: 'Literata', 'Literata Fallback', Georgia, serif;
--v-font-heading-weight: 600;
--v-font-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}
Vuetify resolves the display, headline and title classes through var(--v-font-heading, var(--v-font-body)); _typography.scss keeps text-title-large on the body font so dense interface titles stay sans. Display and headline weights come from --v-font-heading-weight, so a landing brand can switch to another heading face and weight (see LandingPage). To go back to a single sans, give heading the same family as body and weight: 700.
Change the font
- Change
family(andfallback, the generic stack after it) ofbody,headingormonoinBRAND_FONTS(config/brand.config.ts).provideris the@nuxt/fontsprovider:googleby default,localfor a file of your own.heading.weightis the weight of display and headline titles. - Run
npm run fonts:sync, or restartnpm run dev, which runs it first. It writes the--v-font-*variables in_typography.scss, regenerates the fallback@font-facewith the metrics of the new font and removes the block of the old one.nuxt.config.tsreads the same object, so the font is self-hosted with the weights the design uses (body 400, 600, 700 and 800; headings 600 and 700; mono 400 and 600). Google Fonts are measured from a metrics database; for your own font, put its file (.woff2,.woff,.ttfor.otf, named after the family, such aspublic/fonts/AcmeSans-Regular.woff2) inpublic/orassets/. Without it the text shifts when the font loads.
$body-font-family in vuetify.scss replaces the whole var() chain with a fixed value and the CSS variable stops working.The type scale
Use the Vuetify classes. They already carry the right size, weight and letter spacing:
Class | Weight | Typical use |
|---|---|---|
text-display-large|medium|small | --v-font-heading-weight (600) | Hero titles and big numbers |
text-headline-large|medium|small | --v-font-heading-weight (600) | Page titles and card titles |
text-title-large|medium|small | 600–700 | Section titles, list titles |
text-body-large|medium|small | 400 | Paragraphs and table cells |
text-label-large|medium|small | 600 | Chips, buttons, eyebrows |
Only four weights load
The project loads Plus Jakarta Sans at 400, 600, 700 and 800 and Literata at 600 and 700 (normal and italic). Vuetify's font-weight-medium and text-* utilities are re-declared in _typography.scss so they map to those weights. Do not introduce 300 or 500: they would fall back to a synthetic weight. Component weights such as $button-font-weight live in vuetify.scss; keep both files in sync.
Numbers and code
Class | Use it for |
|---|---|
.kpi-value | Big KPI figures: body font at weight 700, tight letter spacing and tabular lining figures, so digits stay legible and aligned. |
.font-mono | Codes, IDs, invoice numbers and tracking numbers. |
.font-tabular | Amounts and figures in tables, legends and documents: the body font with tabular numbers. |
Shadows
Shadow strength is part of the theme: shadow-key-opacity and shadow-ambient-opacity in each theme's variables (config/theme.config.ts). Dark mode uses stronger values because shadows are harder to see on dark surfaces. Do not set $shadow-key-color or $shadow-ambient-color in vuetify.scss: they only reach component styles, so a card and an elevation-2 div would render different shadows.
Where the styles live
File | Contains |
|---|---|
assets/styles/main.scss | The entry point loaded by nuxt.config.ts. |
assets/styles/vuetify.scss | Vuetify SCSS settings: component weights, radius and sizes. |
config/brand.config.ts | The font families (BRAND_FONTS). |
assets/styles/_typography.scss | Font variables and fallback faces written by npm run fonts:sync, and the weight overrides. |
assets/styles/_overrides.scss | Fine adjustments to Vuetify components, such as input borders. |
assets/styles/structure/ | Layout and shared component styles (.app-panel, charts). |
Never add import 'vuetify/styles' to a plugin. It loads the precompiled Vuetify CSS and every override in vuetify.scss silently stops applying.