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.
| Design | Look | Shell | Sign-in |
|---|---|---|---|
focus | Instrument Sans, violet, compact; the page as an inset panel | sidebar (inset) | card |
calm | Figtree, warm neutrals, terracotta, roomy | icon rail | card |
edge | Geist, black and white, pill tags | top bar, tabs | card |
desktop | a 90s desktop: bevelled silver windows on teal | floating | card |
paper | IBM Plex, paper tones, forest green, small radii | sidebar | card |
ledger | Figtree, navy sidebar, electric blue | sidebar | split |
night | Hanken Grotesk, indigo; dark until the user picks a theme | sidebar | card |
simple | Geist, cool greys, bright orange, large radii | floating | split |
default | shadcn's lyra style: Inter, neutral, square, compact | sidebar | card |
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:
--primaryis the primary button's fill (near-black in several designs).--brandis the accent: theLogo, links, progress bars, selected states, chart colors.--herois 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
appNameis used in the sidebar and page titles.enabledThemesanddefaultThemecontrol the theme choices ("system"is always offered).defaultThemefollows the design's when it has one (nightstarts dark).- Also review
redirectAfterSignIn,salesUrlandnavigation.
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.tsxis 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 the32×32viewBox and thefill-foreground/stroke-backgroundclasses 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) andapple-touch-icon.png(180 px, square: iOS rounds the corners on the home screen). The marketing site and the docs have copies in theirpublic/folders, and each app's__root.tsxlinks 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 (schemeinapp.json) also meansnativeAppSchemeinpackages/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.