Pricey for shadcn/ui

Pricey is a shadcn/ui theme built around a yellow primary color (#827a40) with blue accents (#404882). The light mode uses a neutral background (#ffffff). Dark mode keeps the yellow primary (#827a40) on a neutral background (#000000).

Color palette

TokenLightDark
Background
#ffffffwhite
#000000black
Foreground
#0c0b03black
#fbfaf9snow
Card
#fcfcfcsnow
#030303black
Card foreground
#080702black
#fdfdfcwhite
Popover
#ffffffwhite
#000000black
Popover foreground
#0c0b03black
#fbfaf9snow
Primary
#827a40olivedrab
#827a40olivedrab
Primary foreground
#ffffffwhite
#ffffffwhite
Secondary
#404882darkslateblue
#404882darkslateblue
Secondary foreground
#f8f9fcghostwhite
#f8f9fcghostwhite
Muted
#dbdce6gainsboro
#191b24black
Muted foreground
#56575ddimgray
#a2a3a9darkgray
Accent
#404882darkslateblue
#404882darkslateblue
Accent foreground
#f8f9fcghostwhite
#f8f9fcghostwhite
Destructive
#c8330efirebrick
#f15832tomato
Destructive foreground
#ffffffwhite
#000000black
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#827a40olivedrab
#827a40olivedrab

Contrast

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

Light mode
Text on background19.72:1AAA
Text on card19.72:1AAA
Primary button4.36:1AA Large
Secondary button8.11:1AAA
Muted text5.29:1AA
Accent8.11:1AAA
Destructive5.32:1AA
Dark mode
Text on background20.14:1AAA
Text on card20.31:1AAA
Primary button4.36:1AA Large
Secondary button8.11:1AAA
Muted text6.83:1AA
Accent8.11:1AAA
Destructive6.17:1AA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(1 0 180);
  --foreground: oklch(0.148 0.019 103.314);
  --muted: oklch(0.898 0.013 280.109);
  --muted-foreground: oklch(0.456 0.01 279.972);
  --popover: oklch(1 0 180);
  --popover-foreground: oklch(0.148 0.019 103.314);
  --card: oklch(0.992 0 161.565);
  --card-foreground: oklch(0.129 0.017 103.709);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.574 0.079 101.835);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.423 0.097 275.796);
  --secondary-foreground: oklch(0.981 0.004 280.265);
  --accent: oklch(0.423 0.097 275.796);
  --accent-foreground: oklch(0.981 0.004 280.265);
  --destructive: oklch(0.55 0.191 33.858);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.574 0.079 101.835);
  --chart-1: oklch(0.574 0.079 101.835);
  --chart-2: oklch(0.423 0.097 275.796);
  --chart-3: oklch(0.423 0.097 275.796);
  --chart-4: oklch(0.446 0.103 275.738);
  --chart-5: oklch(0.581 0.085 101.852);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0 0 0);
  --foreground: oklch(0.986 0.002 100.356);
  --muted: oklch(0.223 0.018 278.947);
  --muted-foreground: oklch(0.717 0.009 280.13);
  --popover: oklch(0 0 0);
  --popover-foreground: oklch(0.986 0.002 100.356);
  --card: oklch(0.092 0 180);
  --card-foreground: oklch(0.993 0.001 100.343);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.574 0.079 101.835);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.423 0.097 275.796);
  --secondary-foreground: oklch(0.981 0.004 280.265);
  --accent: oklch(0.423 0.097 275.796);
  --accent-foreground: oklch(0.981 0.004 280.265);
  --destructive: oklch(0.659 0.195 35.006);
  --destructive-foreground: oklch(0 0 0);
  --ring: oklch(0.574 0.079 101.835);
  --chart-1: oklch(0.574 0.079 101.835);
  --chart-2: oklch(0.423 0.097 275.796);
  --chart-3: oklch(0.423 0.097 275.796);
  --chart-4: oklch(0.446 0.103 275.738);
  --chart-5: oklch(0.581 0.085 101.852);
}