Cheap for shadcn/ui

Cheap is a shadcn/ui theme built around a neutral gray primary color (#343b3c) with neutral gray accents (#34373c). The light mode uses a neutral background (#ffffff). Dark mode keeps the neutral gray primary (#343b3c) on a cyan-tinted background (#050a0a).

Color palette

TokenLightDark
Background
#ffffffwhite
#050a0ablack
Foreground
#020c0dblack
#fcfdfdwhite
Card
#ffffffwhite
#050a0ablack
Card foreground
#020c0dblack
#fcfdfdwhite
Popover
#ffffffwhite
#050a0ablack
Popover foreground
#020c0dblack
#fcfdfdwhite
Primary
#343b3cdarkslategray
#343b3cdarkslategray
Primary foreground
#ced4d4lightgrey
#ced4d4lightgrey
Secondary
#343c39darkslategray
#343c39darkslategray
Secondary foreground
#ced4d2lightgrey
#ced4d2lightgrey
Muted
#dae2dfgainsboro
#1d2522black
Muted foreground
#606261dimgray
#9d9f9edarkgray
Accent
#34373cdarkslategray
#34373cdarkslategray
Accent foreground
#ced1d4lightgrey
#ced1d4lightgrey
Destructive
#a21d11firebrick
#e83221crimson
Destructive foreground
#fdeae8linen
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#343b3cdarkslategray
#343b3cdarkslategray

Contrast

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

Light mode
Text on background19.79:1AAA
Text on card19.79:1AAA
Primary button7.58:1AAA
Secondary button7.54:1AAA
Muted text4.65:1AA
Accent7.74:1AAA
Destructive6.68:1AA
Dark mode
Text on background19.56:1AAA
Text on card19.56:1AAA
Primary button7.58:1AAA
Secondary button7.54:1AAA
Muted text5.87:1AA
Accent7.74:1AAA
Destructive4.28:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(1 0 180);
  --foreground: oklch(0.144 0.018 201.376);
  --muted: oklch(0.905 0.01 169.367);
  --muted-foreground: oklch(0.494 0.003 169.513);
  --popover: oklch(1 0 180);
  --popover-foreground: oklch(0.144 0.018 201.376);
  --card: oklch(1 0 180);
  --card-foreground: oklch(0.144 0.018 201.376);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.347 0.01 203.346);
  --primary-foreground: oklch(0.865 0.006 203.513);
  --secondary: oklch(0.348 0.012 168.664);
  --secondary-foreground: oklch(0.865 0.008 169.411);
  --accent: oklch(0.337 0.009 256.743);
  --accent-foreground: oklch(0.858 0.006 256.68);
  --destructive: oklch(0.461 0.169 29.996);
  --destructive-foreground: oklch(0.951 0.021 23.805);
  --ring: oklch(0.347 0.01 203.346);
  --chart-1: oklch(0.347 0.01 203.346);
  --chart-2: oklch(0.348 0.012 168.664);
  --chart-3: oklch(0.337 0.009 256.743);
  --chart-4: oklch(0.378 0.013 168.639);
  --chart-5: oklch(0.35 0.014 203.272);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.138 0.009 202.01);
  --foreground: oklch(0.993 0.001 203.572);
  --muted: oklch(0.256 0.013 168.156);
  --muted-foreground: oklch(0.701 0.003 169.569);
  --popover: oklch(0.138 0.009 202.01);
  --popover-foreground: oklch(0.993 0.001 203.572);
  --card: oklch(0.138 0.009 202.01);
  --card-foreground: oklch(0.993 0.001 203.572);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.347 0.01 203.346);
  --primary-foreground: oklch(0.865 0.006 203.513);
  --secondary: oklch(0.348 0.012 168.664);
  --secondary-foreground: oklch(0.865 0.008 169.411);
  --accent: oklch(0.337 0.009 256.743);
  --accent-foreground: oklch(0.858 0.006 256.68);
  --destructive: oklch(0.606 0.219 29.918);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.347 0.01 203.346);
  --chart-1: oklch(0.347 0.01 203.346);
  --chart-2: oklch(0.348 0.012 168.664);
  --chart-3: oklch(0.337 0.009 256.743);
  --chart-4: oklch(0.378 0.013 168.639);
  --chart-5: oklch(0.35 0.014 203.272);
}