Money for shadcn/ui

Money is a shadcn/ui theme built around a vivid deep blue primary color (#03197d) with vivid deep yellow accents (#7d6703). The light mode uses a neutral background (#ffffff). Dark mode keeps the vivid deep blue primary (#03197d) on a neutral background (#000000).

Color palette

TokenLightDark
Background
#ffffffwhite
#000000black
Foreground
#02040dblack
#f6f7f9whitesmoke
Card
#fcfcfcsnow
#030303black
Card foreground
#020309black
#f9f9fbghostwhite
Popover
#ffffffwhite
#000000black
Popover foreground
#02040dblack
#f6f7f9whitesmoke
Primary
#03197dnavy
#03197dnavy
Primary foreground
#b4c1fdlightsteelblue
#b4c1fdlightsteelblue
Secondary
#7d6703olive
#7d6703olive
Secondary foreground
#ffffffwhite
#ffffffwhite
Muted
#dedcd3gainsboro
#2c2a21darkslategray
Muted foreground
#65614edimgray
#b1ad9adarkgray
Accent
#7d6703olive
#7d6703olive
Accent foreground
#ffffffwhite
#ffffffwhite
Destructive
#811709maroon
#f1513btomato
Destructive foreground
#fbc8c1pink
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#03197dnavy
#03197dnavy

Contrast

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

Light mode
Text on background20.47:1AAA
Text on card20.15:1AAA
Primary button8.33:1AAA
Secondary button5.53:1AA
Muted text4.53:1AA
Accent5.53:1AA
Destructive6.87:1AA
Dark mode
Text on background19.59:1AAA
Text on card19.66:1AAA
Primary button8.33:1AAA
Secondary button5.53:1AA
Muted text6.40:1AA
Accent5.53:1AA
Destructive3.50:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(1 0 180);
  --foreground: oklch(0.112 0.024 267.113);
  --muted: oklch(0.894 0.012 96.331);
  --muted-foreground: oklch(0.49 0.029 96.807);
  --popover: oklch(1 0 180);
  --popover-foreground: oklch(0.112 0.024 267.113);
  --card: oklch(0.992 0 161.565);
  --card-foreground: oklch(0.098 0.021 266.896);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.294 0.166 264.553);
  --primary-foreground: oklch(0.823 0.086 274.561);
  --secondary: oklch(0.519 0.105 93.675);
  --secondary-foreground: oklch(1 0 180);
  --accent: oklch(0.519 0.105 93.675);
  --accent-foreground: oklch(1 0 180);
  --destructive: oklch(0.392 0.142 31.036);
  --destructive-foreground: oklch(0.875 0.059 27.038);
  --ring: oklch(0.294 0.166 264.553);
  --chart-1: oklch(0.294 0.166 264.553);
  --chart-2: oklch(0.519 0.105 93.675);
  --chart-3: oklch(0.519 0.105 93.675);
  --chart-4: oklch(0.563 0.114 93.481);
  --chart-5: oklch(0.294 0.17 264.151);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0 0 0);
  --foreground: oklch(0.975 0.003 276.127);
  --muted: oklch(0.283 0.016 96.767);
  --muted-foreground: oklch(0.746 0.027 96.584);
  --popover: oklch(0 0 0);
  --popover-foreground: oklch(0.975 0.003 276.127);
  --card: oklch(0.092 0 180);
  --card-foreground: oklch(0.983 0.002 276.14);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.294 0.166 264.553);
  --primary-foreground: oklch(0.823 0.086 274.561);
  --secondary: oklch(0.519 0.105 93.675);
  --secondary-foreground: oklch(1 0 180);
  --accent: oklch(0.519 0.105 93.675);
  --accent-foreground: oklch(1 0 180);
  --destructive: oklch(0.653 0.2 30.634);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.294 0.166 264.553);
  --chart-1: oklch(0.294 0.166 264.553);
  --chart-2: oklch(0.519 0.105 93.675);
  --chart-3: oklch(0.519 0.105 93.675);
  --chart-4: oklch(0.563 0.114 93.481);
  --chart-5: oklch(0.294 0.17 264.151);
}