Overjoyed is a shadcn/ui theme built around a deep indigo primary color (#17165f) with deep green accents (#165f17). The light mode uses a neutral background (#f8f8fc). Dark mode keeps the deep indigo primary (#17165f) on an indigo-tinted background (#04030c).
| Token | Light | Dark |
|---|---|---|
| Background | #f8f8fcghostwhite | #04030cblack |
| Foreground | #040411black | #f8f8fbghostwhite |
| Card | #f8f8fcghostwhite | #04030cblack |
| Card foreground | #040411black | #f8f8fbghostwhite |
| Popover | #f8f8fcghostwhite | #04030cblack |
| Popover foreground | #040411black | #f8f8fbghostwhite |
| Primary | #17165fmidnightblue | #17165fmidnightblue |
| Primary foreground | #bab9eflightsteelblue | #bab9eflightsteelblue |
| Secondary | #5f1716maroon | #5f1716maroon |
| Secondary foreground | #efbab9lightpink | #efbab9lightpink |
| Muted | #f3f1f1whitesmoke | #0e0c0cblack |
| Muted foreground | #554949darkslategray | #b6aaaadarkgray |
| Accent | #165f17darkgreen | #165f17darkgreen |
| Accent foreground | #ffffffwhite | #ffffffwhite |
| Destructive | #680303maroon | #f90b0bred |
| Destructive foreground | #fda1a1lightpink | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #17165fmidnightblue | #17165fmidnightblue |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.19:1 | AAA |
| Text on card | 19.19:1 | AAA |
| Primary button | 8.54:1 | AAA |
| Secondary button | 7.62:1 | AAA |
| Muted text | 7.68:1 | AAA |
| Accent | 7.82:1 | AAA |
| Destructive | 6.71:1 | AA |
| Text on background | 19.33:1 | AAA |
| Text on card | 19.33:1 | AAA |
| Primary button | 8.54:1 | AAA |
| Secondary button | 7.62:1 | AAA |
| Muted text | 8.66:1 | AAA |
| Accent | 7.82:1 | AAA |
| Destructive | 4.13:1 | AA Large |
Paste this into your globals.css to use Overjoyed in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.98 0.006 287.061);
--foreground: oklch(0.117 0.032 281.355);
--muted: oklch(0.96 0.002 18.396);
--muted-foreground: oklch(0.418 0.017 19.006);
--popover: oklch(0.98 0.006 287.061);
--popover-foreground: oklch(0.117 0.032 281.355);
--card: oklch(0.98 0.006 287.061);
--card-foreground: oklch(0.117 0.032 281.355);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.263 0.124 274.504);
--primary-foreground: oklch(0.804 0.076 285.333);
--secondary: oklch(0.327 0.104 25.773);
--secondary-foreground: oklch(0.835 0.061 19.584);
--accent: oklch(0.426 0.126 143.17);
--accent-foreground: oklch(1 0 180);
--destructive: oklch(0.328 0.132 28.771);
--destructive-foreground: oklch(0.8 0.11 19.777);
--ring: oklch(0.263 0.124 274.504);
--chart-1: oklch(0.263 0.124 274.504);
--chart-2: oklch(0.327 0.104 25.773);
--chart-3: oklch(0.426 0.126 143.17);
--chart-4: oklch(0.355 0.114 25.962);
--chart-5: oklch(0.261 0.129 273.618);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.109 0.025 282.645);
--foreground: oklch(0.981 0.004 287.094);
--muted: oklch(0.156 0.003 18.706);
--muted-foreground: oklch(0.748 0.014 18.661);
--popover: oklch(0.109 0.025 282.645);
--popover-foreground: oklch(0.981 0.004 287.094);
--card: oklch(0.109 0.025 282.645);
--card-foreground: oklch(0.981 0.004 287.094);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.263 0.124 274.504);
--primary-foreground: oklch(0.804 0.076 285.333);
--secondary: oklch(0.327 0.104 25.773);
--secondary-foreground: oklch(0.835 0.061 19.584);
--accent: oklch(0.426 0.126 143.17);
--accent-foreground: oklch(1 0 180);
--destructive: oklch(0.619 0.25 28.939);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.263 0.124 274.504);
--chart-1: oklch(0.263 0.124 274.504);
--chart-2: oklch(0.327 0.104 25.773);
--chart-3: oklch(0.426 0.126 143.17);
--chart-4: oklch(0.355 0.114 25.962);
--chart-5: oklch(0.261 0.129 273.618);
}