Overjoyed is a shadcn/ui theme built around a deep yellow primary color (#222211) with muted light yellow accents (#dfded8). The light mode uses a neutral background (#fcfcf7). Dark mode keeps the deep yellow primary (#222211) on a neutral background (#040401).
| Token | Light | Dark |
|---|---|---|
| Background | #fcfcf7snow | #040401black |
| Foreground | #090801black | #fdfdfcwhite |
| Card | #fbfbf4floralwhite | #080802black |
| Card foreground | #040401black | #ffffffwhite |
| Popover | #fbfbf4floralwhite | #080802black |
| Popover foreground | #040401black | #ffffffwhite |
| Primary | #222211black | #222211black |
| Primary foreground | #aca953darkkhaki | #aca953darkkhaki |
| Secondary | #dfded8gainsboro | #27271bblack |
| Secondary foreground | #48483cdarkslategray | #c7c6aesilver |
| Muted | #eeeeddbeige | #222211black |
| Muted foreground | #464639darkslategray | #c6c5b9silver |
| Accent | #dfded8gainsboro | #27271bblack |
| Accent foreground | #48483cdarkslategray | #c7c6aesilver |
| Destructive | #670c09maroon | #ee443ftomato |
| Destructive foreground | #f8adablightpink | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #222211black | #222211black |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.54:1 | AAA |
| Text on card | 19.73:1 | AAA |
| Primary button | 6.55:1 | AA |
| Secondary button | 6.87:1 | AA |
| Muted text | 8.13:1 | AAA |
| Accent | 6.87:1 | AA |
| Destructive | 7.06:1 | AAA |
| Text on background | 20.17:1 | AAA |
| Text on card | 20.08:1 | AAA |
| Primary button | 6.55:1 | AA |
| Secondary button | 8.72:1 | AAA |
| Muted text | 9.29:1 | AAA |
| Accent | 8.72:1 | AAA |
| Destructive | 3.78:1 | AA Large |
Paste this into your globals.css to use Overjoyed in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.991 0.006 104.92);
--foreground: oklch(0.134 0.022 107.818);
--muted: oklch(0.944 0.022 105.212);
--muted-foreground: oklch(0.39 0.02 105.672);
--popover: oklch(0.986 0.01 104.976);
--popover-foreground: oklch(0.106 0.017 107.818);
--card: oklch(0.986 0.01 104.976);
--card-foreground: oklch(0.106 0.017 107.818);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.247 0.03 106.686);
--primary-foreground: oklch(0.72 0.109 107.064);
--secondary: oklch(0.9 0.008 104.97);
--secondary-foreground: oklch(0.398 0.019 105.601);
--accent: oklch(0.9 0.008 104.97);
--accent-foreground: oklch(0.398 0.019 105.601);
--destructive: oklch(0.332 0.124 28.52);
--destructive-foreground: oklch(0.818 0.088 21.366);
--ring: oklch(0.247 0.03 106.686);
--chart-1: oklch(0.247 0.03 106.686);
--chart-2: oklch(0.9 0.008 104.97);
--chart-3: oklch(0.9 0.008 104.97);
--chart-4: oklch(0.922 0.007 104.932);
--chart-5: oklch(0.249 0.032 106.782);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.104 0.014 107.395);
--foreground: oklch(0.994 0.002 104.847);
--muted: oklch(0.246 0.029 106.652);
--muted-foreground: oklch(0.821 0.017 105.163);
--popover: oklch(0.131 0.018 107.395);
--popover-foreground: oklch(1 0 180);
--card: oklch(0.131 0.018 107.395);
--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.247 0.03 106.686);
--primary-foreground: oklch(0.72 0.109 107.064);
--secondary: oklch(0.268 0.02 106.047);
--secondary-foreground: oklch(0.82 0.033 105.482);
--accent: oklch(0.268 0.02 106.047);
--accent-foreground: oklch(0.82 0.033 105.482);
--destructive: oklch(0.635 0.207 26.925);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.247 0.03 106.686);
--chart-1: oklch(0.247 0.03 106.686);
--chart-2: oklch(0.268 0.02 106.047);
--chart-3: oklch(0.268 0.02 106.047);
--chart-4: oklch(0.304 0.024 106.105);
--chart-5: oklch(0.249 0.032 106.782);
}