Banker for shadcn/ui

Banker is a shadcn/ui theme built around a violet primary color (#774294) with teal accents (#429477). The light mode uses a neutral background (#fdfbfd). Dark mode keeps the violet primary (#774294) on a violet-tinted background (#09050b).

Color palette

TokenLightDark
Background
#fdfbfdsnow
#09050bblack
Foreground
#060109black
#fdfcfdwhite
Card
#fdfbfdsnow
#09050bblack
Card foreground
#060109black
#fdfcfdwhite
Popover
#fdfbfdsnow
#09050bblack
Popover foreground
#060109black
#fdfcfdwhite
Primary
#774294rebeccapurple
#774294rebeccapurple
Primary foreground
#ffffffwhite
#ffffffwhite
Secondary
#947742sienna
#947742sienna
Secondary foreground
#ffffffwhite
#ffffffwhite
Muted
#eeeae2linen
#1d1911black
Muted foreground
#656058dimgray
#a7a39adarkgray
Accent
#429477mediumseagreen
#429477mediumseagreen
Accent foreground
#ffffffwhite
#ffffffwhite
Destructive
#c03f0cfirebrick
#f26b36tomato
Destructive foreground
#ffffffwhite
#000000black
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#774294rebeccapurple
#774294rebeccapurple

Contrast

WCAG 2 contrast ratios between each background and its foreground color.

Light mode
Text on background20.12:1AAA
Text on card20.12:1AAA
Primary button6.99:1AA
Secondary button4.20:1AA Large
Muted text5.19:1AA
Accent3.66:1AA Large
Destructive5.31:1AA
Dark mode
Text on background19.80:1AAA
Text on card19.80:1AAA
Primary button6.99:1AA
Secondary button4.20:1AA Large
Muted text6.96:1AA
Accent3.66:1AA Large
Destructive6.93:1AA

CSS variables

Paste this into your globals.css to use Banker in your shadcn/ui project.

:root {
  --radius: 0.5rem;
  --background: oklch(0.991 0.003 314.203);
  --foreground: oklch(0.101 0.03 316.741);
  --muted: oklch(0.938 0.012 83.065);
  --muted-foreground: oklch(0.492 0.015 83.054);
  --popover: oklch(0.991 0.003 314.203);
  --popover-foreground: oklch(0.101 0.03 316.741);
  --card: oklch(0.991 0.003 314.203);
  --card-foreground: oklch(0.101 0.03 316.741);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.48 0.136 312.374);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.586 0.079 81.663);
  --secondary-foreground: oklch(1 0 180);
  --accent: oklch(0.607 0.092 167.685);
  --accent-foreground: oklch(1 0 180);
  --destructive: oklch(0.547 0.173 37.998);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.48 0.136 312.374);
  --chart-1: oklch(0.48 0.136 312.374);
  --chart-2: oklch(0.586 0.079 81.663);
  --chart-3: oklch(0.607 0.092 167.685);
  --chart-4: oklch(0.616 0.084 81.637);
  --chart-5: oklch(0.479 0.145 312.171);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.124 0.017 315.436);
  --foreground: oklch(0.992 0.001 314.213);
  --muted: oklch(0.215 0.016 82.809);
  --muted-foreground: oklch(0.716 0.013 83.064);
  --popover: oklch(0.124 0.017 315.436);
  --popover-foreground: oklch(0.992 0.001 314.213);
  --card: oklch(0.124 0.017 315.436);
  --card-foreground: oklch(0.992 0.001 314.213);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.48 0.136 312.374);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.586 0.079 81.663);
  --secondary-foreground: oklch(1 0 180);
  --accent: oklch(0.607 0.092 167.685);
  --accent-foreground: oklch(1 0 180);
  --destructive: oklch(0.686 0.179 40.568);
  --destructive-foreground: oklch(0 0 0);
  --ring: oklch(0.48 0.136 312.374);
  --chart-1: oklch(0.48 0.136 312.374);
  --chart-2: oklch(0.586 0.079 81.663);
  --chart-3: oklch(0.607 0.092 167.685);
  --chart-4: oklch(0.616 0.084 81.637);
  --chart-5: oklch(0.479 0.145 312.171);
}