Anxious for shadcn/ui

Anxious is a shadcn/ui theme built around a near-black primary color (#070e01) with near-black accents (#08010e). The light mode uses a neutral background (#ffffff). Dark mode keeps the near-black primary (#070e01) on a neutral background (#050703).

Color palette

TokenLightDark
Background
#ffffffwhite
#050703black
Foreground
#000000black
#fafbf8snow
Card
#fcfcfcsnow
#070a05black
Card foreground
#000000black
#fcfdfcwhite
Popover
#ffffffwhite
#050703black
Popover foreground
#000000black
#fafbf8snow
Primary
#070e01black
#070e01black
Primary foreground
#64ce0dlawngreen
#64ce0dlawngreen
Secondary
#08010eblack
#08010eblack
Secondary foreground
#d7aefaplum
#d7aefaplum
Muted
#f0ebf4whitesmoke
#100b14black
Muted foreground
#5a5062dimgray
#a79dafdarkgray
Accent
#08010eblack
#08010eblack
Accent foreground
#d7aefaplum
#d7aefaplum
Destructive
#ad2a05firebrick
#ed3907orangered
Destructive foreground
#ffffffwhite
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#070e01black
#070e01black

Contrast

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

Light mode
Text on background21.00:1AAA
Text on card20.54:1AAA
Primary button9.65:1AAA
Secondary button11.08:1AAA
Muted text6.49:1AA
Accent11.08:1AAA
Destructive6.75:1AA
Dark mode
Text on background19.48:1AAA
Text on card19.48:1AAA
Primary button9.65:1AAA
Secondary button11.08:1AAA
Muted text7.49:1AAA
Accent11.08:1AAA
Destructive4.03:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(1 0 180);
  --foreground: oklch(0 0 0);
  --muted: oklch(0.947 0.013 310.307);
  --muted-foreground: oklch(0.449 0.031 309.793);
  --popover: oklch(1 0 180);
  --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.152 0.036 129.1);
  --primary-foreground: oklch(0.758 0.224 136.405);
  --secondary: oklch(0.108 0.044 312.627);
  --secondary-foreground: oklch(0.813 0.114 309.118);
  --accent: oklch(0.108 0.044 312.627);
  --accent-foreground: oklch(0.813 0.114 309.118);
  --destructive: oklch(0.492 0.173 34.187);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.152 0.036 129.1);
  --chart-1: oklch(0.152 0.036 129.1);
  --chart-2: oklch(0.108 0.044 312.627);
  --chart-3: oklch(0.108 0.044 312.627);
  --chart-4: oklch(0.142 0.062 307.762);
  --chart-5: oklch(0.153 0.037 129.083);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.123 0.013 129.567);
  --foreground: oklch(0.987 0.004 130.48);
  --muted: oklch(0.16 0.021 309.225);
  --muted-foreground: oklch(0.709 0.028 310.074);
  --popover: oklch(0.123 0.013 129.567);
  --popover-foreground: oklch(0.987 0.004 130.48);
  --card: oklch(0.14 0.015 129.572);
  --card-foreground: oklch(0.994 0.002 130.459);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.152 0.036 129.1);
  --primary-foreground: oklch(0.758 0.224 136.405);
  --secondary: oklch(0.108 0.044 312.627);
  --secondary-foreground: oklch(0.813 0.114 309.118);
  --accent: oklch(0.108 0.044 312.627);
  --accent-foreground: oklch(0.813 0.114 309.118);
  --destructive: oklch(0.62 0.221 33.754);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.152 0.036 129.1);
  --chart-1: oklch(0.152 0.036 129.1);
  --chart-2: oklch(0.108 0.044 312.627);
  --chart-3: oklch(0.108 0.044 312.627);
  --chart-4: oklch(0.142 0.062 307.762);
  --chart-5: oklch(0.153 0.037 129.083);
}