Bank for shadcn/ui

Bank is a shadcn/ui theme built around a blue primary color (#597fd9) with green accents (#7fd959). The light mode uses a neutral background (#f7f9fd). Dark mode keeps the blue primary (#597fd9) on a neutral background (#000000).

Color palette

TokenLightDark
Background
#f7f9fdghostwhite
#000000black
Foreground
#050a15black
#fcfcfdwhite
Card
#f7f9fdghostwhite
#000000black
Card foreground
#050a15black
#fcfcfdwhite
Popover
#f7f9fdghostwhite
#000000black
Popover foreground
#050a15black
#fcfcfdwhite
Primary
#597fd9cornflowerblue
#597fd9cornflowerblue
Primary foreground
#ffffffwhite
#ffffffwhite
Secondary
#d9597fpalevioletred
#d9597fpalevioletred
Secondary foreground
#000000black
#000000black
Muted
#ecd9dfgainsboro
#261318black
Muted foreground
#6c5159dimgray
#ae939brosybrown
Accent
#7fd959yellowgreen
#7fd959yellowgreen
Accent foreground
#000000black
#000000black
Destructive
#c43c12firebrick
#eb5628chocolate
Destructive foreground
#ffffffwhite
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#597fd9cornflowerblue
#597fd9cornflowerblue

Contrast

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

Light mode
Text on background18.72:1AAA
Text on card18.72:1AAA
Primary button3.83:1AA Large
Secondary button5.68:1AA
Muted text5.27:1AA
Accent12.00:1AAA
Destructive5.25:1AA
Dark mode
Text on background20.48:1AAA
Text on card20.48:1AAA
Primary button3.83:1AA Large
Secondary button5.68:1AA
Muted text6.28:1AA
Accent12.00:1AAA
Destructive3.56:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.981 0.006 267.382);
  --foreground: oklch(0.143 0.026 262.384);
  --muted: oklch(0.904 0.022 357.359);
  --muted-foreground: oklch(0.466 0.037 358.86);
  --popover: oklch(0.981 0.006 267.382);
  --popover-foreground: oklch(0.143 0.026 262.384);
  --card: oklch(0.981 0.006 267.382);
  --card-foreground: oklch(0.143 0.026 262.384);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.612 0.143 264.987);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.638 0.164 4.308);
  --secondary-foreground: oklch(0 0 0);
  --accent: oklch(0.803 0.186 137.434);
  --accent-foreground: oklch(0 0 0);
  --destructive: oklch(0.551 0.18 35.784);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.612 0.143 264.987);
  --chart-1: oklch(0.612 0.143 264.987);
  --chart-2: oklch(0.638 0.164 4.308);
  --chart-3: oklch(0.803 0.186 137.434);
  --chart-4: oklch(0.661 0.152 3.298);
  --chart-5: oklch(0.61 0.15 264.845);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0 0 0);
  --foreground: oklch(0.992 0.001 267.413);
  --muted: oklch(0.214 0.033 0.89);
  --muted-foreground: oklch(0.691 0.033 358.008);
  --popover: oklch(0 0 0);
  --popover-foreground: oklch(0.992 0.001 267.413);
  --card: oklch(0 0 0);
  --card-foreground: oklch(0.992 0.001 267.413);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.612 0.143 264.987);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.638 0.164 4.308);
  --secondary-foreground: oklch(0 0 0);
  --accent: oklch(0.803 0.186 137.434);
  --accent-foreground: oklch(0 0 0);
  --destructive: oklch(0.646 0.193 36.681);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.612 0.143 264.987);
  --chart-1: oklch(0.612 0.143 264.987);
  --chart-2: oklch(0.638 0.164 4.308);
  --chart-3: oklch(0.803 0.186 137.434);
  --chart-4: oklch(0.661 0.152 3.298);
  --chart-5: oklch(0.61 0.15 264.845);
}