Debris for shadcn/ui

Debris is a shadcn/ui theme built around a vivid indigo primary color (#9d8ef0) with vivid green accents (#e2f08e). The light mode uses a neutral background (#f8f8fc). Dark mode keeps the vivid indigo primary (#9d8ef0) on an indigo-tinted background (#05040b).

Color palette

TokenLightDark
Background
#f8f8fcghostwhite
#05040bblack
Foreground
#010104black
#f9f8fbghostwhite
Card
#f5f4fbwhitesmoke
#07060fblack
Card foreground
#000000black
#fcfcfdwhite
Popover
#f8f8fcghostwhite
#05040bblack
Popover foreground
#010104black
#f9f8fbghostwhite
Primary
#9d8ef0mediumpurple
#9d8ef0mediumpurple
Primary foreground
#120944midnightblue
#120944midnightblue
Secondary
#e2f08ekhaki
#e2f08ekhaki
Secondary foreground
#3b4409darkolivegreen
#3b4409darkolivegreen
Muted
#f3f4f1whitesmoke
#0e0e0bblack
Muted foreground
#555846darkolivegreen
#b6b9a7darkgray
Accent
#e2f08ekhaki
#e2f08ekhaki
Accent foreground
#3b4409darkolivegreen
#3b4409darkolivegreen
Destructive
#b61411firebrick
#e01815crimson
Destructive foreground
#fffafasnow
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#9d8ef0mediumpurple
#9d8ef0mediumpurple

Contrast

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

Light mode
Text on background19.64:1AAA
Text on card19.19:1AAA
Primary button6.59:1AA
Secondary button8.48:1AAA
Muted text6.61:1AA
Accent8.48:1AAA
Destructive6.56:1AA
Dark mode
Text on background19.26:1AAA
Text on card19.68:1AAA
Primary button6.59:1AA
Secondary button8.48:1AAA
Muted text9.64:1AAA
Accent8.48:1AAA
Destructive4.86:1AA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.98 0.006 293.189);
  --foreground: oklch(0.076 0.018 291.359);
  --muted: oklch(0.965 0.004 113.378);
  --muted-foreground: oklch(0.452 0.028 114.438);
  --popover: oklch(0.98 0.006 293.189);
  --popover-foreground: oklch(0.076 0.018 291.359);
  --card: oklch(0.97 0.009 293.128);
  --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.701 0.141 289.105);
  --primary-foreground: oklch(0.205 0.103 279.12);
  --secondary: oklch(0.924 0.123 115.852);
  --secondary-foreground: oklch(0.365 0.079 118.176);
  --accent: oklch(0.924 0.123 115.852);
  --accent-foreground: oklch(0.365 0.079 118.176);
  --destructive: oklch(0.495 0.193 28.597);
  --destructive-foreground: oklch(0.989 0.004 18.43);
  --ring: oklch(0.701 0.141 289.105);
  --chart-1: oklch(0.701 0.141 289.105);
  --chart-2: oklch(0.924 0.123 115.852);
  --chart-3: oklch(0.924 0.123 115.852);
  --chart-4: oklch(0.932 0.11 115.531);
  --chart-5: oklch(0.697 0.147 288.891);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.116 0.019 292);
  --foreground: oklch(0.982 0.004 293.231);
  --muted: oklch(0.163 0.006 113.967);
  --muted-foreground: oklch(0.778 0.024 113.887);
  --popover: oklch(0.116 0.019 292);
  --popover-foreground: oklch(0.982 0.004 293.231);
  --card: oklch(0.128 0.021 291.381);
  --card-foreground: oklch(0.991 0.002 293.269);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.701 0.141 289.105);
  --primary-foreground: oklch(0.205 0.103 279.12);
  --secondary: oklch(0.924 0.123 115.852);
  --secondary-foreground: oklch(0.365 0.079 118.176);
  --accent: oklch(0.924 0.123 115.852);
  --accent-foreground: oklch(0.365 0.079 118.176);
  --destructive: oklch(0.576 0.227 28.715);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.701 0.141 289.105);
  --chart-1: oklch(0.701 0.141 289.105);
  --chart-2: oklch(0.924 0.123 115.852);
  --chart-3: oklch(0.924 0.123 115.852);
  --chart-4: oklch(0.932 0.11 115.531);
  --chart-5: oklch(0.697 0.147 288.891);
}