Terrible for shadcn/ui

Terrible is a shadcn/ui theme built around a vivid light indigo primary color (#efecfe) with vivid light green accents (#ecfeef). The light mode uses a neutral background (#ffffff). Dark mode keeps the vivid light indigo primary (#efecfe) on a neutral background (#020104).

Color palette

TokenLightDark
Background
#ffffffwhite
#020104black
Foreground
#060411black
#f9f9fbghostwhite
Card
#fcfcfcsnow
#030208black
Card foreground
#04030dblack
#fcfcfdwhite
Popover
#fcfcfcsnow
#030208black
Popover foreground
#04030dblack
#fcfcfdwhite
Primary
#efecfelavender
#efecfelavender
Primary foreground
#4e2eefblueviolet
#4e2eefblueviolet
Secondary
#feefecseashell
#feefecseashell
Secondary foreground
#ab270dfirebrick
#ab270dfirebrick
Muted
#f6f0efwhitesmoke
#100b09black
Muted foreground
#555453dimgray
#acaaaadarkgray
Accent
#ecfeefhoneydew
#ecfeefhoneydew
Accent foreground
#064c11darkgreen
#064c11darkgreen
Destructive
#b03111firebrick
#ea542echocolate
Destructive foreground
#fef7f6snow
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#efecfelavender
#efecfelavender

Contrast

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

Light mode
Text on background20.32:1AAA
Text on card20.06:1AAA
Primary button6.11:1AA
Secondary button6.19:1AA
Muted text6.69:1AA
Accent9.72:1AAA
Destructive6.00:1AA
Dark mode
Text on background19.80:1AAA
Text on card20.14:1AAA
Primary button6.11:1AA
Secondary button6.19:1AA
Muted text8.47:1AAA
Accent9.72:1AAA
Destructive3.61:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(1 0 180);
  --foreground: oklch(0.119 0.033 290.943);
  --muted: oklch(0.959 0.006 31.055);
  --muted-foreground: oklch(0.446 0.002 31.051);
  --popover: oklch(0.992 0 161.565);
  --popover-foreground: oklch(0.107 0.029 291.901);
  --card: oklch(0.992 0 161.565);
  --card-foreground: oklch(0.107 0.029 291.901);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.951 0.024 293.6);
  --primary-foreground: oklch(0.491 0.263 278.144);
  --secondary: oklch(0.963 0.016 31.081);
  --secondary-foreground: oklch(0.486 0.171 32.696);
  --accent: oklch(0.979 0.027 150.444);
  --accent-foreground: oklch(0.363 0.11 144.779);
  --destructive: oklch(0.506 0.169 34.315);
  --destructive-foreground: oklch(0.982 0.008 34.305);
  --ring: oklch(0.951 0.024 293.6);
  --chart-1: oklch(0.951 0.024 293.6);
  --chart-2: oklch(0.963 0.016 31.081);
  --chart-3: oklch(0.979 0.027 150.444);
  --chart-4: oklch(0.991 0.004 31.051);
  --chart-5: oklch(0.95 0.024 293.583);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.076 0.018 292.418);
  --foreground: oklch(0.983 0.002 294.035);
  --muted: oklch(0.154 0.01 31.402);
  --muted-foreground: oklch(0.74 0.002 31.048);
  --popover: oklch(0.096 0.022 292.418);
  --popover-foreground: oklch(0.992 0.001 294.051);
  --card: oklch(0.096 0.022 292.418);
  --card-foreground: oklch(0.992 0.001 294.051);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.951 0.024 293.6);
  --primary-foreground: oklch(0.491 0.263 278.144);
  --secondary: oklch(0.963 0.016 31.081);
  --secondary-foreground: oklch(0.486 0.171 32.696);
  --accent: oklch(0.979 0.027 150.444);
  --accent-foreground: oklch(0.363 0.11 144.779);
  --destructive: oklch(0.643 0.193 34.961);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.951 0.024 293.6);
  --chart-1: oklch(0.951 0.024 293.6);
  --chart-2: oklch(0.963 0.016 31.081);
  --chart-3: oklch(0.979 0.027 150.444);
  --chart-4: oklch(0.991 0.004 31.051);
  --chart-5: oklch(0.95 0.024 293.583);
}