Negative for shadcn/ui

Negative is a shadcn/ui theme built around a vivid orange primary color (#8e510b) with vivid yellow accents (#8a8e0b). The light mode uses a neutral background (#ffffff). Dark mode keeps the vivid orange primary (#8e510b) on a neutral background (#000000).

Color palette

TokenLightDark
Background
#ffffffwhite
#000000black
Foreground
#140d06black
#fdfcfcsnow
Card
#ffffffwhite
#000000black
Card foreground
#140d06black
#fdfcfcsnow
Popover
#ffffffwhite
#000000black
Popover foreground
#140d06black
#fdfcfcsnow
Primary
#8e510bsaddlebrown
#8e510bsaddlebrown
Primary foreground
#ffffffwhite
#ffffffwhite
Secondary
#8e0f0bdarkred
#8e0f0bdarkred
Secondary foreground
#fbd1d0pink
#fbd1d0pink
Muted
#ede8e8linen
#171212black
Muted foreground
#4f4f4fdarkslategray
#b0b0b0darkgray
Accent
#8a8e0bolive
#8a8e0bolive
Accent foreground
#ffffffwhite
#ffffffwhite
Destructive
#db3000orangered
#ff4b19orangered
Destructive foreground
#ffffffwhite
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#8e510bsaddlebrown
#8e510bsaddlebrown

Contrast

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

Light mode
Text on background19.26:1AAA
Text on card19.26:1AAA
Primary button6.29:1AA
Secondary button6.78:1AA
Muted text6.75:1AA
Accent3.51:1AA Large
Destructive4.73:1AA
Dark mode
Text on background20.50:1AAA
Text on card20.50:1AAA
Primary button6.29:1AA
Secondary button6.78:1AA
Muted text8.56:1AAA
Accent3.51:1AA Large
Destructive3.34:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(1 0 180);
  --foreground: oklch(0.166 0.019 72.08);
  --muted: oklch(0.935 0.006 19.695);
  --muted-foreground: oklch(0.428 0 180);
  --popover: oklch(1 0 180);
  --popover-foreground: oklch(0.166 0.019 72.08);
  --card: oklch(1 0 180);
  --card-foreground: oklch(0.166 0.019 72.08);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.496 0.111 61.144);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.414 0.16 28.902);
  --secondary-foreground: oklch(0.897 0.048 20.411);
  --accent: oklch(0.623 0.135 111.935);
  --accent-foreground: oklch(1 0 180);
  --destructive: oklch(0.58 0.212 33.422);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.496 0.111 61.144);
  --chart-1: oklch(0.496 0.111 61.144);
  --chart-2: oklch(0.414 0.16 28.902);
  --chart-3: oklch(0.623 0.135 111.935);
  --chart-4: oklch(0.443 0.172 28.961);
  --chart-5: oklch(0.5 0.113 60.48);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0 0 0);
  --foreground: oklch(0.993 0.001 71.44);
  --muted: oklch(0.188 0.009 20.339);
  --muted-foreground: oklch(0.757 0 180);
  --popover: oklch(0 0 0);
  --popover-foreground: oklch(0.993 0.001 71.44);
  --card: oklch(0 0 0);
  --card-foreground: oklch(0.993 0.001 71.44);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.496 0.111 61.144);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.414 0.16 28.902);
  --secondary-foreground: oklch(0.897 0.048 20.411);
  --accent: oklch(0.623 0.135 111.935);
  --accent-foreground: oklch(1 0 180);
  --destructive: oklch(0.667 0.223 34.853);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.496 0.111 61.144);
  --chart-1: oklch(0.496 0.111 61.144);
  --chart-2: oklch(0.414 0.16 28.902);
  --chart-3: oklch(0.623 0.135 111.935);
  --chart-4: oklch(0.443 0.172 28.961);
  --chart-5: oklch(0.5 0.113 60.48);
}