Skip to content

Teller, a shadcn/ui preset

Bank indigo with DM Sans: trustworthy without the navy cliché. It comes from Teller, one of our website themes.

Fonts: DM Sans · radius 0.625rem · light and dark · lowest text contrast 6.58:1

npx shadcn@latest add https://www.themes.dev/r/presets/teller.json
Edit in the generator

Teller on six free blocks from themes.dev UI. Scroll inside the preview.

The colours

The main variables, light and dark. The full set of 31 per mode, sidebar and charts included, is in the CSS below.

Light

  • background#ffffff
  • foreground#212427
  • primary#3038c0
  • primary-foreground#ffffff
  • secondary#f6f2f3
  • muted-foreground#4e5566
  • accent#e4e6fb
  • border#dcdfea
  • destructive#b42318
  • ring#3038c0
  • chart-1#a6bcff
  • chart-2#6a85ff
  • chart-3#5268d9
  • chart-4#3d4fb1
  • chart-5#2c3a8f

Dark

  • background#10111b
  • foreground#ecedf7
  • primary#bcb2ff
  • primary-foreground#0e1024
  • secondary#20222c
  • muted-foreground#b1b5cf
  • accent#282d4e
  • border#2e3142
  • destructive#ff9788
  • ring#bcb2ff
  • chart-1#aac0ff
  • chart-2#7893ff
  • chart-3#5d74e7
  • chart-4#4558bb
  • chart-5#334399

Contrast, checked

Every pair shadcn/ui draws text with, measured as WCAG 2 contrast (AA needs 4.5:1) and APCA Lc (we ask 60 for text). Focus rings need 3:1 on the page.

WherePairLightDark
Body textforeground on background15.62:1 · Lc 10316.07:1 · Lc 96
Secondary text on the pagemuted-foreground on background7.45:1 · Lc 869.28:1 · Lc 63
Text in cardscard-foreground on card15.62:1 · Lc 10314.59:1 · Lc 95
Secondary text in cardsmuted-foreground on card7.45:1 · Lc 868.43:1 · Lc 62
Menus and popoverspopover-foreground on popover15.62:1 · Lc 10314.59:1 · Lc 95
Primary buttonsprimary-foreground on primary8.57:1 · Lc 939.80:1 · Lc 67
Links and outline accentsprimary on background8.57:1 · Lc 899.77:1 · Lc 65
Secondary buttonssecondary-foreground on secondary14.09:1 · Lc 9513.64:1 · Lc 94
Text on muted panelsmuted-foreground on muted6.72:1 · Lc 797.88:1 · Lc 61
Hovered menu itemsaccent-foreground on accent8.53:1 · Lc 808.91:1 · Lc 75
Error messagesdestructive on background6.58:1 · Lc 818.94:1 · Lc 61
Sidebarsidebar-foreground on sidebar15.09:1 · Lc 10015.12:1 · Lc 95
Sidebar active itemsidebar-primary-foreground on sidebar-primary8.57:1 · Lc 939.80:1 · Lc 67
Sidebar hoversidebar-accent-foreground on sidebar-accent14.09:1 · Lc 9513.64:1 · Lc 94
Focus ringring on background8.57:19.77:1

Use it

With the shadcn CLI, in a project set up with shadcn init:

npx shadcn@latest add https://www.themes.dev/r/presets/teller.json

Or paste the CSS into globals.css (Next.js) or your main stylesheet (Vite, Astro), replacing the :root and .dark values that are there.

Then load the font:

npm i @fontsource-variable/dm-sans

The registry item: themes.dev/r/presets/teller.json. Free to use in any project.

