Customization/Typography and icons

Typography and icons

A calm, light type style and one consistent icon set give Accordee its feel. Fonts are bundled files people can switch between, sizes are named tokens, and icons are plain imports you can swap.

Fonts

Accordee uses Inter for the interface by default and Hedvig Letters Serif for a few headings, like the greeting on the Agents screen and the titles in the Help panel. Five more font sets ship alongside Inter for the font setting. All are files in src/app/fonts, loaded in src/app/layout.tsx, so no font requests leave your site and the app works offline.

FontKindNotes
InterSans serifThe default
GeistSans serifA little narrower than Inter
Geist MonoMonoCode and IDs switch to JetBrains Mono
JetBrains MonoMonoCode and IDs switch to Geist Mono
Source Serif 4SerifSized up slightly to match Inter
LiterataSerifSized up slightly to match Inter

Each is the Latin subset of a variable font (one file, every weight), 22 to 52 KB, under the SIL Open Font License 1.1. The licence and every font's copyright line are in src/app/fonts/OFL.txt; keep that file when you ship.

The font setting

Each person picks a font in Themes (at the foot of the sidebar) or Settings › Preferences › Font. It works like theme colour, density and layout style:

  • Saved per person as prefs.font (src/lib/data/preferences.ts), Inter by default. Reset to defaults in Themes brings Inter back.
  • Applied before the first paint. The script in components/providers/theme-provider.tsx sets html[data-font], and globals.css points --font-sans-family at that font, so there's no flash of the wrong one.
  • Only the font on screen downloads. None of the fonts preload; a browser fetches a font file only when text uses it, so a first visit loads one font, as before. The Font picker shows each font's "Aa", so opening it loads the others.
  • Evened out. Sizes are matched to Inter with font-size-adjust, and the mono fonts run a touch smaller and tighter so labels and tables keep their width. Table cells use tabular figures in every font.
  • Embedded previews (like the ones on this site) always show Inter.

Add your own font

Put the font file in src/app/fonts. A variable .woff2 with a weight axis keeps the 440 weight exact. Check its licence lets you bundle it, and add its notice to OFL.txt (or a file of its own).

Declare it in src/app/layout.tsx next to the others, and add it to fontVariables:

src/app/layout.tsx
const brand = localFont({
  src: "./fonts/Brand-Latin.woff2",
  variable: "--font-brand-family",
  weight: "100 900",
  display: "swap",
  preload: false,
})

Map it in src/app/globals.css, with a size adjustment if it runs large or small:

src/app/globals.css
html[data-font="brand"] {
  --font-sans-family: var(--font-brand-family), ui-sans-serif, system-ui, sans-serif;
}

Add { id: "brand", label: "Brand", kind: "Sans serif", family: "var(--font-brand-family)" } to FONTS in src/lib/fonts.ts, and brand to the list of ids in the script in theme-provider.tsx. It now shows in the Font picker.

Want one font for everyone, with no choice? Make it the default: change DEFAULT_FONT in src/lib/fonts.ts and :root in the font block of globals.css, then remove the Font row from the Themes window and Settings › Preferences.

Type sizes

Text sizes are named tokens in src/app/globals.css, so changing one size changes it everywhere it's used:

TokenSizeUsed for
text-micro, text-tiny10px, 11pxBadges and small labels
text-caption, text-label12px, 13pxHints, table cells, menus
text-body14pxMost text
text-subtitle, text-title15px, 16pxPanel and card titles
text-heading-sm, text-heading18px, 20pxSection and page headings
text-metric, text-display-sm, text-display24px, 26px, 30pxNumbers and greetings

Font weight tops out at 440

Nothing in Accordee is heavier than 440, between regular (400) and medium (500). Bold text in a dense CRM gets loud fast; a light, even weight keeps screens calm and lets size and colour do the work. globals.css caps font-medium, font-semibold and font-bold at 440, so nothing goes heavier by accident.

Prefer a bolder look? Raise those three values (to 500 or 600, say) and every heading and label follows.

Icons

Interface icons come from Lucide (lucide-react), one set used everywhere. Adding an icon is one import:

Any component
import { Rocket } from "lucide-react"

<Rocket className="size-4 text-textMuted" />
  • Change their size or colour with the usual utilities, like size-4 and text-textMuted.
  • Swap to another set by replacing the lucide-react imports; an AI coding tool can do it file by file. Pick a set with the same outline style so screens stay consistent.
  • The agents' flower marks are drawn in components/icons/agent-glyph.tsx, with each agent's colours in the agent data.
  • App and payment logos are image tiles in public/apps and public/payments.