Skip to content
cyril-fl edited this page Nov 30, 2026 · 4 revisions

Theme

Choosing a theme

Each account chooses its theme and its mode in Settings > Appearance (since v0.19.0). Both are stored on the account (theme and color_mode in PATCH /api/me) and follow it from one device to another.

  • Themes: Notes (default), Dracula, Catppuccin, Nord, Gruvbox, Everforest, Tokyo Night, Vue, chosen with a click on their thumbnail.
  • Mode: system (default), light or dark. Once light or dark is chosen, a button at the bottom of the sidebar switches between them. In the ⌘K palette (Normal plan), moving over a theme shows it on the whole app; Enter keeps it and Escape puts the account's back.

Choosing the theme in the settings

Adding a theme

A theme is six palettes: an accent color (primary: buttons, links, active item), a gray scale (neutral: backgrounds, texts, borders) and four status colors (success, info, warning, error). The grays serve light mode around 50 and dark mode around 900.

  1. Declare its palettes of 11 shades (50 to 950) in the @theme static blocks of web/app/assets/css/main.css: --color-nord-500, --color-nord-gray-50, --color-nord-success-400…
  2. Add it to the list in web/app/utils/themes.ts: own('nord').
  3. Repeat its id in domain.Themes (core/domain/users.go): the API refuses themes it does not know, and a test checks that the two lists match.
  4. Give it a name in the app's messages, settings.themes in French and in English.
  5. Check it in light and in dark; web/test/themes.test.ts checks its contrast (WCAG AA).

In components, write color="primary", text-muted, bg-elevated... never a hard-coded color: everything follows the theme.

Fonts

Text is in Reddit Sans, code in Geist Mono, set in main.css (--font-sans, --font-mono). The @nuxt/fonts module downloads them at the first build and the app serves them itself: the rendering is the same on macOS and Linux. The first build therefore needs Internet.

Radius

--ui-radius in main.css (0.25rem).

Clone this wiki locally