Roster is a shadcn/ui theme built around a green primary color (#d9e779) with muted light green accents (#eaebe5). The light mode uses a neutral background (#fdfefb). Dark mode keeps the green primary (#d9e779) on a neutral background (#000000).
| Token | Light | Dark |
|---|---|---|
| Background | #fdfefbwhite | #000000black |
| Foreground | #080901black | #fbfbf9snow |
| Card | #fdfefbwhite | #000000black |
| Card foreground | #080901black | #fbfbf9snow |
| Popover | #fdfefbwhite | #000000black |
| Popover foreground | #080901black | #fbfbf9snow |
| Primary | #d9e779khaki | #d9e779khaki |
| Primary foreground | #232707black | #232707black |
| Secondary | #eaebe5linen | #353630darkslategray |
| Secondary foreground | #1f2018black | #cecfc9lightgrey |
| Muted | #f2f3edwhitesmoke | #11120cblack |
| Muted foreground | #4e4e4bdarkslategray | #b4b4b1darkgray |
| Accent | #eaebe5linen | #353630darkslategray |
| Accent foreground | #1f2018black | #cecfc9lightgrey |
| Destructive | #c52f11firebrick | #ec4827chocolate |
| Destructive foreground | #ffffffwhite | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #d9e779khaki | #d9e779khaki |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.71:1 | AAA |
| Text on card | 19.71:1 | AAA |
| Primary button | 11.48:1 | AAA |
| Secondary button | 13.73:1 | AAA |
| Muted text | 7.45:1 | AAA |
| Accent | 13.73:1 | AAA |
| Destructive | 5.53:1 | AA |
| Text on background | 20.26:1 | AAA |
| Text on card | 20.26:1 | AAA |
| Primary button | 11.48:1 | AAA |
| Secondary button | 7.76:1 | AAA |
| Muted text | 9.03:1 | AAA |
| Accent | 7.76:1 | AAA |
| Destructive | 3.79:1 | AA Large |
Paste this into your globals.css to use Roster in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.995 0.003 112.598);
--foreground: oklch(0.135 0.025 113.926);
--muted: oklch(0.961 0.008 112.695);
--muted-foreground: oklch(0.423 0.005 112.765);
--popover: oklch(0.995 0.003 112.598);
--popover-foreground: oklch(0.135 0.025 113.926);
--card: oklch(0.995 0.003 112.598);
--card-foreground: oklch(0.135 0.025 113.926);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.895 0.137 115.482);
--primary-foreground: oklch(0.26 0.05 116.461);
--secondary: oklch(0.938 0.009 112.715);
--secondary-foreground: oklch(0.24 0.015 113.671);
--accent: oklch(0.938 0.009 112.715);
--accent-foreground: oklch(0.24 0.015 113.671);
--destructive: oklch(0.541 0.19 32.715);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.895 0.137 115.482);
--chart-1: oklch(0.895 0.137 115.482);
--chart-2: oklch(0.938 0.009 112.715);
--chart-3: oklch(0.938 0.009 112.715);
--chart-4: oklch(0.959 0.006 112.655);
--chart-5: oklch(0.901 0.141 115.577);
}
.dark {
--radius: 0.5rem;
--background: oklch(0 0 0);
--foreground: oklch(0.987 0.003 112.592);
--muted: oklch(0.18 0.012 113.734);
--muted-foreground: oklch(0.769 0.004 112.649);
--popover: oklch(0 0 0);
--popover-foreground: oklch(0.987 0.003 112.592);
--card: oklch(0 0 0);
--card-foreground: oklch(0.987 0.003 112.592);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.895 0.137 115.482);
--primary-foreground: oklch(0.26 0.05 116.461);
--secondary: oklch(0.33 0.011 113.14);
--secondary-foreground: oklch(0.852 0.008 112.728);
--accent: oklch(0.33 0.011 113.14);
--accent-foreground: oklch(0.852 0.008 112.728);
--destructive: oklch(0.633 0.206 33.118);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.895 0.137 115.482);
--chart-1: oklch(0.895 0.137 115.482);
--chart-2: oklch(0.33 0.011 113.14);
--chart-3: oklch(0.33 0.011 113.14);
--chart-4: oklch(0.361 0.012 113.157);
--chart-5: oklch(0.901 0.141 115.577);
}