Joyous is a shadcn/ui theme built around a light violet primary color (#ddc5f1) with light purple accents (#f1c5f0). The light mode uses a neutral background (#fdfcfd). Dark mode keeps the light violet primary (#ddc5f1) on a neutral background (#030104).
| Token | Light | Dark |
|---|---|---|
| Background | #fdfcfdwhite | #030104black |
| Foreground | #030104black | #faf8fbghostwhite |
| Card | #faf8fcghostwhite | #050208black |
| Card foreground | #000000black | #fdfcfdwhite |
| Popover | #fdfcfdwhite | #030104black |
| Popover foreground | #030104black | #faf8fbghostwhite |
| Primary | #ddc5f1thistle | #ddc5f1thistle |
| Primary foreground | #45196bindigo | #45196bindigo |
| Secondary | #c7c5f1lightsteelblue | #c7c5f1lightsteelblue |
| Secondary foreground | #1c196bmidnightblue | #1c196bmidnightblue |
| Muted | #dcdce0gainsboro | #1f1f23black |
| Muted foreground | #53526bdimgray | #9594addarkgray |
| Accent | #f1c5f0thistle | #f1c5f0thistle |
| Accent foreground | #6b1969purple | #6b1969purple |
| Destructive | #87340dsaddlebrown | #ec743ctomato |
| Destructive foreground | #fadbccbisque | #000000black |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #ddc5f1thistle | #ddc5f1thistle |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 20.25:1 | AAA |
| Text on card | 19.92:1 | AAA |
| Primary button | 8.31:1 | AAA |
| Secondary button | 9.06:1 | AAA |
| Muted text | 5.50:1 | AA |
| Accent | 7.12:1 | AAA |
| Destructive | 6.38:1 | AA |
| Text on background | 19.69:1 | AAA |
| Text on card | 20.13:1 | AAA |
| Primary button | 8.31:1 | AAA |
| Secondary button | 9.06:1 | AAA |
| Muted text | 5.55:1 | AA |
| Accent | 7.12:1 | AAA |
| Destructive | 7.10:1 | AAA |
Paste this into your globals.css to use Joyous in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.991 0.002 309.762);
--foreground: oklch(0.082 0.016 311.334);
--muted: oklch(0.895 0.005 287.828);
--muted-foreground: oklch(0.449 0.04 286.203);
--popover: oklch(0.991 0.002 309.762);
--popover-foreground: oklch(0.082 0.016 311.334);
--card: oklch(0.982 0.005 309.738);
--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.858 0.065 309.031);
--primary-foreground: oklch(0.329 0.135 304.118);
--secondary: oklch(0.84 0.061 286.522);
--secondary-foreground: oklch(0.285 0.136 274.878);
--accent: oklch(0.875 0.075 327.254);
--accent-foreground: oklch(0.385 0.148 329.448);
--destructive: oklch(0.436 0.123 41.554);
--destructive-foreground: oklch(0.912 0.04 46.411);
--ring: oklch(0.858 0.065 309.031);
--chart-1: oklch(0.858 0.065 309.031);
--chart-2: oklch(0.84 0.061 286.522);
--chart-3: oklch(0.875 0.075 327.254);
--chart-4: oklch(0.874 0.048 286.896);
--chart-5: oklch(0.856 0.069 308.992);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.081 0.019 311.627);
--foreground: oklch(0.982 0.005 309.739);
--muted: oklch(0.242 0.008 287.355);
--muted-foreground: oklch(0.677 0.036 286.927);
--popover: oklch(0.081 0.019 311.627);
--popover-foreground: oklch(0.982 0.005 309.739);
--card: oklch(0.101 0.024 311.627);
--card-foreground: oklch(0.991 0.002 309.762);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.858 0.065 309.031);
--primary-foreground: oklch(0.329 0.135 304.118);
--secondary: oklch(0.84 0.061 286.522);
--secondary-foreground: oklch(0.285 0.136 274.878);
--accent: oklch(0.875 0.075 327.254);
--accent-foreground: oklch(0.385 0.148 329.448);
--destructive: oklch(0.689 0.164 43.63);
--destructive-foreground: oklch(0 0 0);
--ring: oklch(0.858 0.065 309.031);
--chart-1: oklch(0.858 0.065 309.031);
--chart-2: oklch(0.84 0.061 286.522);
--chart-3: oklch(0.875 0.075 327.254);
--chart-4: oklch(0.874 0.048 286.896);
--chart-5: oklch(0.856 0.069 308.992);
}