Negative for shadcn/ui

Negative is a shadcn/ui theme built around a vivid red primary color (#fd1726) with vivid teal accents (#17fded). The light mode uses a neutral background (#fefbfb). Dark mode keeps the vivid red primary (#fd1726) on a neutral background (#040102).

Color palette

TokenLightDark
Background
#fefbfbsnow
#040102black
Foreground
#080202black
#ffffffwhite
Card
#fefbfbsnow
#040102black
Card foreground
#080202black
#ffffffwhite
Popover
#fefbfbsnow
#040102black
Popover foreground
#080202black
#ffffffwhite
Primary
#fd1726crimson
#fd1726crimson
Primary foreground
#ffffffwhite
#ffffffwhite
Secondary
#17fdedaqua
#17fdedaqua
Secondary foreground
#014742darkslategray
#014742darkslategray
Muted
#eaf0f0whitesmoke
#0f1515black
Muted foreground
#445a59darkslategray
#a5bbbadarkgray
Accent
#17fdedaqua
#17fdedaqua
Accent foreground
#014742darkslategray
#014742darkslategray
Destructive
#d21a14firebrick
#ed4540tomato
Destructive foreground
#ffffffwhite
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#fd1726crimson
#fd1726crimson

Contrast

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

Light mode
Text on background19.98:1AAA
Text on card19.98:1AAA
Primary button3.95:1AA Large
Secondary button8.21:1AAA
Muted text6.40:1AA
Accent8.21:1AAA
Destructive5.38:1AA
Dark mode
Text on background20.75:1AAA
Text on card20.75:1AAA
Primary button3.95:1AA Large
Secondary button8.21:1AAA
Muted text9.15:1AAA
Accent8.21:1AAA
Destructive3.78:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.99 0.004 12.503);
  --foreground: oklch(0.102 0.021 14.92);
  --muted: oklch(0.951 0.007 192.276);
  --muted-foreground: oklch(0.449 0.027 191.158);
  --popover: oklch(0.99 0.004 12.503);
  --popover-foreground: oklch(0.102 0.021 14.92);
  --card: oklch(0.99 0.004 12.503);
  --card-foreground: oklch(0.102 0.021 14.92);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.63 0.249 26.631);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.895 0.154 186.944);
  --secondary-foreground: oklch(0.357 0.062 187.299);
  --accent: oklch(0.895 0.154 186.944);
  --accent-foreground: oklch(0.357 0.062 187.299);
  --destructive: oklch(0.551 0.214 28.975);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.63 0.249 26.631);
  --chart-1: oklch(0.63 0.249 26.631);
  --chart-2: oklch(0.895 0.154 186.944);
  --chart-3: oklch(0.895 0.154 186.944);
  --chart-4: oklch(0.897 0.152 187.377);
  --chart-5: oklch(0.635 0.253 26.964);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.085 0.011 13.857);
  --foreground: oklch(1 0 180);
  --muted: oklch(0.189 0.01 191.334);
  --muted-foreground: oklch(0.775 0.024 191.77);
  --popover: oklch(0.085 0.011 13.857);
  --popover-foreground: oklch(1 0 180);
  --card: oklch(0.085 0.011 13.857);
  --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.63 0.249 26.631);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.895 0.154 186.944);
  --secondary-foreground: oklch(0.357 0.062 187.299);
  --accent: oklch(0.895 0.154 186.944);
  --accent-foreground: oklch(0.357 0.062 187.299);
  --destructive: oklch(0.635 0.205 26.834);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.63 0.249 26.631);
  --chart-1: oklch(0.63 0.249 26.631);
  --chart-2: oklch(0.895 0.154 186.944);
  --chart-3: oklch(0.895 0.154 186.944);
  --chart-4: oklch(0.897 0.152 187.377);
  --chart-5: oklch(0.635 0.253 26.964);
}