Bank for shadcn/ui

Bank is a shadcn/ui theme built around a teal primary color (#2d8b87) with muted light red accents (#d9d3d3). The light mode uses a neutral background (#f8fcfc). Dark mode keeps the teal primary (#2d8b87) on a neutral background (#000000).

Color palette

TokenLightDark
Background
#f8fcfcmintcream
#000000black
Foreground
#000000black
#ffffffwhite
Card
#f8fcfcmintcream
#000000black
Card foreground
#000000black
#ffffffwhite
Popover
#f8fcfcmintcream
#000000black
Popover foreground
#000000black
#ffffffwhite
Primary
#2d8b87darkcyan
#2d8b87darkcyan
Primary foreground
#ffffffwhite
#ffffffwhite
Secondary
#e6e6e6gainsboro
#2a2c2cdarkslategray
Secondary foreground
#4d4d4ddarkslategray
#c3c6c5silver
Muted
#e9e2e2gainsboro
#161d1dblack
Muted foreground
#534b4bdarkslategray
#acb4b4darkgray
Accent
#d9d3d3lightgrey
#363f3fdarkslategray
Accent foreground
#423838darkslategray
#d0d7d7lightgrey
Destructive
#db500achocolate
#f56924chocolate
Destructive foreground
#ffffffwhite
#000000black
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#2d8b87darkcyan
#2d8b87darkcyan

Contrast

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

Light mode
Text on background20.31:1AAA
Text on card20.31:1AAA
Primary button4.08:1AA Large
Secondary button6.74:1AA
Muted text6.63:1AA
Accent7.66:1AAA
Destructive4.06:1AA Large
Dark mode
Text on background21.00:1AAA
Text on card21.00:1AAA
Primary button4.08:1AA Large
Secondary button8.13:1AAA
Muted text8.09:1AAA
Accent7.38:1AAA
Destructive6.93:1AA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.988 0.004 194.706);
  --foreground: oklch(0 0 0);
  --muted: oklch(0.918 0.008 17.298);
  --muted-foreground: oklch(0.421 0.011 17.581);
  --popover: oklch(0.988 0.004 194.706);
  --popover-foreground: oklch(0 0 0);
  --card: oklch(0.988 0.004 194.706);
  --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.581 0.086 191.864);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.923 0 153.435);
  --secondary-foreground: oklch(0.418 0 173.29);
  --accent: oklch(0.872 0.007 17.295);
  --accent-foreground: oklch(0.352 0.014 17.828);
  --destructive: oklch(0.613 0.187 40.48);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.581 0.086 191.864);
  --chart-1: oklch(0.581 0.086 191.864);
  --chart-2: oklch(0.923 0 153.435);
  --chart-3: oklch(0.872 0.007 17.295);
  --chart-4: oklch(0.947 0 180);
  --chart-5: oklch(0.588 0.089 191.761);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0 0 0);
  --foreground: oklch(1 0 180);
  --muted: oklch(0.224 0.011 193.926);
  --muted-foreground: oklch(0.763 0.009 194.574);
  --popover: oklch(0 0 0);
  --popover-foreground: oklch(1 0 180);
  --card: oklch(0 0 0);
  --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.581 0.086 191.864);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.292 0.002 194.632);
  --secondary-foreground: oklch(0.823 0.003 194.731);
  --accent: oklch(0.36 0.012 194.153);
  --accent-foreground: oklch(0.874 0.008 194.629);
  --destructive: oklch(0.686 0.187 43.006);
  --destructive-foreground: oklch(0 0 0);
  --ring: oklch(0.581 0.086 191.864);
  --chart-1: oklch(0.581 0.086 191.864);
  --chart-2: oklch(0.292 0.002 194.632);
  --chart-3: oklch(0.36 0.012 194.153);
  --chart-4: oklch(0.323 0.003 194.626);
  --chart-5: oklch(0.588 0.089 191.761);
}