Nervous for shadcn/ui

Nervous is a shadcn/ui theme built around a light purple primary color (#f6e9f2) with light red accents (#f6e9ec). The light mode uses a neutral background (#fcf8fb). Dark mode keeps the light purple primary (#f6e9f2) on a neutral background (#070406).

Color palette

TokenLightDark
Background
#fcf8fbsnow
#070406black
Foreground
#140510black
#fbf8fasnow
Card
#fcf8fbsnow
#070406black
Card foreground
#140510black
#fbf8fasnow
Popover
#fcf8fbsnow
#070406black
Popover foreground
#140510black
#fbf8fasnow
Primary
#f6e9f2lavenderblush
#f6e9f2lavenderblush
Primary foreground
#7c3166rebeccapurple
#7c3166rebeccapurple
Secondary
#f4e9f6whitesmoke
#f4e9f6whitesmoke
Secondary foreground
#6d317crebeccapurple
#6d317crebeccapurple
Muted
#f1e7f4lavender
#160b18black
Muted foreground
#443946darkslategray
#c3b9c6silver
Accent
#f6e9eclinen
#f6e9eclinen
Accent foreground
#7c3140brown
#7c3140brown
Destructive
#681808maroon
#e73613orangered
Destructive foreground
#f8b7aalightpink
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#f6e9f2lavenderblush
#f6e9f2lavenderblush

Contrast

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

Light mode
Text on background18.83:1AAA
Text on card18.83:1AAA
Primary button7.18:1AAA
Secondary button7.49:1AAA
Muted text9.08:1AAA
Accent7.51:1AAA
Destructive7.16:1AAA
Dark mode
Text on background19.39:1AAA
Text on card19.39:1AAA
Primary button7.18:1AAA
Secondary button7.49:1AAA
Muted text10.09:1AAA
Accent7.51:1AAA
Destructive4.24:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.983 0.005 335.97);
  --foreground: oklch(0.149 0.035 339.102);
  --muted: oklch(0.939 0.02 319.45);
  --muted-foreground: oklch(0.362 0.026 319.462);
  --popover: oklch(0.983 0.005 335.97);
  --popover-foreground: oklch(0.149 0.035 339.102);
  --card: oklch(0.983 0.005 335.97);
  --card-foreground: oklch(0.149 0.035 339.102);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.947 0.019 336.235);
  --primary-foreground: oklch(0.437 0.122 340.812);
  --secondary: oklch(0.946 0.021 319.45);
  --secondary-foreground: oklch(0.427 0.133 319.202);
  --accent: oklch(0.946 0.015 3.601);
  --accent-foreground: oklch(0.423 0.104 10.353);
  --destructive: oklch(0.344 0.115 33.047);
  --destructive-foreground: oklch(0.836 0.078 31.523);
  --ring: oklch(0.947 0.019 336.235);
  --chart-1: oklch(0.947 0.019 336.235);
  --chart-2: oklch(0.946 0.021 319.45);
  --chart-3: oklch(0.946 0.015 3.601);
  --chart-4: oklch(0.973 0.01 319.447);
  --chart-5: oklch(0.947 0.02 336.261);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.111 0.011 336.143);
  --foreground: oklch(0.983 0.004 335.945);
  --muted: oklch(0.173 0.03 319.443);
  --muted-foreground: oklch(0.798 0.021 319.452);
  --popover: oklch(0.111 0.011 336.143);
  --popover-foreground: oklch(0.983 0.004 335.945);
  --card: oklch(0.111 0.011 336.143);
  --card-foreground: oklch(0.983 0.004 335.945);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.947 0.019 336.235);
  --primary-foreground: oklch(0.437 0.122 340.812);
  --secondary: oklch(0.946 0.021 319.45);
  --secondary-foreground: oklch(0.427 0.133 319.202);
  --accent: oklch(0.946 0.015 3.601);
  --accent-foreground: oklch(0.423 0.104 10.353);
  --destructive: oklch(0.607 0.217 32.582);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.947 0.019 336.235);
  --chart-1: oklch(0.947 0.019 336.235);
  --chart-2: oklch(0.946 0.021 319.45);
  --chart-3: oklch(0.946 0.015 3.601);
  --chart-4: oklch(0.973 0.01 319.447);
  --chart-5: oklch(0.947 0.02 336.261);
}