Tracking for shadcn/ui

Tracking is a shadcn/ui theme built around a muted green primary color (#66a97b) with muted light green accents (#d5e2d9). The light mode uses a neutral background (#ffffff). Dark mode keeps the muted green primary (#66a97b) on a neutral background (#030704).

Color palette

TokenLightDark
Background
#ffffffwhite
#030704black
Foreground
#010904black
#fcfdfcwhite
Card
#fcfcfcsnow
#050b07black
Card foreground
#010502black
#ffffffwhite
Popover
#ffffffwhite
#030704black
Popover foreground
#010904black
#fcfdfcwhite
Primary
#66a97bcadetblue
#66a97bcadetblue
Primary foreground
#000000black
#000000black
Secondary
#d5e2d9gainsboro
#131614black
Secondary foreground
#364e3edarkslategray
#a6b5abdarkgray
Muted
#dce5dfgainsboro
#1a231dblack
Muted foreground
#445a4bdarkslategray
#a5bbacdarkgray
Accent
#d5e2d9gainsboro
#131614black
Accent foreground
#364e3edarkslategray
#a6b5abdarkgray
Destructive
#890501darkred
#fe3b34tomato
Destructive foreground
#ffbfbdlightpink
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#66a97bcadetblue
#66a97bcadetblue

Contrast

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

Light mode
Text on background20.15:1AAA
Text on card20.06:1AAA
Primary button7.49:1AAA
Secondary button6.76:1AA
Muted text5.80:1AA
Accent6.76:1AA
Destructive6.43:1AA
Dark mode
Text on background19.86:1AAA
Text on card19.90:1AAA
Primary button7.49:1AAA
Secondary button8.51:1AAA
Muted text7.90:1AAA
Accent8.51:1AAA
Destructive3.56:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(1 0 180);
  --foreground: oklch(0.125 0.025 156.011);
  --muted: oklch(0.913 0.013 156.279);
  --muted-foreground: oklch(0.445 0.037 154.817);
  --popover: oklch(1 0 180);
  --popover-foreground: oklch(0.125 0.025 156.011);
  --card: oklch(0.992 0 161.565);
  --card-foreground: oklch(0.1 0.02 156.011);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.676 0.097 153.269);
  --primary-foreground: oklch(0 0 0);
  --secondary: oklch(0.9 0.018 156.158);
  --secondary-foreground: oklch(0.4 0.04 154.382);
  --accent: oklch(0.9 0.018 156.158);
  --accent-foreground: oklch(0.4 0.04 154.382);
  --destructive: oklch(0.398 0.16 29.72);
  --destructive-foreground: oklch(0.862 0.073 20.953);
  --ring: oklch(0.676 0.097 153.269);
  --chart-1: oklch(0.676 0.097 153.269);
  --chart-2: oklch(0.9 0.018 156.158);
  --chart-3: oklch(0.9 0.018 156.158);
  --chart-4: oklch(0.921 0.014 156.254);
  --chart-5: oklch(0.683 0.106 152.923);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.121 0.013 156.271);
  --foreground: oklch(0.993 0.003 156.509);
  --muted: oklch(0.246 0.018 155.053);
  --muted-foreground: oklch(0.771 0.032 155.708);
  --popover: oklch(0.121 0.013 156.271);
  --popover-foreground: oklch(0.993 0.003 156.509);
  --card: oklch(0.138 0.015 156.251);
  --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.676 0.097 153.269);
  --primary-foreground: oklch(0 0 0);
  --secondary: oklch(0.196 0.008 155.78);
  --secondary-foreground: oklch(0.758 0.022 155.988);
  --accent: oklch(0.196 0.008 155.78);
  --accent-foreground: oklch(0.758 0.022 155.988);
  --destructive: oklch(0.653 0.231 27.835);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.676 0.097 153.269);
  --chart-1: oklch(0.676 0.097 153.269);
  --chart-2: oklch(0.196 0.008 155.78);
  --chart-3: oklch(0.196 0.008 155.78);
  --chart-4: oklch(0.231 0.01 155.682);
  --chart-5: oklch(0.683 0.106 152.923);
}