Banker for shadcn/ui

Banker is a shadcn/ui theme built around a vivid green primary color (#4ee006) with neutral gray accents (#d9d9d9). The light mode uses a neutral background (#ffffff). Dark mode keeps the vivid green primary (#4ee006) on a green-tinted background (#090f05).

Color palette

TokenLightDark
Background
#ffffffwhite
#090f05black
Foreground
#020401black
#ffffffwhite
Card
#fcfcfcsnow
#0b1307black
Card foreground
#000000black
#ffffffwhite
Popover
#ffffffwhite
#090f05black
Popover foreground
#020401black
#ffffffwhite
Primary
#4ee006lawngreen
#4ee006lawngreen
Primary foreground
#091901black
#091901black
Secondary
#d9d9d9gainsboro
#141513black
Secondary foreground
#404040darkslategray
#acb1a9darkgray
Muted
#f4f0f0whitesmoke
#0c0f0bblack
Muted foreground
#6a5858dimgray
#9ba795darkgray
Accent
#d9d9d9gainsboro
#141513black
Accent foreground
#404040darkslategray
#acb1a9darkgray
Destructive
#a12c12brown
#ea6143tomato
Destructive foreground
#fcece8linen
#000000black
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#4ee006lawngreen
#4ee006lawngreen

Contrast

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

Light mode
Text on background20.58:1AAA
Text on card20.54:1AAA
Primary button10.39:1AAA
Secondary button7.32:1AAA
Muted text5.91:1AA
Accent7.32:1AAA
Destructive6.36:1AA
Dark mode
Text on background19.41:1AAA
Text on card18.94:1AAA
Primary button10.39:1AAA
Secondary button8.36:1AAA
Muted text7.69:1AAA
Accent8.36:1AAA
Destructive6.30:1AA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(1 0 180);
  --foreground: oklch(0.101 0.02 132.877);
  --muted: oklch(0.959 0.004 17.224);
  --muted-foreground: oklch(0.478 0.023 17.984);
  --popover: oklch(1 0 180);
  --popover-foreground: oklch(0.101 0.02 132.877);
  --card: oklch(0.992 0 161.565);
  --card-foreground: oklch(0 0 0);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.796 0.252 139.467);
  --primary-foreground: oklch(0.191 0.053 134.615);
  --secondary: oklch(0.885 0 180);
  --secondary-foreground: oklch(0.371 0 168.69);
  --accent: oklch(0.885 0 180);
  --accent-foreground: oklch(0.371 0 168.69);
  --destructive: oklch(0.472 0.157 33.714);
  --destructive-foreground: oklch(0.955 0.019 32.673);
  --ring: oklch(0.796 0.252 139.467);
  --chart-1: oklch(0.796 0.252 139.467);
  --chart-2: oklch(0.885 0 180);
  --chart-3: oklch(0.885 0 180);
  --chart-4: oklch(0.908 0 180);
  --chart-5: oklch(0.804 0.256 139.616);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.158 0.023 134.257);
  --foreground: oklch(1 0 180);
  --muted: oklch(0.162 0.008 135.089);
  --muted-foreground: oklch(0.714 0.028 135.026);
  --popover: oklch(0.158 0.023 134.257);
  --popover-foreground: oklch(1 0 180);
  --card: oklch(0.173 0.027 135.184);
  --card-foreground: oklch(1 0 180);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.796 0.252 139.467);
  --primary-foreground: oklch(0.191 0.053 134.615);
  --secondary: oklch(0.195 0.005 134.943);
  --secondary-foreground: oklch(0.755 0.013 134.913);
  --accent: oklch(0.195 0.005 134.943);
  --accent-foreground: oklch(0.755 0.013 134.913);
  --destructive: oklch(0.662 0.176 34.142);
  --destructive-foreground: oklch(0 0 0);
  --ring: oklch(0.796 0.252 139.467);
  --chart-1: oklch(0.796 0.252 139.467);
  --chart-2: oklch(0.195 0.005 134.943);
  --chart-3: oklch(0.195 0.005 134.943);
  --chart-4: oklch(0.23 0.006 134.958);
  --chart-5: oklch(0.804 0.256 139.616);
}