Foundations

Typography and shadows

Change the font, use the type scale and keep weights and shadows consistent.

assets/styles/_typography.scss

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:

assets/styles/_typography.scss
: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

  1. Change family (and fallback, the generic stack after it) of body, heading or mono in BRAND_FONTS (config/brand.config.ts). provider is the @nuxt/fonts provider: google by default, local for a file of your own. heading.weight is the weight of display and headline titles.
  2. Run npm run fonts:sync, or restart npm run dev, which runs it first. It writes the --v-font-* variables in _typography.scss, regenerates the fallback @font-face with the metrics of the new font and removes the block of the old one. nuxt.config.ts reads 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, .ttf or .otf, named after the family, such as public/fonts/AcmeSans-Regular.woff2) in public/ or assets/. Without it the text shifts when the font loads.

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|small600–700Section titles, list titles
text-body-large|medium|small400Paragraphs and table cells
text-label-large|medium|small600Chips, 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-valueBig KPI figures: body font at weight 700, tight letter spacing and tabular lining figures, so digits stay legible and aligned.
.font-monoCodes, IDs, invoice numbers and tracking numbers.
.font-tabularAmounts 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.scssThe entry point loaded by nuxt.config.ts.
assets/styles/vuetify.scssVuetify SCSS settings: component weights, radius and sizes.
config/brand.config.tsThe font families (BRAND_FONTS).
assets/styles/_typography.scssFont variables and fallback faces written by npm run fonts:sync, and the weight overrides.
assets/styles/_overrides.scssFine 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.

© 2026 melsami UI.
Developer documentation for melsami UI.