Training is a shadcn/ui theme built around a deep cyan primary color (#0a2e3d) with deep orange accents (#3d1a0a). The light mode uses a neutral background (#ffffff). Dark mode keeps the deep cyan primary (#0a2e3d) on a neutral background (#030607).
| Token | Light | Dark |
|---|---|---|
| Background | #ffffffwhite | #030607black |
| Foreground | #000000black | #fbfdfdwhite |
| Card | #fcfcfcsnow | #05090ablack |
| Card foreground | #000000black | #ffffffwhite |
| Popover | #ffffffwhite | #030607black |
| Popover foreground | #000000black | #fbfdfdwhite |
| Primary | #0a2e3ddarkslategray | #0a2e3ddarkslategray |
| Primary foreground | #8ed0ecskyblue | #8ed0ecskyblue |
| Secondary | #3d1a0ablack | #3d1a0ablack |
| Secondary foreground | #ecaa8eburlywood | #ecaa8eburlywood |
| Muted | #efe2dcantiquewhite | #231610black |
| Muted foreground | #564943darkolivegreen | #bcafa9darkgray |
| Accent | #3d1a0ablack | #3d1a0ablack |
| Accent foreground | #ecaa8eburlywood | #ecaa8eburlywood |
| Destructive | #831c07maroon | #f55838tomato |
| Destructive foreground | #fccac0pink | #000000black |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #0a2e3ddarkslategray | #0a2e3ddarkslategray |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 21.00:1 | AAA |
| Text on card | 20.54:1 | AAA |
| Primary button | 8.42:1 | AAA |
| Secondary button | 7.94:1 | AAA |
| Muted text | 6.81:1 | AA |
| Accent | 7.94:1 | AAA |
| Destructive | 6.74:1 | AA |
| Text on background | 19.92:1 | AAA |
| Text on card | 20.02:1 | AAA |
| Primary button | 8.42:1 | AAA |
| Secondary button | 7.94:1 | AAA |
| Muted text | 8.26:1 | AAA |
| Accent | 7.94:1 | AAA |
| Destructive | 6.31:1 | AA |
Paste this into your globals.css to use Training in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(1 0 180);
--foreground: oklch(0 0 0);
--muted: oklch(0.921 0.016 44.806);
--muted-foreground: oklch(0.416 0.021 44.536);
--popover: oklch(1 0 180);
--popover-foreground: oklch(0 0 0);
--card: oklch(0.992 0 161.565);
--card-foreground: oklch(0 0 0);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.283 0.048 230.576);
--primary-foreground: oklch(0.822 0.078 226.717);
--secondary: oklch(0.265 0.061 42.587);
--secondary-foreground: oklch(0.793 0.087 44.144);
--accent: oklch(0.265 0.061 42.587);
--accent-foreground: oklch(0.793 0.087 44.144);
--destructive: oklch(0.4 0.141 32.751);
--destructive-foreground: oklch(0.88 0.059 31.324);
--ring: oklch(0.283 0.048 230.576);
--chart-1: oklch(0.283 0.048 230.576);
--chart-2: oklch(0.265 0.061 42.587);
--chart-3: oklch(0.265 0.061 42.587);
--chart-4: oklch(0.298 0.072 42.327);
--chart-5: oklch(0.285 0.05 230.942);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.117 0.008 221.295);
--foreground: oklch(0.993 0.002 225.002);
--muted: oklch(0.215 0.024 44.123);
--muted-foreground: oklch(0.763 0.018 44.752);
--popover: oklch(0.117 0.008 221.295);
--popover-foreground: oklch(0.993 0.002 225.002);
--card: oklch(0.134 0.009 221.298);
--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.283 0.048 230.576);
--primary-foreground: oklch(0.822 0.078 226.717);
--secondary: oklch(0.265 0.061 42.587);
--secondary-foreground: oklch(0.793 0.087 44.144);
--accent: oklch(0.265 0.061 42.587);
--accent-foreground: oklch(0.793 0.087 44.144);
--destructive: oklch(0.665 0.198 33.211);
--destructive-foreground: oklch(0 0 0);
--ring: oklch(0.283 0.048 230.576);
--chart-1: oklch(0.283 0.048 230.576);
--chart-2: oklch(0.265 0.061 42.587);
--chart-3: oklch(0.265 0.061 42.587);
--chart-4: oklch(0.298 0.072 42.327);
--chart-5: oklch(0.285 0.05 230.942);
}