Overnighter is a shadcn/ui theme built around a vivid deep yellow primary color (#434507) with muted light yellow accents (#edede8). The light mode uses a neutral background (#ffffff). Dark mode keeps the vivid deep yellow primary (#434507) on a neutral background (#070703).
| Token | Light | Dark |
|---|---|---|
| Background | #ffffffwhite | #070703black |
| Foreground | #040401black | #f9faf5whitesmoke |
| Card | #fcfcfcsnow | #0a0b05black |
| Card foreground | #000000black | #fbfbf8snow |
| Popover | #fcfcfcsnow | #0a0b05black |
| Popover foreground | #000000black | #fbfbf8snow |
| Primary | #434507darkolivegreen | #434507darkolivegreen |
| Primary foreground | #e3e92fgold | #e3e92fgold |
| Secondary | #edede8linen | #323324darkslategray |
| Secondary foreground | #22221bblack | #cecebasilver |
| Muted | #eeeeddbeige | #222211black |
| Muted foreground | #545440darkolivegreen | #bfbfabsilver |
| Accent | #edede8linen | #323324darkslategray |
| Accent foreground | #22221bblack | #cecebasilver |
| Destructive | #ad160bfirebrick | #e11c0ered |
| Destructive foreground | #feedeclinen | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #434507darkolivegreen | #434507darkolivegreen |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 20.52:1 | AAA |
| Text on card | 20.54:1 | AAA |
| Primary button | 7.60:1 | AAA |
| Secondary button | 13.60:1 | AAA |
| Muted text | 6.60:1 | AA |
| Accent | 13.60:1 | AAA |
| Destructive | 6.42:1 | AA |
| Text on background | 19.23:1 | AAA |
| Text on card | 19.08:1 | AAA |
| Primary button | 7.60:1 | AAA |
| Secondary button | 8.07:1 | AAA |
| Muted text | 8.59:1 | AAA |
| Accent | 8.07:1 | AAA |
| Destructive | 4.78:1 | AA |
Paste this into your globals.css to use Overnighter in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(1 0 180);
--foreground: oklch(0.105 0.016 110.022);
--muted: oklch(0.945 0.024 108.394);
--muted-foreground: oklch(0.44 0.032 109.243);
--popover: oklch(0.992 0 161.565);
--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.377 0.079 111.647);
--primary-foreground: oklch(0.901 0.188 111.67);
--secondary: oklch(0.944 0.006 108.056);
--secondary-foreground: oklch(0.249 0.012 108.825);
--accent: oklch(0.944 0.006 108.056);
--accent-foreground: oklch(0.249 0.012 108.825);
--destructive: oklch(0.477 0.184 29.72);
--destructive-foreground: oklch(0.959 0.018 22.436);
--ring: oklch(0.377 0.079 111.647);
--chart-1: oklch(0.377 0.079 111.647);
--chart-2: oklch(0.944 0.006 108.056);
--chart-3: oklch(0.944 0.006 108.056);
--chart-4: oklch(0.965 0.004 108.01);
--chart-5: oklch(0.381 0.08 111.702);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.126 0.012 109.355);
--foreground: oklch(0.982 0.006 108.049);
--muted: oklch(0.248 0.031 110.104);
--muted-foreground: oklch(0.8 0.028 108.582);
--popover: oklch(0.145 0.014 109.388);
--popover-foreground: oklch(0.988 0.004 108.012);
--card: oklch(0.145 0.014 109.388);
--card-foreground: oklch(0.988 0.004 108.012);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.377 0.079 111.647);
--primary-foreground: oklch(0.901 0.188 111.67);
--secondary: oklch(0.315 0.025 109.341);
--secondary-foreground: oklch(0.846 0.027 108.518);
--accent: oklch(0.315 0.025 109.341);
--accent-foreground: oklch(0.846 0.027 108.518);
--destructive: oklch(0.58 0.226 29.749);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.377 0.079 111.647);
--chart-1: oklch(0.377 0.079 111.647);
--chart-2: oklch(0.315 0.025 109.341);
--chart-3: oklch(0.315 0.025 109.341);
--chart-4: oklch(0.349 0.029 109.385);
--chart-5: oklch(0.381 0.08 111.702);
}