Costly for shadcn/ui

Costly is a shadcn/ui theme built around a green primary color (#8fd822) with pink accents (#d8228f). The light mode uses a neutral background (#fdfefb). Dark mode keeps the green primary (#8fd822) on a green-tinted background (#080c03).

Color palette

TokenLightDark
Background
#fdfefbwhite
#080c03black
Foreground
#030401black
#ffffffwhite
Card
#fafcf7snow
#0b1005black
Card foreground
#000000black
#ffffffwhite
Popover
#fafcf7snow
#0b1005black
Popover foreground
#000000black
#ffffffwhite
Primary
#8fd822yellowgreen
#8fd822yellowgreen
Primary foreground
#1a2806black
#1a2806black
Secondary
#228fd8dodgerblue
#228fd8dodgerblue
Secondary foreground
#ffffffwhite
#ffffffwhite
Muted
#dadcddgainsboro
#222425darkslategray
Muted foreground
#5d6265dimgray
#9a9fa2darkgray
Accent
#d8228fmediumvioletred
#d8228fmediumvioletred
Accent foreground
#ffffffwhite
#ffffffwhite
Destructive
#932210brown
#ea553etomato
Destructive foreground
#fbdfdamistyrose
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#8fd822yellowgreen
#8fd822yellowgreen

Contrast

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

Light mode
Text on background20.25:1AAA
Text on card20.39:1AAA
Primary button8.91:1AAA
Secondary button3.49:1AA Large
Muted text4.47:1AA Large
Accent4.61:1AA
Destructive6.74:1AA
Dark mode
Text on background19.73:1AAA
Text on card19.27:1AAA
Primary button8.91:1AAA
Secondary button3.49:1AA Large
Muted text5.82:1AA
Accent4.61:1AA
Destructive3.58:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.995 0.003 124.393);
  --foreground: oklch(0.102 0.017 123.564);
  --muted: oklch(0.892 0.003 236.484);
  --muted-foreground: oklch(0.492 0.008 236.661);
  --popover: oklch(0.989 0.007 124.443);
  --popover-foreground: oklch(0 0 0);
  --card: oklch(0.989 0.007 124.443);
  --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.804 0.209 130.475);
  --primary-foreground: oklch(0.255 0.057 128.474);
  --secondary: oklch(0.627 0.144 244.273);
  --secondary-foreground: oklch(1 0 180);
  --accent: oklch(0.592 0.229 350.634);
  --accent-foreground: oklch(1 0 180);
  --destructive: oklch(0.437 0.152 31.65);
  --destructive-foreground: oklch(0.925 0.032 28.146);
  --ring: oklch(0.804 0.209 130.475);
  --chart-1: oklch(0.804 0.209 130.475);
  --chart-2: oklch(0.627 0.144 244.273);
  --chart-3: oklch(0.592 0.229 350.634);
  --chart-4: oklch(0.649 0.142 243.436);
  --chart-5: oklch(0.814 0.214 130.719);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.146 0.022 123.909);
  --foreground: oklch(1 0 180);
  --muted: oklch(0.259 0.004 236.667);
  --muted-foreground: oklch(0.699 0.007 236.58);
  --popover: oklch(0.163 0.025 125.312);
  --popover-foreground: oklch(1 0 180);
  --card: oklch(0.163 0.025 125.312);
  --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.804 0.209 130.475);
  --primary-foreground: oklch(0.255 0.057 128.474);
  --secondary: oklch(0.627 0.144 244.273);
  --secondary-foreground: oklch(1 0 180);
  --accent: oklch(0.592 0.229 350.634);
  --accent-foreground: oklch(1 0 180);
  --destructive: oklch(0.645 0.188 31.339);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.804 0.209 130.475);
  --chart-1: oklch(0.804 0.209 130.475);
  --chart-2: oklch(0.627 0.144 244.273);
  --chart-3: oklch(0.592 0.229 350.634);
  --chart-4: oklch(0.649 0.142 243.436);
  --chart-5: oklch(0.814 0.214 130.719);
}