Apprehensive for shadcn/ui

Apprehensive is a shadcn/ui theme built around a teal primary color (#8ae0d3) with yellow accents (#e0d38a). The light mode uses a neutral background (#ffffff). Dark mode keeps the teal primary (#8ae0d3) on a teal-tinted background (#030c0b).

Color palette

TokenLightDark
Background
#ffffffwhite
#030c0bblack
Foreground
#03120fblack
#f9fbfbghostwhite
Card
#fcfcfcsnow
#04100eblack
Card foreground
#020d0cblack
#fcfdfdwhite
Popover
#fcfcfcsnow
#04100eblack
Popover foreground
#020d0cblack
#fcfdfdwhite
Primary
#8ae0d3skyblue
#8ae0d3skyblue
Primary foreground
#0c2c27black
#0c2c27black
Secondary
#d38ae0plum
#d38ae0plum
Secondary foreground
#270c2cblack
#270c2cblack
Muted
#dbd6dbgainsboro
#282429darkslategray
Muted foreground
#6c5d6fdimgray
#9f90a2darkgray
Accent
#e0d38akhaki
#e0d38akhaki
Accent foreground
#2c270cblack
#2c270cblack
Destructive
#b21a06firebrick
#f83116orangered
Destructive foreground
#feedeblinen
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#8ae0d3skyblue
#8ae0d3skyblue

Contrast

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

Light mode
Text on background19.13:1AAA
Text on card19.28:1AAA
Primary button9.73:1AAA
Secondary button7.22:1AAA
Muted text4.26:1AA Large
Accent9.88:1AAA
Destructive6.09:1AA
Dark mode
Text on background19.03:1AAA
Text on card18.94:1AAA
Primary button9.73:1AAA
Secondary button7.22:1AAA
Muted text5.09:1AA
Accent9.88:1AAA
Destructive3.86:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(1 0 180);
  --foreground: oklch(0.165 0.024 183.753);
  --muted: oklch(0.881 0.009 321.087);
  --muted-foreground: oklch(0.499 0.035 321.211);
  --popover: oklch(0.992 0 161.565);
  --popover-foreground: oklch(0.147 0.02 185.052);
  --card: oklch(0.992 0 161.565);
  --card-foreground: oklch(0.147 0.02 185.052);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.848 0.086 183.69);
  --primary-foreground: oklch(0.269 0.039 181.749);
  --secondary: oklch(0.738 0.143 321.406);
  --secondary-foreground: oklch(0.215 0.069 321.403);
  --accent: oklch(0.861 0.094 99.447);
  --accent-foreground: oklch(0.273 0.044 99.381);
  --destructive: oklch(0.49 0.187 30.86);
  --destructive-foreground: oklch(0.96 0.019 26.579);
  --ring: oklch(0.848 0.086 183.69);
  --chart-1: oklch(0.848 0.086 183.69);
  --chart-2: oklch(0.738 0.143 321.406);
  --chart-3: oklch(0.861 0.094 99.447);
  --chart-4: oklch(0.764 0.128 321.376);
  --chart-5: oklch(0.853 0.089 183.552);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.144 0.017 185.457);
  --foreground: oklch(0.987 0.003 186.522);
  --muted: oklch(0.266 0.012 321.16);
  --muted-foreground: oklch(0.672 0.032 321.167);
  --popover: oklch(0.161 0.02 184.179);
  --popover-foreground: oklch(0.993 0.001 186.559);
  --card: oklch(0.161 0.02 184.179);
  --card-foreground: oklch(0.993 0.001 186.559);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.848 0.086 183.69);
  --primary-foreground: oklch(0.269 0.039 181.749);
  --secondary: oklch(0.738 0.143 321.406);
  --secondary-foreground: oklch(0.215 0.069 321.403);
  --accent: oklch(0.861 0.094 99.447);
  --accent-foreground: oklch(0.273 0.044 99.381);
  --destructive: oklch(0.633 0.235 30.977);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.848 0.086 183.69);
  --chart-1: oklch(0.848 0.086 183.69);
  --chart-2: oklch(0.738 0.143 321.406);
  --chart-3: oklch(0.861 0.094 99.447);
  --chart-4: oklch(0.764 0.128 321.376);
  --chart-5: oklch(0.853 0.089 183.552);
}