Pricey for shadcn/ui

Pricey is a shadcn/ui theme built around a deep green primary color (#117426) with deep purple accents (#74115e). The light mode uses a neutral background (#ffffff). Dark mode keeps the deep green primary (#117426) on a green-tinted background (#050f07).

Color palette

TokenLightDark
Background
#ffffffwhite
#050f07black
Foreground
#010402black
#ffffffwhite
Card
#fcfcfcsnow
#071309black
Card foreground
#000000black
#ffffffwhite
Popover
#fcfcfcsnow
#071309black
Popover foreground
#000000black
#ffffffwhite
Primary
#117426forestgreen
#117426forestgreen
Primary foreground
#ffffffwhite
#ffffffwhite
Secondary
#74115epurple
#74115epurple
Secondary foreground
#f6c1eapink
#f6c1eapink
Muted
#edd9e9gainsboro
#261222black
Muted foreground
#696368dimgray
#9c969bdarkgray
Accent
#74115epurple
#74115epurple
Accent foreground
#f6c1eapink
#f6c1eapink
Destructive
#7d2f0dsaddlebrown
#e25418chocolate
Destructive foreground
#f9d3c3peachpuff
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#117426forestgreen
#117426forestgreen

Contrast

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

Light mode
Text on background20.59:1AAA
Text on card20.54:1AAA
Primary button5.91:1AA
Secondary button6.92:1AA
Muted text4.37:1AA Large
Accent6.92:1AA
Destructive6.66:1AA
Dark mode
Text on background19.46:1AAA
Text on card19.00:1AAA
Primary button5.91:1AA
Secondary button6.92:1AA
Muted text6.07:1AA
Accent6.92:1AA
Destructive3.79:1AA Large

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.099 0.02 151.602);
  --muted: oklch(0.906 0.03 333.115);
  --muted-foreground: oklch(0.507 0.011 332.94);
  --popover: oklch(0.992 0 161.565);
  --popover-foreground: oklch(0 0 0);
  --card: oklch(0.992 0 161.565);
  --card-foreground: oklch(0 0 0);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.489 0.143 145.791);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.387 0.154 339.1);
  --secondary-foreground: oklch(0.87 0.082 334.002);
  --accent: oklch(0.387 0.154 339.1);
  --accent-foreground: oklch(0.87 0.082 334.002);
  --destructive: oklch(0.411 0.117 40.622);
  --destructive-foreground: oklch(0.895 0.048 44.522);
  --ring: oklch(0.489 0.143 145.791);
  --chart-1: oklch(0.489 0.143 145.791);
  --chart-2: oklch(0.387 0.154 339.1);
  --chart-3: oklch(0.387 0.154 339.1);
  --chart-4: oklch(0.418 0.168 339.2);
  --chart-5: oklch(0.494 0.147 145.59);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.155 0.023 151.273);
  --foreground: oklch(1 0 180);
  --muted: oklch(0.218 0.042 335.35);
  --muted-foreground: oklch(0.68 0.01 332.842);
  --popover: oklch(0.171 0.027 150.46);
  --popover-foreground: oklch(1 0 180);
  --card: oklch(0.171 0.027 150.46);
  --card-foreground: oklch(1 0 180);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.489 0.143 145.791);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.387 0.154 339.1);
  --secondary-foreground: oklch(0.87 0.082 334.002);
  --accent: oklch(0.387 0.154 339.1);
  --accent-foreground: oklch(0.87 0.082 334.002);
  --destructive: oklch(0.63 0.188 39.766);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.489 0.143 145.791);
  --chart-1: oklch(0.489 0.143 145.791);
  --chart-2: oklch(0.387 0.154 339.1);
  --chart-3: oklch(0.387 0.154 339.1);
  --chart-4: oklch(0.418 0.168 339.2);
  --chart-5: oklch(0.494 0.147 145.59);
}