Antler for shadcn/ui

Antler is a shadcn/ui theme built around a muted light teal primary color (#ccd6d3) with muted light teal accents (#d0dcd9). The light mode uses a neutral background (#ffffff). Dark mode keeps the muted light teal primary (#ccd6d3) on a neutral background (#040706).

Color palette

TokenLightDark
Background
#ffffffwhite
#040706black
Foreground
#020806black
#f9fbfamintcream
Card
#fcfcfcsnow
#050a09black
Card foreground
#010403black
#fcfdfdwhite
Popover
#fcfcfcsnow
#050a09black
Popover foreground
#010403black
#fcfdfdwhite
Primary
#ccd6d3lightgrey
#ccd6d3lightgrey
Primary foreground
#323e3bdarkslategray
#323e3bdarkslategray
Secondary
#e3e8e7gainsboro
#151e1cblack
Secondary foreground
#465350darkslategray
#a4c1b9silver
Muted
#f0f5f3whitesmoke
#0a0f0eblack
Muted foreground
#525655dimgray
#a9adacdarkgray
Accent
#d0dcd9lightgrey
#1d342edarkslategray
Accent foreground
#344641darkslategray
#b1d3calightsteelblue
Destructive
#df3907orangered
#f84f1borangered
Destructive foreground
#ffffffwhite
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#ccd6d3lightgrey
#ccd6d3lightgrey

Contrast

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

Light mode
Text on background20.19:1AAA
Text on card20.14:1AAA
Primary button7.49:1AAA
Secondary button6.48:1AA
Muted text6.75:1AA
Accent7.12:1AAA
Destructive4.45:1AA Large
Dark mode
Text on background19.50:1AAA
Text on card19.55:1AAA
Primary button7.49:1AAA
Secondary button8.81:1AAA
Muted text8.49:1AAA
Accent8.21:1AAA
Destructive3.43:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(1 0 180);
  --foreground: oklch(0.124 0.013 178.877);
  --muted: oklch(0.965 0.006 178.605);
  --muted-foreground: oklch(0.449 0.005 178.491);
  --popover: oklch(0.992 0 161.565);
  --popover-foreground: oklch(0.098 0.011 178.877);
  --card: oklch(0.992 0 161.565);
  --card-foreground: oklch(0.098 0.011 178.877);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.868 0.012 178.398);
  --primary-foreground: oklch(0.353 0.017 177.303);
  --secondary: oklch(0.927 0.005 178.622);
  --secondary-foreground: oklch(0.43 0.018 177.501);
  --accent: oklch(0.885 0.014 178.327);
  --accent-foreground: oklch(0.378 0.025 176.742);
  --destructive: oklch(0.594 0.208 34.528);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.868 0.012 178.398);
  --chart-1: oklch(0.868 0.012 178.398);
  --chart-2: oklch(0.927 0.005 178.622);
  --chart-3: oklch(0.885 0.014 178.327);
  --chart-4: oklch(0.949 0.004 178.674);
  --chart-5: oklch(0.87 0.015 178.293);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.121 0.008 178.842);
  --foreground: oklch(0.986 0.003 178.707);
  --muted: oklch(0.164 0.009 177.097);
  --muted-foreground: oklch(0.743 0.004 178.628);
  --popover: oklch(0.138 0.009 178.842);
  --popover-foreground: oklch(0.993 0.001 178.746);
  --card: oklch(0.138 0.009 178.842);
  --card-foreground: oklch(0.993 0.001 178.746);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.868 0.012 178.398);
  --primary-foreground: oklch(0.353 0.017 177.303);
  --secondary: oklch(0.226 0.015 176.733);
  --secondary-foreground: oklch(0.787 0.033 177.51);
  --accent: oklch(0.305 0.031 175.343);
  --accent-foreground: oklch(0.839 0.039 177.395);
  --destructive: oklch(0.659 0.213 35.863);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.868 0.012 178.398);
  --chart-1: oklch(0.868 0.012 178.398);
  --chart-2: oklch(0.226 0.015 176.733);
  --chart-3: oklch(0.305 0.031 175.343);
  --chart-4: oklch(0.262 0.019 176.555);
  --chart-5: oklch(0.87 0.015 178.293);
}