Tonight is a shadcn/ui theme built around a vivid light green primary color (#abfccc) with vivid light orange accents (#fcccab). The light mode uses a neutral background (#f8fcfa). Dark mode keeps the vivid light green primary (#abfccc) on a green-tinted background (#051009).
| Token | Light | Dark |
|---|---|---|
| Background | #f8fcfamintcream | #051009black |
| Foreground | #010402black | #f9fbfamintcream |
| Card | #f8fcfamintcream | #051009black |
| Card foreground | #010402black | #f9fbfamintcream |
| Popover | #f8fcfamintcream | #051009black |
| Popover foreground | #010402black | #f9fbfamintcream |
| Primary | #abfcccpaleturquoise | #abfcccpaleturquoise |
| Primary foreground | #010f06black | #010f06black |
| Secondary | #ccabfcplum | #ccabfcplum |
| Secondary foreground | #300471midnightblue | #300471midnightblue |
| Muted | #edebeflavender | #111014black |
| Muted foreground | #58535fdimgray | #a5a0acdarkgray |
| Accent | #fcccabnavajowhite | #fcccabnavajowhite |
| Accent foreground | #713004saddlebrown | #713004saddlebrown |
| Destructive | #7c2d0esaddlebrown | #e86430chocolate |
| Destructive foreground | #f8d2c3peachpuff | #000000black |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #abfcccpaleturquoise | #abfcccpaleturquoise |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.87:1 | AAA |
| Text on card | 19.87:1 | AAA |
| Primary button | 16.34:1 | AAA |
| Secondary button | 7.82:1 | AAA |
| Muted text | 6.29:1 | AA |
| Accent | 6.73:1 | AA |
| Destructive | 6.70:1 | AA |
| Text on background | 18.68:1 | AAA |
| Text on card | 18.68:1 | AAA |
| Primary button | 16.34:1 | AAA |
| Secondary button | 7.82:1 | AAA |
| Muted text | 7.42:1 | AAA |
| Accent | 6.73:1 | AA |
| Destructive | 6.31:1 | AA |
Paste this into your globals.css to use Tonight in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.987 0.005 160.121);
--foreground: oklch(0.099 0.017 160.089);
--muted: oklch(0.943 0.005 304.261);
--muted-foreground: oklch(0.452 0.021 303.679);
--popover: oklch(0.987 0.005 160.121);
--popover-foreground: oklch(0.099 0.017 160.089);
--card: oklch(0.987 0.005 160.121);
--card-foreground: oklch(0.099 0.017 160.089);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.926 0.103 157.334);
--primary-foreground: oklch(0.148 0.032 159.129);
--secondary: oklch(0.799 0.116 302.205);
--secondary-foreground: oklch(0.288 0.158 289.747);
--accent: oklch(0.878 0.07 55.306);
--accent-foreground: oklch(0.393 0.105 47.244);
--destructive: oklch(0.408 0.117 39.595);
--destructive-foreground: oklch(0.893 0.048 42.743);
--ring: oklch(0.926 0.103 157.334);
--chart-1: oklch(0.926 0.103 157.334);
--chart-2: oklch(0.799 0.116 302.205);
--chart-3: oklch(0.878 0.07 55.306);
--chart-4: oklch(0.834 0.095 302.687);
--chart-5: oklch(0.928 0.106 157.241);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.157 0.022 158.599);
--foreground: oklch(0.986 0.003 160.171);
--muted: oklch(0.176 0.008 303.666);
--muted-foreground: oklch(0.712 0.019 303.968);
--popover: oklch(0.157 0.022 158.599);
--popover-foreground: oklch(0.986 0.003 160.171);
--card: oklch(0.157 0.022 158.599);
--card-foreground: oklch(0.986 0.003 160.171);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.926 0.103 157.334);
--primary-foreground: oklch(0.148 0.032 159.129);
--secondary: oklch(0.799 0.116 302.205);
--secondary-foreground: oklch(0.288 0.158 289.747);
--accent: oklch(0.878 0.07 55.306);
--accent-foreground: oklch(0.393 0.105 47.244);
--destructive: oklch(0.661 0.176 40.43);
--destructive-foreground: oklch(0 0 0);
--ring: oklch(0.926 0.103 157.334);
--chart-1: oklch(0.926 0.103 157.334);
--chart-2: oklch(0.799 0.116 302.205);
--chart-3: oklch(0.878 0.07 55.306);
--chart-4: oklch(0.834 0.095 302.687);
--chart-5: oklch(0.928 0.106 157.241);
}