Trained for shadcn/ui

Trained is a shadcn/ui theme built around a green primary color (#66db81) with teal accents (#66dbbc). The light mode uses a neutral background (#f8fcf9). Dark mode keeps the green primary (#66db81) on a neutral background (#000000).

Color palette

TokenLightDark
Background
#f8fcf9mintcream
#000000black
Foreground
#010402black
#ffffffwhite
Card
#f8fcf9mintcream
#000000black
Card foreground
#010402black
#ffffffwhite
Popover
#f8fcf9mintcream
#000000black
Popover foreground
#010402black
#ffffffwhite
Primary
#66db81mediumaquamarine
#66db81mediumaquamarine
Primary foreground
#030c05black
#030c05black
Secondary
#85db66lightgreen
#85db66lightgreen
Secondary foreground
#050c03black
#050c03black
Muted
#d6e7cfgainsboro
#1e3018black
Muted foreground
#43513ddarkslategray
#b3c2aesilver
Accent
#66dbbcmediumaquamarine
#66dbbcmediumaquamarine
Accent foreground
#030c0ablack
#030c0ablack
Destructive
#cd1913firebrick
#e51c15crimson
Destructive foreground
#ffffffwhite
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#66db81mediumaquamarine
#66db81mediumaquamarine

Contrast

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

Light mode
Text on background19.89:1AAA
Text on card19.89:1AAA
Primary button11.36:1AAA
Secondary button11.64:1AAA
Muted text6.53:1AA
Accent11.72:1AAA
Destructive5.59:1AA
Dark mode
Text on background21.00:1AAA
Text on card21.00:1AAA
Primary button11.36:1AAA
Secondary button11.64:1AAA
Muted text7.55:1AAA
Accent11.72:1AAA
Destructive4.66:1AA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.987 0.007 153.132);
  --foreground: oklch(0.098 0.018 152.374);
  --muted: oklch(0.909 0.038 137.289);
  --muted-foreground: oklch(0.417 0.037 137.424);
  --popover: oklch(0.987 0.007 153.132);
  --popover-foreground: oklch(0.098 0.018 152.374);
  --card: oklch(0.987 0.007 153.132);
  --card-foreground: oklch(0.098 0.018 152.374);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.802 0.165 149.051);
  --primary-foreground: oklch(0.142 0.025 152.265);
  --secondary: oklch(0.812 0.174 138.055);
  --secondary-foreground: oklch(0.144 0.027 135.482);
  --accent: oklch(0.815 0.116 173.334);
  --accent-foreground: oklch(0.144 0.018 178.131);
  --destructive: oklch(0.542 0.21 28.965);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.802 0.165 149.051);
  --chart-1: oklch(0.802 0.165 149.051);
  --chart-2: oklch(0.812 0.174 138.055);
  --chart-3: oklch(0.815 0.116 173.334);
  --chart-4: oklch(0.825 0.162 137.914);
  --chart-5: oklch(0.808 0.172 148.863);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0 0 0);
  --foreground: oklch(1 0 180);
  --muted: oklch(0.286 0.048 137.752);
  --muted-foreground: oklch(0.796 0.032 137.286);
  --popover: oklch(0 0 0);
  --popover-foreground: oklch(1 0 180);
  --card: oklch(0 0 0);
  --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.802 0.165 149.051);
  --primary-foreground: oklch(0.142 0.025 152.265);
  --secondary: oklch(0.812 0.174 138.055);
  --secondary-foreground: oklch(0.144 0.027 135.482);
  --accent: oklch(0.815 0.116 173.334);
  --accent-foreground: oklch(0.144 0.018 178.131);
  --destructive: oklch(0.587 0.229 29.009);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.802 0.165 149.051);
  --chart-1: oklch(0.802 0.165 149.051);
  --chart-2: oklch(0.812 0.174 138.055);
  --chart-3: oklch(0.815 0.116 173.334);
  --chart-4: oklch(0.825 0.162 137.914);
  --chart-5: oklch(0.808 0.172 148.863);
}