Nervous for shadcn/ui

Nervous is a shadcn/ui theme built around a muted deep teal primary color (#25312e) with muted light teal accents (#cddfda). The light mode uses a neutral background (#ffffff). Dark mode keeps the muted deep teal primary (#25312e) on a neutral background (#010403).

Color palette

TokenLightDark
Background
#ffffffwhite
#010403black
Foreground
#010403black
#f9fbfamintcream
Card
#fcfcfcsnow
#020806black
Card foreground
#000000black
#fcfdfdwhite
Popover
#fcfcfcsnow
#020806black
Popover foreground
#000000black
#fcfdfdwhite
Primary
#25312edarkslategray
#25312edarkslategray
Primary foreground
#bccdc8silver
#bccdc8silver
Secondary
#e8edeclavender
#141a18black
Secondary foreground
#1a2320black
#a4bcb5darkgray
Muted
#eff6f4whitesmoke
#09100eblack
Muted foreground
#435650darkslategray
#a9bcb6darkgray
Accent
#cddfdalightgrey
#233932darkslategray
Accent foreground
#304b43darkslategray
#b9d4ccsilver
Destructive
#e00906red
#fa3633crimson
Destructive foreground
#ffffffwhite
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#25312edarkslategray
#25312edarkslategray

Contrast

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

Light mode
Text on background20.58:1AAA
Text on card20.54:1AAA
Primary button8.11:1AAA
Secondary button13.63:1AAA
Muted text7.12:1AAA
Accent6.86:1AA
Destructive4.99:1AA
Dark mode
Text on background19.80:1AAA
Text on card19.80:1AAA
Primary button8.11:1AAA
Secondary button8.74:1AAA
Muted text9.64:1AAA
Accent7.84:1AAA
Destructive3.72:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(1 0 180);
  --foreground: oklch(0.1 0.013 176.86);
  --muted: oklch(0.967 0.008 176.405);
  --muted-foreground: oklch(0.436 0.026 174.761);
  --popover: oklch(0.992 0 161.565);
  --popover-foreground: oklch(0 0 0);
  --card: oklch(0.992 0 161.565);
  --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.302 0.018 174.83);
  --primary-foreground: oklch(0.833 0.019 175.977);
  --secondary: oklch(0.943 0.007 176.457);
  --secondary-foreground: oklch(0.246 0.013 174.997);
  --accent: oklch(0.889 0.021 175.972);
  --accent-foreground: oklch(0.387 0.036 173.591);
  --destructive: oklch(0.571 0.231 29.193);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.302 0.018 174.83);
  --chart-1: oklch(0.302 0.018 174.83);
  --chart-2: oklch(0.943 0.007 176.457);
  --chart-3: oklch(0.889 0.021 175.972);
  --chart-4: oklch(0.964 0.004 176.536);
  --chart-5: oklch(0.305 0.021 174.445);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.099 0.012 176.842);
  --foreground: oklch(0.986 0.003 176.573);
  --muted: oklch(0.166 0.012 174.34);
  --muted-foreground: oklch(0.78 0.023 175.758);
  --popover: oklch(0.124 0.015 176.842);
  --popover-foreground: oklch(0.993 0.001 176.616);
  --card: oklch(0.124 0.015 176.842);
  --card-foreground: oklch(0.993 0.001 176.616);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.302 0.018 174.83);
  --primary-foreground: oklch(0.833 0.019 175.977);
  --secondary: oklch(0.212 0.011 175.046);
  --secondary-foreground: oklch(0.775 0.028 175.573);
  --accent: oklch(0.323 0.03 173.509);
  --accent-foreground: oklch(0.849 0.031 175.559);
  --destructive: oklch(0.642 0.23 27.333);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.302 0.018 174.83);
  --chart-1: oklch(0.302 0.018 174.83);
  --chart-2: oklch(0.212 0.011 175.046);
  --chart-3: oklch(0.323 0.03 173.509);
  --chart-4: oklch(0.247 0.014 174.88);
  --chart-5: oklch(0.305 0.021 174.445);
}