Listoca
Customization

Rebrand in 10 minutes

Designs, colors, fonts, name, themes, logo and favicon.

Rebranding picks a design (one line), adjusts its colors, and sets the app name in each app's config. Replacing the mark also touches the logo component and the favicons.

1. The design: packages/ui/src/design.ts

A design is the whole look: colors, fonts, type scale, corner radii, control heights, shadows, and the layout of the signed-in shell and the sign-in pages. Switching is one line:

export const design: DesignName = "focus";

bun run design edge rewrites that line for you, and bun run design lists the designs with the active one marked. A running dev server picks up the change; a production build needs a rebuild.

DesignLookShellSign-in
focusInstrument Sans, violet, compact; the page as an inset panelsidebar (inset)card
calmFigtree, warm neutrals, terracotta, roomyicon railcard
edgeGeist, black and white, pill tagstop bar, tabscard
desktopa 90s desktop: bevelled silver windows on tealfloatingcard
paperIBM Plex, paper tones, forest green, small radiisidebarcard
ledgerFigtree, navy sidebar, electric bluesidebarsplit
nightHanken Grotesk, indigo; dark until the user picks a themesidebarcard
simpleGeist, cool greys, bright orange, large radiifloatingsplit
defaultshadcn's lyra style: Inter, neutral, square, compactsidebarcard

Every app sets the design as data-design on <html>: the web app, the marketing site and these docs follow it. The layout part (shell, sidebar, auth, defaultTheme) is the design's entry in designs in the same file.

2. Colors, fonts and sizes: packages/ui/src/styles/designs/<design>.css

Each design is one CSS file: light values under [data-design="<name>"], dark ones under [data-design="<name>"].dark. The colors are shadcn's tokens plus three:

  • --primary is the primary button's fill (near-black in several designs).
  • --brand is the accent: the Logo, links, progress bars, selected states, chart colors.
  • --hero is the colored panel next to the form in the split sign-in layout.

Usually changing --brand and --ring (and --primary where the design's buttons use the accent) in both blocks is enough. The other variables set the fonts (--design-font-sans, -heading, -mono), the type scale (--design-text-xs, -sm), radii (--design-radius-control, -surface for cards and dialogs, -panel for the app's panels and tables, -tag, and --radius for Tailwind's rounded-sm…rounded-xl), control heights (--control-h, --input-h) and shadows (--design-shadow-control, -primary, -card). packages/ui/src/styles/tokens.css lists them; default.css holds the fallback for each.

A design file may also restyle the shared components by their data-slot (calm.css sizes buttons, inputs, tags, switches, menus and tooltips like its mockups). Those rules sit outside Tailwind's layers, so they win over the components' classes; a page that needs another size marks its class with !.

Fonts are self-hosted with Fontsource (packages/ui/src/styles/fonts.css); browsers download only the faces the active design uses. To add one, add the package to packages/ui, import it there and name it in the design's --design-font-*.

A new design is a new file in styles/designs/ (imported in tokens.css) plus an entry in designs. It sets every token default sets, in a light block and a dark one, or it shows default's value there; bun run test (packages/ui/src/design.test.ts) fails on a missing token, a design tokens.css doesn't import, or a … Variable font that isn't installed and imported.

3. Name and themes: apps/web/src/config.ts

  • appName is used in the sidebar and page titles.
  • enabledThemes and defaultTheme control the theme choices ("system" is always offered). defaultTheme follows the design's when it has one (night starts dark).
  • Also review redirectAfterSignIn, salesUrl and navigation.

The other apps keep their own name: apps/marketing/src/config.ts, apps/docs/src/lib/shared.ts and, for emails (with the brand color), packages/mail/src/config.ts.

4. Logo and favicon

  • packages/ui/src/components/logo.tsx is the mark in the headers of the web app, the marketing site and the docs: the app icon's four tiles without the white plate. Keep the 32×32 viewBox and the fill-foreground / stroke-background classes on the checked tile, so it follows the theme.
  • apps/web/public/ has the app icon for browsers: favicon.svg (browser tabs), favicon.ico (16, 32 and 48 px, for older browsers) and apple-touch-icon.png (180 px, square: iOS rounds the corners on the home screen). The marketing site and the docs have copies in their public/ folders, and each app's __root.tsx links all three.
  • The marketing site's share image (apps/marketing/src/lib/og-image.tsx) draws a copy of the mark in the light theme's colors.
  • The native app's icons and splash are in apps/native/assets/images (app.json). Renaming its URL scheme (scheme in app.json) also means nativeAppScheme in packages/auth/src/native-app.ts; a test fails until both match.

Emails show the app name as text: inline SVG isn't reliable in email clients. For an image logo in emails, host a PNG and add it to packages/mail/src/components/wrapper.tsx.

Checking it

Run bun run dev and look at both themes. Check:

  • the sign-in page
  • the sidebar, collapsed and expanded (or the rail, or the top bar)
  • a settings page
  • onboarding (sign up a new user)

bun run test checks each design's text colors against their surfaces (4.5:1, in packages/ui/src/design.test.ts); a palette change that drops below fails there.

Themes switch without a flash on reload, because next-themes sets the class before the page renders.

On this page