Vase for shadcn/ui

Vase is a shadcn/ui theme built around a neutral gray primary color (#413940) with neutral gray accents (#39413a). The light mode uses a neutral background (#fefbfe). Dark mode keeps the neutral gray primary (#413940) on a neutral background (#030203).

Color palette

TokenLightDark
Background
#fefbfewhite
#030203black
Foreground
#050104black
#fdfcfdwhite
Card
#fefbfewhite
#030203black
Card foreground
#050104black
#fdfcfdwhite
Popover
#fefbfewhite
#030203black
Popover foreground
#050104black
#fdfcfdwhite
Primary
#413940darkslategray
#413940darkslategray
Primary foreground
#d9d3d8lightgrey
#d9d3d8lightgrey
Secondary
#39413adarkslategray
#39413adarkslategray
Secondary foreground
#d3d9d4lightgrey
#d3d9d4lightgrey
Muted
#d9e3dagainsboro
#1c261eblack
Muted foreground
#4c5d4fdarkslategray
#a2b3a6darkgray
Accent
#39413adarkslategray
#39413adarkslategray
Accent foreground
#d3d9d4lightgrey
#d3d9d4lightgrey
Destructive
#bf1903firebrick
#fb2509orangered
Destructive foreground
#ffffffwhite
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#413940darkslategray
#413940darkslategray

Contrast

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

Light mode
Text on background20.15:1AAA
Text on card20.15:1AAA
Primary button7.56:1AAA
Secondary button7.31:1AAA
Muted text5.34:1AA
Accent7.31:1AAA
Destructive6.26:1AA
Dark mode
Text on background20.25:1AAA
Text on card20.25:1AAA
Primary button7.56:1AAA
Secondary button7.31:1AAA
Muted text7.05:1AAA
Accent7.31:1AAA
Destructive3.90:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.991 0.005 331.482);
  --foreground: oklch(0.083 0.028 332.821);
  --muted: oklch(0.906 0.016 151.148);
  --muted-foreground: oklch(0.458 0.03 150.415);
  --popover: oklch(0.991 0.005 331.482);
  --popover-foreground: oklch(0.083 0.028 332.821);
  --card: oklch(0.991 0.005 331.482);
  --card-foreground: oklch(0.083 0.028 332.821);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.356 0.017 332.056);
  --primary-foreground: oklch(0.874 0.009 331.551);
  --secondary: oklch(0.367 0.016 150.749);
  --secondary-foreground: oklch(0.88 0.009 151.263);
  --accent: oklch(0.367 0.016 150.749);
  --accent-foreground: oklch(0.88 0.009 151.263);
  --destructive: oklch(0.514 0.199 30.8);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.356 0.017 332.056);
  --chart-1: oklch(0.356 0.017 332.056);
  --chart-2: oklch(0.367 0.016 150.749);
  --chart-3: oklch(0.367 0.016 150.749);
  --chart-4: oklch(0.397 0.018 150.735);
  --chart-5: oklch(0.354 0.024 332.33);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.088 0.012 332.043);
  --foreground: oklch(0.992 0.001 331.42);
  --muted: oklch(0.257 0.022 150.106);
  --muted-foreground: oklch(0.751 0.027 150.881);
  --popover: oklch(0.088 0.012 332.043);
  --popover-foreground: oklch(0.992 0.001 331.42);
  --card: oklch(0.088 0.012 332.043);
  --card-foreground: oklch(0.992 0.001 331.42);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.356 0.017 332.056);
  --primary-foreground: oklch(0.874 0.009 331.551);
  --secondary: oklch(0.367 0.016 150.749);
  --secondary-foreground: oklch(0.88 0.009 151.263);
  --accent: oklch(0.367 0.016 150.749);
  --accent-foreground: oklch(0.88 0.009 151.263);
  --destructive: oklch(0.632 0.244 30.682);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.356 0.017 332.056);
  --chart-1: oklch(0.356 0.017 332.056);
  --chart-2: oklch(0.367 0.016 150.749);
  --chart-3: oklch(0.367 0.016 150.749);
  --chart-4: oklch(0.397 0.018 150.735);
  --chart-5: oklch(0.354 0.024 332.33);
}