Trainer is a shadcn/ui theme built around a light indigo primary color (#acace2) with light green accents (#ace2ac). The light mode uses a neutral background (#ffffff). Dark mode keeps the light indigo primary (#acace2) on a neutral background (#020204).
| Token | Light | Dark |
|---|---|---|
| Background | #ffffffwhite | #020204black |
| Foreground | #010109black | #fcfcfdwhite |
| Card | #ffffffwhite | #020204black |
| Card foreground | #010109black | #fcfcfdwhite |
| Popover | #ffffffwhite | #020204black |
| Popover foreground | #010109black | #fcfcfdwhite |
| Primary | #acace2lightsteelblue | #acace2lightsteelblue |
| Primary foreground | #181844midnightblue | #181844midnightblue |
| Secondary | #e2acactan | #e2acactan |
| Secondary foreground | #441818maroon | #441818maroon |
| Muted | #e3d3d3gainsboro | #2c1c1cblack |
| Muted foreground | #463e3edarkslategray | #c1b9b9silver |
| Accent | #ace2acpalegreen | #ace2acpalegreen |
| Accent foreground | #184418darkgreen | #184418darkgreen |
| Destructive | #aa320efirebrick | #e24312orangered |
| Destructive foreground | #ffffffwhite | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #acace2lightsteelblue | #acace2lightsteelblue |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 20.80:1 | AAA |
| Text on card | 20.80:1 | AAA |
| Primary button | 7.78:1 | AAA |
| Secondary button | 7.71:1 | AAA |
| Muted text | 7.22:1 | AAA |
| Accent | 7.56:1 | AAA |
| Destructive | 6.62:1 | AA |
| Text on background | 20.26:1 | AAA |
| Text on card | 20.26:1 | AAA |
| Primary button | 7.78:1 | AAA |
| Secondary button | 7.71:1 | AAA |
| Muted text | 8.47:1 | AAA |
| Accent | 7.56:1 | AAA |
| Destructive | 4.15:1 | AA Large |
Paste this into your globals.css to use Trainer in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(1 0 180);
--foreground: oklch(0.086 0.029 278.303);
--muted: oklch(0.881 0.017 17.489);
--muted-foreground: oklch(0.373 0.011 17.656);
--popover: oklch(1 0 180);
--popover-foreground: oklch(0.086 0.029 278.303);
--card: oklch(1 0 180);
--card-foreground: oklch(0.086 0.029 278.303);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.763 0.077 284.436);
--primary-foreground: oklch(0.239 0.081 278.338);
--secondary: oklch(0.794 0.063 18.58);
--secondary-foreground: oklch(0.277 0.068 22.612);
--accent: oklch(0.861 0.092 144.723);
--accent-foreground: oklch(0.344 0.087 143.4);
--destructive: oklch(0.495 0.162 35.745);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.763 0.077 284.436);
--chart-1: oklch(0.763 0.077 284.436);
--chart-2: oklch(0.794 0.063 18.58);
--chart-3: oklch(0.861 0.092 144.723);
--chart-4: oklch(0.822 0.054 18.309);
--chart-5: oklch(0.759 0.082 284.288);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.081 0.011 283.68);
--foreground: oklch(0.991 0.001 286.38);
--muted: oklch(0.246 0.025 19.013);
--muted-foreground: oklch(0.791 0.009 17.347);
--popover: oklch(0.081 0.011 283.68);
--popover-foreground: oklch(0.991 0.001 286.38);
--card: oklch(0.081 0.011 283.68);
--card-foreground: oklch(0.991 0.001 286.38);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.763 0.077 284.436);
--primary-foreground: oklch(0.239 0.081 278.338);
--secondary: oklch(0.794 0.063 18.58);
--secondary-foreground: oklch(0.277 0.068 22.612);
--accent: oklch(0.861 0.092 144.723);
--accent-foreground: oklch(0.344 0.087 143.4);
--destructive: oklch(0.61 0.203 35.453);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.763 0.077 284.436);
--chart-1: oklch(0.763 0.077 284.436);
--chart-2: oklch(0.794 0.063 18.58);
--chart-3: oklch(0.861 0.092 144.723);
--chart-4: oklch(0.822 0.054 18.309);
--chart-5: oklch(0.759 0.082 284.288);
}