Today is a shadcn/ui theme built around a blue primary color (#416c8b) with green accents (#6c8b41). The light mode uses a neutral background (#ffffff). Dark mode keeps the blue primary (#416c8b) on a blue-tinted background (#04080c).
| Token | Light | Dark |
|---|---|---|
| Background | #ffffffwhite | #04080cblack |
| Foreground | #04080cblack | #fcfdfdwhite |
| Card | #fcfcfcsnow | #050b0fblack |
| Card foreground | #020608black | #ffffffwhite |
| Popover | #ffffffwhite | #04080cblack |
| Popover foreground | #04080cblack | #fcfdfdwhite |
| Primary | #416c8bsteelblue | #416c8bsteelblue |
| Primary foreground | #ffffffwhite | #ffffffwhite |
| Secondary | #8b416cdimgray | #8b416cdimgray |
| Secondary foreground | #ffffffwhite | #ffffffwhite |
| Muted | #f2e3eclinen | #1c0d16black |
| Muted foreground | #675b62dimgray | #a4989fdarkgray |
| Accent | #6c8b41olivedrab | #6c8b41olivedrab |
| Accent foreground | #ffffffwhite | #ffffffwhite |
| Destructive | #d53110firebrick | #d53110firebrick |
| Destructive foreground | #ffffffwhite | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #416c8bsteelblue | #416c8bsteelblue |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 20.09:1 | AAA |
| Text on card | 19.90:1 | AAA |
| Primary button | 5.60:1 | AA |
| Secondary button | 6.83:1 | AA |
| Muted text | 5.22:1 | AA |
| Accent | 3.89:1 | AA Large |
| Destructive | 4.89:1 | AA |
| Text on background | 19.70:1 | AAA |
| Text on card | 19.77:1 | AAA |
| Primary button | 5.60:1 | AA |
| Secondary button | 6.83:1 | AA |
| Muted text | 6.77:1 | AA |
| Accent | 3.89:1 | AA Large |
| Destructive | 4.89:1 | AA |
Paste this into your globals.css to use Today in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(1 0 180);
--foreground: oklch(0.131 0.013 232.103);
--muted: oklch(0.931 0.02 341.509);
--muted-foreground: oklch(0.485 0.018 341.869);
--popover: oklch(1 0 180);
--popover-foreground: oklch(0.131 0.013 232.103);
--card: oklch(0.992 0 161.565);
--card-foreground: oklch(0.115 0.011 231.53);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.513 0.068 240.942);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.484 0.113 346.099);
--secondary-foreground: oklch(1 0 180);
--accent: oklch(0.595 0.107 128.01);
--accent-foreground: oklch(1 0 180);
--destructive: oklch(0.572 0.204 32.568);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.513 0.068 240.942);
--chart-1: oklch(0.513 0.068 240.942);
--chart-2: oklch(0.484 0.113 346.099);
--chart-3: oklch(0.595 0.107 128.01);
--chart-4: oklch(0.51 0.12 346.141);
--chart-5: oklch(0.515 0.073 241.239);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.131 0.013 232.265);
--foreground: oklch(0.992 0.001 238.379);
--muted: oklch(0.184 0.03 344.551);
--muted-foreground: oklch(0.693 0.017 341.565);
--popover: oklch(0.131 0.013 232.265);
--popover-foreground: oklch(0.992 0.001 238.379);
--card: oklch(0.145 0.015 235.973);
--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.513 0.068 240.942);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.484 0.113 346.099);
--secondary-foreground: oklch(1 0 180);
--accent: oklch(0.595 0.107 128.01);
--accent-foreground: oklch(1 0 180);
--destructive: oklch(0.572 0.204 32.568);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.513 0.068 240.942);
--chart-1: oklch(0.513 0.068 240.942);
--chart-2: oklch(0.484 0.113 346.099);
--chart-3: oklch(0.595 0.107 128.01);
--chart-4: oklch(0.51 0.12 346.141);
--chart-5: oklch(0.515 0.073 241.239);
}