Cheap for shadcn/ui

Cheap is a shadcn/ui theme built around a violet primary color (#c39ed6) with teal accents (#9ed6c3). The light mode uses a neutral background (#fdfcfd). Dark mode keeps the violet primary (#c39ed6) on a violet-tinted background (#0b070e).

Color palette

TokenLightDark
Background
#fdfcfdwhite
#0b070eblack
Foreground
#060109black
#ffffffwhite
Card
#faf8fcghostwhite
#0e0811black
Card foreground
#030105black
#ffffffwhite
Popover
#fdfcfdwhite
#0b070eblack
Popover foreground
#060109black
#ffffffwhite
Primary
#c39ed6plum
#c39ed6plum
Primary foreground
#25142fblack
#25142fblack
Secondary
#d6c39etan
#d6c39etan
Secondary foreground
#2f2514black
#2f2514black
Muted
#e3dccegainsboro
#31291cdarkslategray
Muted foreground
#70695cdimgray
#a39c8frosybrown
Accent
#9ed6c3lightsteelblue
#9ed6c3lightsteelblue
Accent foreground
#142f25darkslategray
#142f25darkslategray
Destructive
#912d08saddlebrown
#e3460dorangered
Destructive foreground
#fcdbcfbisque
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#c39ed6plum
#c39ed6plum

Contrast

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

Light mode
Text on background20.12:1AAA
Text on card19.70:1AAA
Primary button7.51:1AAA
Secondary button8.69:1AAA
Muted text3.98:1AA Large
Accent8.81:1AAA
Destructive6.28:1AA
Dark mode
Text on background20.00:1AAA
Text on card19.75:1AAA
Primary button7.51:1AAA
Secondary button8.69:1AAA
Muted text5.24:1AA
Accent8.81:1AAA
Destructive4.09:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.991 0.003 314.204);
  --foreground: oklch(0.099 0.033 317.047);
  --muted: oklch(0.897 0.02 83.062);
  --muted-foreground: oklch(0.524 0.022 83.023);
  --popover: oklch(0.991 0.003 314.204);
  --popover-foreground: oklch(0.099 0.033 317.047);
  --card: oklch(0.982 0.006 314.188);
  --card-foreground: oklch(0.078 0.026 317.047);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.751 0.089 313.563);
  --primary-foreground: oklch(0.228 0.056 312.711);
  --secondary: oklch(0.823 0.054 82.902);
  --secondary-foreground: oklch(0.271 0.033 82.091);
  --accent: oklch(0.833 0.064 171.074);
  --accent-foreground: oklch(0.279 0.038 168.51);
  --destructive: oklch(0.444 0.141 37.372);
  --destructive-foreground: oklch(0.916 0.041 41.031);
  --ring: oklch(0.751 0.089 313.563);
  --chart-1: oklch(0.751 0.089 313.563);
  --chart-2: oklch(0.823 0.054 82.902);
  --chart-3: oklch(0.833 0.064 171.074);
  --chart-4: oklch(0.843 0.048 82.958);
  --chart-5: oklch(0.749 0.095 313.511);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.137 0.018 314.265);
  --foreground: oklch(1 0 180);
  --muted: oklch(0.287 0.026 82.64);
  --muted-foreground: oklch(0.695 0.021 83.054);
  --popover: oklch(0.137 0.018 314.265);
  --popover-foreground: oklch(1 0 180);
  --card: oklch(0.149 0.021 313.573);
  --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.751 0.089 313.563);
  --primary-foreground: oklch(0.228 0.056 312.711);
  --secondary: oklch(0.823 0.054 82.902);
  --secondary-foreground: oklch(0.271 0.033 82.091);
  --accent: oklch(0.833 0.064 171.074);
  --accent-foreground: oklch(0.279 0.038 168.51);
  --destructive: oklch(0.614 0.201 36.703);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.751 0.089 313.563);
  --chart-1: oklch(0.751 0.089 313.563);
  --chart-2: oklch(0.823 0.054 82.902);
  --chart-3: oklch(0.833 0.064 171.074);
  --chart-4: oklch(0.843 0.048 82.958);
  --chart-5: oklch(0.749 0.095 313.511);
}