Anxious for shadcn/ui

Anxious is a shadcn/ui theme built around a light green primary color (#e6fae7) with light teal accents (#e6faf1). The light mode uses a neutral background (#f8fcf8). Dark mode keeps the light green primary (#e6fae7) on a neutral background (#020302).

Color palette

TokenLightDark
Background
#f8fcf8mintcream
#020302black
Foreground
#031104black
#fcfdfcwhite
Card
#f5faf5whitesmoke
#030704black
Card foreground
#020d03black
#ffffffwhite
Popover
#f5faf5whitesmoke
#030704black
Popover foreground
#020d03black
#ffffffwhite
Primary
#e6fae7honeydew
#e6fae7honeydew
Primary foreground
#0c3b0fdarkgreen
#0c3b0fdarkgreen
Secondary
#effae6honeydew
#effae6honeydew
Secondary foreground
#213b0cdarkgreen
#213b0cdarkgreen
Muted
#dde9d3gainsboro
#202c16black
Muted foreground
#627057dimgray
#9aa88fdarkseagreen
Accent
#e6faf1honeydew
#e6faf1honeydew
Accent foreground
#0c3b26darkgreen
#0c3b26darkgreen
Destructive
#641b07maroon
#f06038tomato
Destructive foreground
#f8b7a5lightpink
#000000black
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#e6fae7honeydew
#e6fae7honeydew

Contrast

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

Light mode
Text on background18.63:1AAA
Text on card18.70:1AAA
Primary button11.61:1AAA
Secondary button11.45:1AAA
Muted text4.19:1AA Large
Accent11.53:1AAA
Destructive7.23:1AAA
Dark mode
Text on background20.23:1AAA
Text on card20.28:1AAA
Primary button11.61:1AAA
Secondary button11.45:1AAA
Muted text5.81:1AA
Accent11.53:1AAA
Destructive6.42:1AA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.986 0.005 146.987);
  --foreground: oklch(0.159 0.037 145.022);
  --muted: oklch(0.919 0.033 130.778);
  --muted-foreground: oklch(0.527 0.043 131.242);
  --popover: oklch(0.98 0.008 146.96);
  --popover-foreground: oklch(0.142 0.032 145.205);
  --card: oklch(0.98 0.008 146.96);
  --card-foreground: oklch(0.142 0.032 145.205);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.964 0.033 146.719);
  --primary-foreground: oklch(0.31 0.087 143.8);
  --secondary: oklch(0.971 0.029 130.718);
  --secondary-foreground: oklch(0.32 0.078 133.853);
  --accent: oklch(0.967 0.024 167.112);
  --accent-foreground: oklch(0.315 0.062 159.62);
  --destructive: oklch(0.339 0.108 35.495);
  --destructive-foreground: oklch(0.835 0.08 36.042);
  --ring: oklch(0.964 0.033 146.719);
  --chart-1: oklch(0.964 0.033 146.719);
  --chart-2: oklch(0.971 0.029 130.718);
  --chart-3: oklch(0.967 0.024 167.112);
  --chart-4: oklch(0.985 0.014 130.574);
  --chart-5: oklch(0.965 0.034 146.705);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.095 0.011 146.215);
  --foreground: oklch(0.993 0.001 147.026);
  --muted: oklch(0.276 0.043 132.125);
  --muted-foreground: oklch(0.715 0.04 130.978);
  --popover: oklch(0.119 0.013 146.215);
  --popover-foreground: oklch(1 0 180);
  --card: oklch(0.119 0.013 146.215);
  --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.964 0.033 146.719);
  --primary-foreground: oklch(0.31 0.087 143.8);
  --secondary: oklch(0.971 0.029 130.718);
  --secondary-foreground: oklch(0.32 0.078 133.853);
  --accent: oklch(0.967 0.024 167.112);
  --accent-foreground: oklch(0.315 0.062 159.62);
  --destructive: oklch(0.668 0.186 36.121);
  --destructive-foreground: oklch(0 0 0);
  --ring: oklch(0.964 0.033 146.719);
  --chart-1: oklch(0.964 0.033 146.719);
  --chart-2: oklch(0.971 0.029 130.718);
  --chart-3: oklch(0.967 0.024 167.112);
  --chart-4: oklch(0.985 0.014 130.574);
  --chart-5: oklch(0.965 0.034 146.705);
}