Carter for shadcn/ui

Carter is a shadcn/ui theme built around a vivid deep teal primary color (#085443) with vivid deep yellow accents (#544308). The light mode uses a neutral background (#f8fcfb). Dark mode keeps the vivid deep teal primary (#085443) on a teal-tinted background (#030c0a).

Color palette

TokenLightDark
Background
#f8fcfbmintcream
#030c0ablack
Foreground
#040b0ablack
#fcfdfdwhite
Card
#f5faf9mintcream
#04100eblack
Card foreground
#030807black
#ffffffwhite
Popover
#f5faf9mintcream
#04100eblack
Popover foreground
#030807black
#ffffffwhite
Primary
#085443darkslategray
#085443darkslategray
Primary foreground
#99f5e1paleturquoise
#99f5e1paleturquoise
Secondary
#430854indigo
#430854indigo
Secondary foreground
#e199f5plum
#e199f5plum
Muted
#e2dde3gainsboro
#201c22black
Muted foreground
#545454dimgray
#abababdarkgray
Accent
#544308darkolivegreen
#544308darkolivegreen
Accent foreground
#f5e199khaki
#f5e199khaki
Destructive
#6a230bmaroon
#ec7046tomato
Destructive foreground
#f7c2b1lightpink
#000000black
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#085443darkslategray
#085443darkslategray

Contrast

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

Light mode
Text on background19.16:1AAA
Text on card19.11:1AAA
Primary button7.03:1AAA
Secondary button7.18:1AAA
Muted text5.67:1AA
Accent7.37:1AAA
Destructive7.15:1AAA
Dark mode
Text on background19.40:1AAA
Text on card19.32:1AAA
Primary button7.03:1AAA
Secondary button7.18:1AAA
Muted text7.33:1AAA
Accent7.37:1AAA
Destructive6.94:1AA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.987 0.004 181.96);
  --foreground: oklch(0.142 0.015 181.615);
  --muted: oklch(0.904 0.01 318.887);
  --muted-foreground: oklch(0.446 0 180);
  --popover: oklch(0.981 0.006 181.905);
  --popover-foreground: oklch(0.124 0.013 181.995);
  --card: oklch(0.981 0.006 181.905);
  --card-foreground: oklch(0.124 0.013 181.995);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.398 0.073 173.025);
  --primary-foreground: oklch(0.907 0.093 178.755);
  --secondary: oklch(0.289 0.129 317.244);
  --secondary-foreground: oklch(0.785 0.147 318.764);
  --accent: oklch(0.39 0.075 91.912);
  --accent-foreground: oklch(0.91 0.093 94.491);
  --destructive: oklch(0.362 0.107 37.578);
  --destructive-foreground: oklch(0.857 0.065 39.237);
  --ring: oklch(0.398 0.073 173.025);
  --chart-1: oklch(0.398 0.073 173.025);
  --chart-2: oklch(0.289 0.129 317.244);
  --chart-3: oklch(0.39 0.075 91.912);
  --chart-4: oklch(0.32 0.144 317.099);
  --chart-5: oklch(0.402 0.075 172.738);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.144 0.017 181.279);
  --foreground: oklch(0.994 0.002 182.011);
  --muted: oklch(0.233 0.014 318.869);
  --muted-foreground: oklch(0.741 0 171.254);
  --popover: oklch(0.161 0.02 179.527);
  --popover-foreground: oklch(1 0 180);
  --card: oklch(0.161 0.02 179.527);
  --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.398 0.073 173.025);
  --primary-foreground: oklch(0.907 0.093 178.755);
  --secondary: oklch(0.289 0.129 317.244);
  --secondary-foreground: oklch(0.785 0.147 318.764);
  --accent: oklch(0.39 0.075 91.912);
  --accent-foreground: oklch(0.91 0.093 94.491);
  --destructive: oklch(0.684 0.164 38.745);
  --destructive-foreground: oklch(0 0 0);
  --ring: oklch(0.398 0.073 173.025);
  --chart-1: oklch(0.398 0.073 173.025);
  --chart-2: oklch(0.289 0.129 317.244);
  --chart-3: oklch(0.39 0.075 91.912);
  --chart-4: oklch(0.32 0.144 317.099);
  --chart-5: oklch(0.402 0.075 172.738);
}