Price for shadcn/ui

Price is a shadcn/ui theme built around a vivid light violet primary color (#bf99f4) with near-white accents (#ebeaeb). The light mode uses a neutral background (#f9f6fd). Dark mode keeps the vivid light violet primary (#bf99f4) on a neutral background (#050308).

Color palette

TokenLightDark
Background
#f9f6fdghostwhite
#050308black
Foreground
#0b0415black
#ffffffwhite
Card
#f6f2fdghostwhite
#07040bblack
Card foreground
#090311black
#ffffffwhite
Popover
#f9f6fdghostwhite
#050308black
Popover foreground
#0b0415black
#ffffffwhite
Primary
#bf99f4plum
#bf99f4plum
Primary foreground
#280953midnightblue
#280953midnightblue
Secondary
#ebeaeblavender
#1e1e1fblack
Secondary foreground
#515053darkslategray
#b7b6b9silver
Muted
#dcd3e9gainsboro
#1f162cblack
Muted foreground
#4f4e50darkslategray
#b0afb1darkgray
Accent
#ebeaeblavender
#1e1e1fblack
Accent foreground
#515053darkslategray
#b7b6b9silver
Destructive
#8b0d04darkred
#fa3729orangered
Destructive foreground
#fdc7c3pink
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#bf99f4plum
#bf99f4plum

Contrast

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

Light mode
Text on background18.89:1AAA
Text on card18.46:1AAA
Primary button7.27:1AAA
Secondary button6.67:1AA
Muted text5.71:1AA
Accent6.67:1AA
Destructive6.54:1AA
Dark mode
Text on background20.57:1AAA
Text on card20.37:1AAA
Primary button7.27:1AAA
Secondary button8.24:1AAA
Muted text7.94:1AAA
Accent8.24:1AAA
Destructive3.73:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.979 0.01 304.909);
  --foreground: oklch(0.134 0.04 302.703);
  --muted: oklch(0.88 0.032 304.54);
  --muted-foreground: oklch(0.426 0.003 304.957);
  --popover: oklch(0.979 0.01 304.909);
  --popover-foreground: oklch(0.134 0.04 302.703);
  --card: oklch(0.968 0.015 304.838);
  --card-foreground: oklch(0.124 0.035 304.519);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.753 0.133 302.508);
  --primary-foreground: oklch(0.248 0.121 294.432);
  --secondary: oklch(0.938 0.001 305.028);
  --secondary-foreground: oklch(0.434 0.006 304.867);
  --accent: oklch(0.938 0.001 305.028);
  --accent-foreground: oklch(0.434 0.006 304.867);
  --destructive: oklch(0.406 0.159 29.996);
  --destructive-foreground: oklch(0.877 0.062 23.145);
  --ring: oklch(0.753 0.133 302.508);
  --chart-1: oklch(0.753 0.133 302.508);
  --chart-2: oklch(0.938 0.001 305.028);
  --chart-3: oklch(0.938 0.001 305.028);
  --chart-4: oklch(0.961 0.001 305.035);
  --chart-5: oklch(0.751 0.138 302.397);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.103 0.019 306.056);
  --foreground: oklch(1 0 180);
  --muted: oklch(0.223 0.044 302.144);
  --muted-foreground: oklch(0.756 0.002 305.002);
  --popover: oklch(0.103 0.019 306.056);
  --popover-foreground: oklch(1 0 180);
  --card: oklch(0.118 0.022 305.908);
  --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.753 0.133 302.508);
  --primary-foreground: oklch(0.248 0.121 294.432);
  --secondary: oklch(0.236 0.002 304.903);
  --secondary-foreground: oklch(0.779 0.004 304.97);
  --accent: oklch(0.236 0.002 304.903);
  --accent-foreground: oklch(0.779 0.004 304.97);
  --destructive: oklch(0.641 0.231 29.291);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.753 0.133 302.508);
  --chart-1: oklch(0.753 0.133 302.508);
  --chart-2: oklch(0.236 0.002 304.903);
  --chart-3: oklch(0.236 0.002 304.903);
  --chart-4: oklch(0.268 0.003 304.893);
  --chart-5: oklch(0.751 0.138 302.397);
}