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).
| Token | Light | Dark |
|---|---|---|
| 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 |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.89:1 | AAA |
| Text on card | 19.89:1 | AAA |
| Primary button | 11.36:1 | AAA |
| Secondary button | 11.64:1 | AAA |
| Muted text | 6.53:1 | AA |
| Accent | 11.72:1 | AAA |
| Destructive | 5.59:1 | AA |
| Text on background | 21.00:1 | AAA |
| Text on card | 21.00:1 | AAA |
| Primary button | 11.36:1 | AAA |
| Secondary button | 11.64:1 | AAA |
| Muted text | 7.55:1 | AAA |
| Accent | 11.72:1 | AAA |
| Destructive | 4.66:1 | AA |
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);
}