globals.css
:root {
  --radius: 0.625rem;
  --background: oklch(1 0 0);
  --foreground: oklch(0.258 0.007 248.1);
  --card: oklch(1 0 0);
  --card-foreground: oklch(0.258 0.007 248.1);
  --popover: oklch(1 0 0);
  --popover-foreground: oklch(0.258 0.007 248.1);
  --primary: oklch(0.435 0.207 271.47);
  --primary-foreground: oklch(1 0 0);
  --secondary: oklch(0.965 0.004 0);
  --secondary-foreground: oklch(0.258 0.007 248.1);
  --muted: oklch(0.965 0.004 0);
  --muted-foreground: oklch(0.45 0.029 267.57);
  --accent: oklch(0.93 0.028 281.49);
  --accent-foreground: oklch(0.383 0.175 272.61);
  --destructive: oklch(0.5 0.182 29.51);
  --border: oklch(0.905 0.015 273.84);
  --input: oklch(0.588 0.028 270.9);
  --ring: oklch(0.435 0.207 271.47);
  --chart-1: oklch(0.804 0.098 269.55);
  --chart-2: oklch(0.656 0.183 271.34);
  --chart-3: oklch(0.56 0.174 271.47);
  --chart-4: oklch(0.47 0.157 271.47);
  --chart-5: oklch(0.39 0.141 271.47);
  --sidebar: oklch(0.988 0 0);
  --sidebar-foreground: oklch(0.258 0.007 248.1);
  --sidebar-primary: oklch(0.435 0.207 271.47);
  --sidebar-primary-foreground: oklch(1 0 0);
  --sidebar-accent: oklch(0.965 0.004 0);
  --sidebar-accent-foreground: oklch(0.258 0.007 248.1);
  --sidebar-border: oklch(0.905 0.015 273.84);
  --sidebar-ring: oklch(0.435 0.207 271.47);
}

.dark {
  --background: oklch(0.183 0.02 277.26);
  --foreground: oklch(0.948 0.013 281.56);
  --card: oklch(0.228 0.022 276.18);
  --card-foreground: oklch(0.948 0.013 281.56);
  --popover: oklch(0.228 0.022 276.18);
  --popover-foreground: oklch(0.948 0.013 281.56);
  --primary: oklch(0.8 0.108 289.67);
  --primary-foreground: oklch(0.183 0.041 277.26);
  --secondary: oklch(0.253 0.02 277.26);
  --secondary-foreground: oklch(0.948 0.013 281.56);
  --muted: oklch(0.253 0.02 277.26);
  --muted-foreground: oklch(0.779 0.037 278.56);
  --accent: oklch(0.31 0.06 275.68);
  --accent-foreground: oklch(0.872 0.067 290.54);
  --destructive: oklch(0.781 0.128 29.18);
  --border: oklch(0.318 0.03 277.27);
  --input: oklch(0.622 0.052 278.25);
  --ring: oklch(0.8 0.108 289.67);
  --chart-1: oklch(0.814 0.093 269.31);
  --chart-2: oklch(0.692 0.161 270.91);
  --chart-3: oklch(0.6 0.174 271.47);
  --chart-4: oklch(0.5 0.157 271.47);
  --chart-5: oklch(0.42 0.141 271.47);
  --sidebar: oklch(0.213 0.02 277.26);
  --sidebar-foreground: oklch(0.948 0.013 281.56);
  --sidebar-primary: oklch(0.8 0.108 289.67);
  --sidebar-primary-foreground: oklch(0.183 0.041 277.26);
  --sidebar-accent: oklch(0.253 0.02 277.26);
  --sidebar-accent-foreground: oklch(0.948 0.013 281.56);
  --sidebar-border: oklch(0.318 0.03 277.27);
  --sidebar-ring: oklch(0.8 0.108 289.67);
}

@theme inline {
  --font-sans: "DM Sans Variable", "DM Sans", ui-sans-serif, system-ui, sans-serif;
  --font-heading: "DM Sans Variable", "DM Sans", ui-sans-serif, system-ui, sans-serif;
}

The whole site

Teller started as Teller, a website theme

Teller is a complete site for Savings banks, online banks and credit unions: every page, the content model and a live demo, built from the same blocks, in Astro and Next.js + Sanity. It comes with UI Pro, from €199 once, with every other theme.

More shadcn/ui presets

All 37 presets