Overjoyed is a shadcn/ui theme built around a green primary color (#407b32) with red accents (#7b3240). The light mode uses a neutral background (#ffffff). Dark mode keeps the green primary (#407b32) on a neutral background (#040703).
| Token | Light | Dark |
|---|---|---|
| Background | #ffffffwhite | #040703black |
| Foreground | #061104black | #fcfdfcwhite |
| Card | #ffffffwhite | #040703black |
| Card foreground | #061104black | #fcfdfcwhite |
| Popover | #ffffffwhite | #040703black |
| Popover foreground | #061104black | #fcfdfcwhite |
| Primary | #407b32darkolivegreen | #407b32darkolivegreen |
| Primary foreground | #ffffffwhite | #ffffffwhite |
| Secondary | #32407bdarkslateblue | #32407bdarkslateblue |
| Secondary foreground | #e9ecf6lavender | #e9ecf6lavender |
| Muted | #e4e6f1lavender | #0e101bblack |
| Muted foreground | #545559dimgray | #a6a7abdarkgray |
| Accent | #7b3240brown | #7b3240brown |
| Accent foreground | #f6e9eclinen | #f6e9eclinen |
| Destructive | #941900darkred | #ff5533tomato |
| Destructive foreground | #ffd0c7pink | #000000black |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #407b32darkolivegreen | #407b32darkolivegreen |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.27:1 | AAA |
| Text on card | 19.27:1 | AAA |
| Primary button | 5.12:1 | AA |
| Secondary button | 8.28:1 | AAA |
| Muted text | 6.00:1 | AA |
| Accent | 7.47:1 | AAA |
| Destructive | 6.30:1 | AA |
| Text on background | 19.85:1 | AAA |
| Text on card | 19.85:1 | AAA |
| Primary button | 5.12:1 | AA |
| Secondary button | 8.28:1 | AAA |
| Muted text | 7.87:1 | AAA |
| Accent | 7.47:1 | AAA |
| Destructive | 6.59:1 | AA |
Paste this into your globals.css to use Overjoyed in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(1 0 180);
--foreground: oklch(0.161 0.034 138.481);
--muted: oklch(0.928 0.015 275.956);
--muted-foreground: oklch(0.45 0.007 275.96);
--popover: oklch(1 0 180);
--popover-foreground: oklch(0.161 0.034 138.481);
--card: oklch(1 0 180);
--card-foreground: oklch(0.161 0.034 138.481);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.526 0.123 140.058);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.391 0.102 271.476);
--secondary-foreground: oklch(0.943 0.014 275.964);
--accent: oklch(0.423 0.102 11.213);
--accent-foreground: oklch(0.946 0.014 4.71);
--destructive: oklch(0.43 0.161 32.518);
--destructive-foreground: oklch(0.896 0.055 31.288);
--ring: oklch(0.526 0.123 140.058);
--chart-1: oklch(0.526 0.123 140.058);
--chart-2: oklch(0.391 0.102 271.476);
--chart-3: oklch(0.423 0.102 11.213);
--chart-4: oklch(0.414 0.109 271.404);
--chart-5: oklch(0.532 0.13 140.103);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.121 0.015 138.781);
--foreground: oklch(0.993 0.001 139.99);
--muted: oklch(0.177 0.022 274.163);
--muted-foreground: oklch(0.728 0.006 276.054);
--popover: oklch(0.121 0.015 138.781);
--popover-foreground: oklch(0.993 0.001 139.99);
--card: oklch(0.121 0.015 138.781);
--card-foreground: oklch(0.993 0.001 139.99);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.526 0.123 140.058);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.391 0.102 271.476);
--secondary-foreground: oklch(0.943 0.014 275.964);
--accent: oklch(0.423 0.102 11.213);
--accent-foreground: oklch(0.946 0.014 4.71);
--destructive: oklch(0.678 0.212 33.193);
--destructive-foreground: oklch(0 0 0);
--ring: oklch(0.526 0.123 140.058);
--chart-1: oklch(0.526 0.123 140.058);
--chart-2: oklch(0.391 0.102 271.476);
--chart-3: oklch(0.423 0.102 11.213);
--chart-4: oklch(0.414 0.109 271.404);
--chart-5: oklch(0.532 0.13 140.103);
}