Tonight is a shadcn/ui theme built around a vivid green primary color (#41a805) with vivid pink accents (#a80541). The light mode uses a neutral background (#ffffff). Dark mode keeps the vivid green primary (#41a805) on a neutral background (#050703).
| Token | Light | Dark |
|---|---|---|
| Background | #ffffffwhite | #050703black |
| Foreground | #0a1604black | #ffffffwhite |
| Card | #ffffffwhite | #050703black |
| Card foreground | #0a1604black | #ffffffwhite |
| Popover | #ffffffwhite | #050703black |
| Popover foreground | #0a1604black | #ffffffwhite |
| Primary | #41a805forestgreen | #41a805forestgreen |
| Primary foreground | #ffffffwhite | #ffffffwhite |
| Secondary | #0541a8darkblue | #0541a8darkblue |
| Secondary foreground | #e1ecfelavender | #e1ecfelavender |
| Muted | #dddfe4gainsboro | #1b1e22black |
| Muted foreground | #535b6adimgray | #959eacdarkgray |
| Accent | #a80541firebrick | #a80541firebrick |
| Accent foreground | #fee1ecmistyrose | #fee1ecmistyrose |
| Destructive | #872603saddlebrown | #fb6832tomato |
| Destructive foreground | #fecfbepeachpuff | #000000black |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #41a805forestgreen | #41a805forestgreen |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 18.59:1 | AAA |
| Text on card | 18.59:1 | AAA |
| Primary button | 3.06:1 | AA Large |
| Secondary button | 7.57:1 | AAA |
| Muted text | 5.13:1 | AA |
| Accent | 6.21:1 | AA |
| Destructive | 6.44:1 | AA |
| Text on background | 20.21:1 | AAA |
| Text on card | 20.21:1 | AAA |
| Primary button | 3.06:1 | AA Large |
| Secondary button | 7.57:1 | AAA |
| Muted text | 6.20:1 | AA |
| Accent | 6.21:1 | AA |
| Destructive | 7.10:1 | AAA |
Paste this into your globals.css to use Tonight in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(1 0 180);
--foreground: oklch(0.183 0.041 133.97);
--muted: oklch(0.904 0.007 261.511);
--muted-foreground: oklch(0.47 0.026 261.41);
--popover: oklch(1 0 180);
--popover-foreground: oklch(0.183 0.041 133.97);
--card: oklch(1 0 180);
--card-foreground: oklch(0.183 0.041 133.97);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.646 0.2 138.57);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.414 0.175 261.291);
--secondary-foreground: oklch(0.94 0.027 261.481);
--accent: oklch(0.469 0.185 10.66);
--accent-foreground: oklch(0.937 0.034 353.602);
--destructive: oklch(0.418 0.138 37.015);
--destructive-foreground: oklch(0.89 0.058 40.95);
--ring: oklch(0.646 0.2 138.57);
--chart-1: oklch(0.646 0.2 138.57);
--chart-2: oklch(0.414 0.175 261.291);
--chart-3: oklch(0.469 0.185 10.66);
--chart-4: oklch(0.44 0.187 261.367);
--chart-5: oklch(0.652 0.204 138.724);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.123 0.016 132.392);
--foreground: oklch(1 0 180);
--muted: oklch(0.233 0.01 261.447);
--muted-foreground: oklch(0.696 0.023 261.471);
--popover: oklch(0.123 0.016 132.392);
--popover-foreground: oklch(1 0 180);
--card: oklch(0.123 0.016 132.392);
--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.646 0.2 138.57);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.414 0.175 261.291);
--secondary-foreground: oklch(0.94 0.027 261.481);
--accent: oklch(0.469 0.185 10.66);
--accent-foreground: oklch(0.937 0.034 353.602);
--destructive: oklch(0.694 0.192 39.095);
--destructive-foreground: oklch(0 0 0);
--ring: oklch(0.646 0.2 138.57);
--chart-1: oklch(0.646 0.2 138.57);
--chart-2: oklch(0.414 0.175 261.291);
--chart-3: oklch(0.469 0.185 10.66);
--chart-4: oklch(0.44 0.187 261.367);
--chart-5: oklch(0.652 0.204 138.724);
}