Instrumentation for shadcn/ui

Instrumentation is a shadcn/ui theme built around a teal primary color (#22b472) with orange accents (#b47222). The light mode uses a neutral background (#ffffff). Dark mode keeps the teal primary (#22b472) on a neutral background (#030805).

Color palette

TokenLightDark
Background
#ffffffwhite
#030805black
Foreground
#030d08black
#fcfdfcwhite
Card
#fcfcfcsnow
#040b08black
Card foreground
#020805black
#ffffffwhite
Popover
#fcfcfcsnow
#040b08black
Popover foreground
#020805black
#ffffffwhite
Primary
#22b472mediumseagreen
#22b472mediumseagreen
Primary foreground
#020905black
#020905black
Secondary
#7222b4rebeccapurple
#7222b4rebeccapurple
Secondary foreground
#ffffffwhite
#ffffffwhite
Muted
#e7dbf0lavender
#1b0f24black
Muted foreground
#50435bdarkslategray
#b1a4bcdarkgray
Accent
#b47222darkgoldenrod
#b47222darkgoldenrod
Accent foreground
#ffffffwhite
#ffffffwhite
Destructive
#7d2303maroon
#fa4605orangered
Destructive foreground
#fdc8b4peachpuff
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#22b472mediumseagreen
#22b472mediumseagreen

Contrast

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

Light mode
Text on background19.71:1AAA
Text on card19.76:1AAA
Primary button7.50:1AAA
Secondary button8.04:1AAA
Muted text6.88:1AA
Accent3.89:1AA Large
Destructive6.66:1AA
Dark mode
Text on background19.82:1AAA
Text on card19.84:1AAA
Primary button7.50:1AAA
Secondary button8.04:1AAA
Muted text7.80:1AAA
Accent3.89:1AA Large
Destructive3.53:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(1 0 180);
  --foreground: oklch(0.144 0.021 167.472);
  --muted: oklch(0.907 0.03 310.131);
  --muted-foreground: oklch(0.406 0.042 309.467);
  --popover: oklch(0.992 0 161.565);
  --popover-foreground: oklch(0.125 0.018 168.069);
  --card: oklch(0.992 0 161.565);
  --card-foreground: oklch(0.125 0.018 168.069);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.681 0.152 157.454);
  --primary-foreground: oklch(0.125 0.019 168.079);
  --secondary: oklch(0.459 0.21 303.637);
  --secondary-foreground: oklch(1 0 180);
  --accent: oklch(0.61 0.122 66.151);
  --accent-foreground: oklch(1 0 180);
  --destructive: oklch(0.396 0.129 37.254);
  --destructive-foreground: oklch(0.874 0.067 40.912);
  --ring: oklch(0.681 0.152 157.454);
  --chart-1: oklch(0.681 0.152 157.454);
  --chart-2: oklch(0.459 0.21 303.637);
  --chart-3: oklch(0.61 0.122 66.151);
  --chart-4: oklch(0.482 0.222 303.556);
  --chart-5: oklch(0.689 0.157 157.046);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.123 0.014 168.013);
  --foreground: oklch(0.993 0.001 167.785);
  --muted: oklch(0.196 0.043 308.29);
  --muted-foreground: oklch(0.738 0.037 309.977);
  --popover: oklch(0.141 0.016 167.798);
  --popover-foreground: oklch(1 0 180);
  --card: oklch(0.141 0.016 167.798);
  --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.681 0.152 157.454);
  --primary-foreground: oklch(0.125 0.019 168.079);
  --secondary: oklch(0.459 0.21 303.637);
  --secondary-foreground: oklch(1 0 180);
  --accent: oklch(0.61 0.122 66.151);
  --accent-foreground: oklch(1 0 180);
  --destructive: oklch(0.653 0.223 35.683);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.681 0.152 157.454);
  --chart-1: oklch(0.681 0.152 157.454);
  --chart-2: oklch(0.459 0.21 303.637);
  --chart-3: oklch(0.61 0.122 66.151);
  --chart-4: oklch(0.482 0.222 303.556);
  --chart-5: oklch(0.689 0.157 157.046);
}