Costume for shadcn/ui

Costume is a shadcn/ui theme built around a vivid green primary color (#6ffba5) with muted light green accents (#cbdcd2). The light mode uses a neutral background (#f8fcf9). Dark mode keeps the vivid green primary (#6ffba5) on a neutral background (#010402).

Color palette

TokenLightDark
Background
#f8fcf9mintcream
#010402black
Foreground
#051009black
#f8fcf9mintcream
Card
#f8fcf9mintcream
#010402black
Card foreground
#051009black
#f8fcf9mintcream
Popover
#f8fcf9mintcream
#010402black
Popover foreground
#051009black
#f8fcf9mintcream
Primary
#6ffba5lightgreen
#6ffba5lightgreen
Primary foreground
#013716darkgreen
#013716darkgreen
Secondary
#cbdcd2lightgrey
#2c352fdarkslategray
Secondary foreground
#304638darkslategray
#c4cfc8silver
Muted
#ebefedwhitesmoke
#101411black
Muted foreground
#444645darkslategray
#b9bbbasilver
Accent
#cbdcd2lightgrey
#2c352fdarkslategray
Accent foreground
#304638darkslategray
#c4cfc8silver
Destructive
#a20601darkred
#ef0901red
Destructive foreground
#ffd8d6mistyrose
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#6ffba5lightgreen
#6ffba5lightgreen

Contrast

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

Light mode
Text on background18.72:1AAA
Text on card18.72:1AAA
Primary button10.29:1AAA
Secondary button7.14:1AAA
Muted text8.21:1AAA
Accent7.14:1AAA
Destructive6.23:1AA
Dark mode
Text on background19.90:1AAA
Text on card19.90:1AAA
Primary button10.29:1AAA
Secondary button7.88:1AAA
Muted text9.62:1AAA
Accent7.88:1AAA
Destructive4.47:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.988 0.006 159.325);
  --foreground: oklch(0.157 0.022 157.869);
  --muted: oklch(0.949 0.006 159.334);
  --muted-foreground: oklch(0.391 0.002 159.337);
  --popover: oklch(0.988 0.006 159.325);
  --popover-foreground: oklch(0.157 0.022 157.869);
  --card: oklch(0.988 0.006 159.325);
  --card-foreground: oklch(0.157 0.022 157.869);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.89 0.172 153.794);
  --primary-foreground: oklch(0.294 0.078 150.557);
  --secondary: oklch(0.879 0.022 158.889);
  --secondary-foreground: oklch(0.37 0.037 157.024);
  --accent: oklch(0.879 0.022 158.889);
  --accent-foreground: oklch(0.37 0.037 157.024);
  --destructive: oklch(0.45 0.182 29.63);
  --destructive-foreground: oklch(0.914 0.044 20.322);
  --ring: oklch(0.89 0.172 153.794);
  --chart-1: oklch(0.89 0.172 153.794);
  --chart-2: oklch(0.879 0.022 158.889);
  --chart-3: oklch(0.879 0.022 158.889);
  --chart-4: oklch(0.9 0.018 159.008);
  --chart-5: oklch(0.894 0.177 153.624);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.097 0.012 159.325);
  --foreground: oklch(0.987 0.005 159.359);
  --muted: oklch(0.186 0.009 158.4);
  --muted-foreground: oklch(0.79 0.002 159.414);
  --popover: oklch(0.097 0.012 159.325);
  --popover-foreground: oklch(0.987 0.005 159.359);
  --card: oklch(0.097 0.012 159.325);
  --card-foreground: oklch(0.987 0.005 159.359);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.89 0.172 153.794);
  --primary-foreground: oklch(0.294 0.078 150.557);
  --secondary: oklch(0.319 0.017 158.235);
  --secondary-foreground: oklch(0.844 0.015 159.075);
  --accent: oklch(0.319 0.017 158.235);
  --accent-foreground: oklch(0.844 0.015 159.075);
  --destructive: oklch(0.599 0.243 29.48);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.89 0.172 153.794);
  --chart-1: oklch(0.89 0.172 153.794);
  --chart-2: oklch(0.319 0.017 158.235);
  --chart-3: oklch(0.319 0.017 158.235);
  --chart-4: oklch(0.35 0.019 158.196);
  --chart-5: oklch(0.894 0.177 153.624);
}