Trained for shadcn/ui

Trained is a shadcn/ui theme built around a vivid deep teal primary color (#006058) with muted light teal accents (#e6eaea). The light mode uses a neutral background (#f8fcfb). Dark mode keeps the vivid deep teal primary (#006058) on a neutral background (#010404).

Color palette

TokenLightDark
Background
#f8fcfbmintcream
#010404black
Foreground
#030d0cblack
#fcfdfdwhite
Card
#f5fafamintcream
#020807black
Card foreground
#020808black
#ffffffwhite
Popover
#f8fcfbmintcream
#010404black
Popover foreground
#030d0cblack
#fcfdfdwhite
Primary
#006058darkslategray
#006058darkslategray
Primary foreground
#94fef6paleturquoise
#94fef6paleturquoise
Secondary
#e6eaealavender
#1f1f1fblack
Secondary foreground
#475756darkslategray
#b8b8b8silver
Muted
#e3f2f1lavender
#1c0d0dblack
Muted foreground
#394746darkslategray
#c6b8b8silver
Accent
#e6eaealavender
#1f1f1fblack
Accent foreground
#475756darkslategray
#b8b8b8silver
Destructive
#6b0c00maroon
#ff3d24orangered
Destructive foreground
#ffa99elightsalmon
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#006058darkslategray
#006058darkslategray

Contrast

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

Light mode
Text on background19.01:1AAA
Text on card19.15:1AAA
Primary button6.27:1AA
Secondary button6.27:1AA
Muted text8.42:1AAA
Accent6.27:1AA
Destructive6.79:1AA
Dark mode
Text on background20.20:1AAA
Text on card20.19:1AAA
Primary button6.27:1AA
Secondary button8.34:1AAA
Muted text9.84:1AAA
Accent8.34:1AAA
Destructive3.52:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.988 0.004 191.161);
  --foreground: oklch(0.145 0.018 189.703);
  --muted: oklch(0.95 0.016 190.889);
  --muted-foreground: oklch(0.384 0.018 190.203);
  --popover: oklch(0.988 0.004 191.161);
  --popover-foreground: oklch(0.145 0.018 189.703);
  --card: oklch(0.981 0.006 191.116);
  --card-foreground: oklch(0.126 0.016 190.263);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.441 0.078 185.041);
  --primary-foreground: oklch(0.932 0.1 188.701);
  --secondary: oklch(0.934 0.005 191.134);
  --secondary-foreground: oklch(0.443 0.02 190.26);
  --accent: oklch(0.934 0.005 191.134);
  --accent-foreground: oklch(0.443 0.02 190.26);
  --destructive: oklch(0.339 0.129 31.89);
  --destructive-foreground: oklch(0.817 0.103 27.776);
  --ring: oklch(0.441 0.078 185.041);
  --chart-1: oklch(0.441 0.078 185.041);
  --chart-2: oklch(0.934 0.005 191.134);
  --chart-3: oklch(0.934 0.005 191.134);
  --chart-4: oklch(0.956 0.003 191.175);
  --chart-5: oklch(0.446 0.079 184.916);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.099 0.01 190.416);
  --foreground: oklch(0.993 0.001 191.23);
  --muted: oklch(0.181 0.025 19.851);
  --muted-foreground: oklch(0.795 0.016 17.494);
  --popover: oklch(0.099 0.01 190.416);
  --popover-foreground: oklch(0.993 0.001 191.23);
  --card: oklch(0.124 0.013 190.416);
  --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.441 0.078 185.041);
  --primary-foreground: oklch(0.932 0.1 188.701);
  --secondary: oklch(0.238 0 161.565);
  --secondary-foreground: oklch(0.781 0 180);
  --accent: oklch(0.238 0 161.565);
  --accent-foreground: oklch(0.781 0 180);
  --destructive: oklch(0.655 0.232 31.04);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.441 0.078 185.041);
  --chart-1: oklch(0.441 0.078 185.041);
  --chart-2: oklch(0.238 0 161.565);
  --chart-3: oklch(0.238 0 161.565);
  --chart-4: oklch(0.27 0 180);
  --chart-5: oklch(0.446 0.079 184.916);
}