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.jsonTeller 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.
| Where | Pair | Light | Dark |
|---|---|---|---|
| Body text | foreground on background | 15.62:1 · Lc 103 | 16.07:1 · Lc 96 |
| Secondary text on the page | muted-foreground on background | 7.45:1 · Lc 86 | 9.28:1 · Lc 63 |
| Text in cards | card-foreground on card | 15.62:1 · Lc 103 | 14.59:1 · Lc 95 |
| Secondary text in cards | muted-foreground on card | 7.45:1 · Lc 86 | 8.43:1 · Lc 62 |
| Menus and popovers | popover-foreground on popover | 15.62:1 · Lc 103 | 14.59:1 · Lc 95 |
| Primary buttons | primary-foreground on primary | 8.57:1 · Lc 93 | 9.80:1 · Lc 67 |
| Links and outline accents | primary on background | 8.57:1 · Lc 89 | 9.77:1 · Lc 65 |
| Secondary buttons | secondary-foreground on secondary | 14.09:1 · Lc 95 | 13.64:1 · Lc 94 |
| Text on muted panels | muted-foreground on muted | 6.72:1 · Lc 79 | 7.88:1 · Lc 61 |
| Hovered menu items | accent-foreground on accent | 8.53:1 · Lc 80 | 8.91:1 · Lc 75 |
| Error messages | destructive on background | 6.58:1 · Lc 81 | 8.94:1 · Lc 61 |
| Sidebar | sidebar-foreground on sidebar | 15.09:1 · Lc 100 | 15.12:1 · Lc 95 |
| Sidebar active item | sidebar-primary-foreground on sidebar-primary | 8.57:1 · Lc 93 | 9.80:1 · Lc 67 |
| Sidebar hover | sidebar-accent-foreground on sidebar-accent | 14.09:1 · Lc 95 | 13.64:1 · Lc 94 |
| Focus ring | ring on background | 8.57:1 | 9.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.jsonOr 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-sansThe registry item: themes.dev/r/presets/teller.json. Free to use in any project.
: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.
