Apt for shadcn/ui

Apt is a shadcn/ui theme built around a muted teal primary color (#416258) with muted pink accents (#62414c). The light mode uses a neutral background (#fbfefd). Dark mode keeps the muted teal primary (#416258) on a teal-tinted background (#040c09).

Color palette

TokenLightDark
Background
#fbfefdwhite
#040c09black
Foreground
#06140fblack
#ffffffwhite
Card
#f7fdfbmintcream
#05100cblack
Card foreground
#05100cblack
#ffffffwhite
Popover
#f7fdfbmintcream
#05100cblack
Popover foreground
#05100cblack
#ffffffwhite
Primary
#416258darkslategray
#416258darkslategray
Primary foreground
#ffffffwhite
#ffffffwhite
Secondary
#62414cdimgray
#62414cdimgray
Secondary foreground
#efe7e9linen
#efe7e9linen
Muted
#f7eef1whitesmoke
#11080bblack
Muted foreground
#6e535cdimgray
#ac9199rosybrown
Accent
#62414cdimgray
#62414cdimgray
Accent foreground
#efe7e9linen
#efe7e9linen
Destructive
#621a04maroon
#e63d0aorangered
Destructive foreground
#fbb39dlightpink
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#416258darkslategray
#416258darkslategray

Contrast

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

Light mode
Text on background18.54:1AAA
Text on card18.73:1AAA
Primary button6.75:1AA
Secondary button7.24:1AAA
Muted text6.02:1AA
Accent7.24:1AAA
Destructive7.21:1AAA
Dark mode
Text on background19.82:1AAA
Text on card19.39:1AAA
Primary button6.75:1AA
Secondary button7.24:1AAA
Muted text6.82:1AA
Accent7.24:1AAA
Destructive4.16:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.994 0.003 175.529);
  --foreground: oklch(0.175 0.023 171.819);
  --muted: oklch(0.956 0.01 355.925);
  --muted-foreground: oklch(0.474 0.038 357.837);
  --popover: oklch(0.988 0.006 175.441);
  --popover-foreground: oklch(0.159 0.02 173.182);
  --card: oklch(0.988 0.006 175.441);
  --card-foreground: oklch(0.159 0.02 173.182);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.467 0.042 172.651);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.417 0.048 358.755);
  --secondary-foreground: oklch(0.934 0.009 355.907);
  --accent: oklch(0.417 0.048 358.755);
  --accent-foreground: oklch(0.934 0.009 355.907);
  --destructive: oklch(0.334 0.108 36.342);
  --destructive-foreground: oklch(0.829 0.09 37.628);
  --ring: oklch(0.467 0.042 172.651);
  --chart-1: oklch(0.467 0.042 172.651);
  --chart-2: oklch(0.417 0.048 358.755);
  --chart-3: oklch(0.417 0.048 358.755);
  --chart-4: oklch(0.443 0.051 358.797);
  --chart-5: oklch(0.472 0.047 172.214);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.142 0.016 175.438);
  --foreground: oklch(1 0 180);
  --muted: oklch(0.15 0.017 358.281);
  --muted-foreground: oklch(0.682 0.035 357.033);
  --popover: oklch(0.158 0.019 173.301);
  --popover-foreground: oklch(1 0 180);
  --card: oklch(0.158 0.019 173.301);
  --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.467 0.042 172.651);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.417 0.048 358.755);
  --secondary-foreground: oklch(0.934 0.009 355.907);
  --accent: oklch(0.417 0.048 358.755);
  --accent-foreground: oklch(0.934 0.009 355.907);
  --destructive: oklch(0.611 0.212 34.692);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.467 0.042 172.651);
  --chart-1: oklch(0.467 0.042 172.651);
  --chart-2: oklch(0.417 0.048 358.755);
  --chart-3: oklch(0.417 0.048 358.755);
  --chart-4: oklch(0.443 0.051 358.797);
  --chart-5: oklch(0.472 0.047 172.214);
}