Pricey for shadcn/ui

Pricey is a shadcn/ui theme built around a neutral gray primary color (#7c7e7c) with neutral gray accents (#7e7c7e). The light mode uses a neutral background (#f7fdf7). Dark mode keeps the neutral gray primary (#7c7e7c) on a green-tinted background (#070e06).

Color palette

TokenLightDark
Background
#f7fdf7mintcream
#070e06black
Foreground
#030802black
#fcfdfcwhite
Card
#f7fdf7mintcream
#070e06black
Card foreground
#030802black
#fcfdfcwhite
Popover
#f7fdf7mintcream
#070e06black
Popover foreground
#030802black
#fcfdfcwhite
Primary
#7c7e7cgray
#7c7e7cgray
Primary foreground
#ffffffwhite
#ffffffwhite
Secondary
#7e7c7egray
#7e7c7egray
Secondary foreground
#ffffffwhite
#ffffffwhite
Muted
#e3dde4gainsboro
#221b22black
Muted foreground
#605661dimgray
#a89ea9darkgray
Accent
#7e7c7egray
#7e7c7egray
Accent foreground
#ffffffwhite
#ffffffwhite
Destructive
#6f1f0bmaroon
#ea502achocolate
Destructive foreground
#f8c2b5lightpink
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#7c7e7cgray
#7c7e7cgray

Contrast

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

Light mode
Text on background19.60:1AAA
Text on card19.60:1AAA
Primary button4.08:1AA Large
Secondary button4.15:1AA Large
Muted text5.23:1AA
Accent4.15:1AA Large
Destructive7.10:1AAA
Dark mode
Text on background19.14:1AAA
Text on card19.14:1AAA
Primary button4.08:1AA Large
Secondary button4.15:1AA Large
Muted text6.52:1AA
Accent4.15:1AA Large
Destructive3.70:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.988 0.011 142.584);
  --foreground: oklch(0.122 0.021 141.061);
  --muted: oklch(0.904 0.012 322.681);
  --muted-foreground: oklch(0.468 0.021 322.808);
  --popover: oklch(0.988 0.011 142.584);
  --popover-foreground: oklch(0.122 0.021 141.061);
  --card: oklch(0.988 0.011 142.584);
  --card-foreground: oklch(0.122 0.021 141.061);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.591 0.005 142.595);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.588 0.005 322.658);
  --secondary-foreground: oklch(1 0 180);
  --accent: oklch(0.588 0.005 322.658);
  --accent-foreground: oklch(1 0 180);
  --destructive: oklch(0.367 0.117 34.662);
  --destructive-foreground: oklch(0.859 0.065 34.414);
  --ring: oklch(0.591 0.005 142.595);
  --chart-1: oklch(0.591 0.005 142.595);
  --chart-2: oklch(0.588 0.005 322.658);
  --chart-3: oklch(0.588 0.005 322.658);
  --chart-4: oklch(0.614 0.004 322.656);
  --chart-5: oklch(0.596 0.018 142.502);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.154 0.021 141.573);
  --foreground: oklch(0.993 0.001 142.623);
  --muted: oklch(0.233 0.017 322.911);
  --muted-foreground: oklch(0.71 0.019 322.736);
  --popover: oklch(0.154 0.021 141.573);
  --popover-foreground: oklch(0.993 0.001 142.623);
  --card: oklch(0.154 0.021 141.573);
  --card-foreground: oklch(0.993 0.001 142.623);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.591 0.005 142.595);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.588 0.005 322.658);
  --secondary-foreground: oklch(1 0 180);
  --accent: oklch(0.588 0.005 322.658);
  --accent-foreground: oklch(1 0 180);
  --destructive: oklch(0.638 0.197 34.85);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.591 0.005 142.595);
  --chart-1: oklch(0.591 0.005 142.595);
  --chart-2: oklch(0.588 0.005 322.658);
  --chart-3: oklch(0.588 0.005 322.658);
  --chart-4: oklch(0.614 0.004 322.656);
  --chart-5: oklch(0.596 0.018 142.502);
}