Joyous is a shadcn/ui theme built around a light pink primary color (#e5cdd9) with light red accents (#e5cdcd). The light mode uses a neutral background (#fcf7fa). Dark mode keeps the light pink primary (#e5cdd9) on a neutral background (#000000).
| Token | Light | Dark |
|---|---|---|
| Background | #fcf7fasnow | #000000black |
| Foreground | #080205black | #fbf9fasnow |
| Card | #fcf7fasnow | #000000black |
| Card foreground | #080205black | #fbf9fasnow |
| Popover | #fcf7fasnow | #000000black |
| Popover foreground | #080205black | #fbf9fasnow |
| Primary | #e5cdd9gainsboro | #e5cdd9gainsboro |
| Primary foreground | #542c40darkslategray | #542c40darkslategray |
| Secondary | #e5cde5gainsboro | #e5cde5gainsboro |
| Secondary foreground | #542c54darkslategray | #542c54darkslategray |
| Muted | #ebe0eblavender | #1f141fblack |
| Muted foreground | #433d43darkslategray | #c2bcc2silver |
| Accent | #e5cdcdlightgrey | #e5cdcdlightgrey |
| Accent foreground | #542c2cdarkslategray | #542c2cdarkslategray |
| Destructive | #e60f00red | #ff2e1forangered |
| Destructive foreground | #ffffffwhite | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #e5cdd9gainsboro | #e5cdd9gainsboro |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.46:1 | AAA |
| Text on card | 19.46:1 | AAA |
| Primary button | 7.75:1 | AAA |
| Secondary button | 7.59:1 | AAA |
| Muted text | 8.25:1 | AAA |
| Accent | 7.84:1 | AAA |
| Destructive | 4.75:1 | AA |
| Text on background | 20.03:1 | AAA |
| Text on card | 20.03:1 | AAA |
| Primary button | 7.75:1 | AAA |
| Secondary button | 7.59:1 | AAA |
| Muted text | 9.55:1 | AAA |
| Accent | 7.84:1 | AAA |
| Destructive | 3.71:1 | AA Large |
Paste this into your globals.css to use Joyous in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.982 0.006 345.313);
--foreground: oklch(0.106 0.022 344.944);
--muted: oklch(0.919 0.018 325.725);
--muted-foreground: oklch(0.367 0.014 325.853);
--popover: oklch(0.982 0.006 345.313);
--popover-foreground: oklch(0.106 0.022 344.944);
--card: oklch(0.982 0.006 345.313);
--card-foreground: oklch(0.106 0.022 344.944);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.871 0.031 346.041);
--primary-foreground: oklch(0.351 0.064 349.592);
--secondary: oklch(0.875 0.041 325.923);
--secondary-foreground: oklch(0.36 0.083 327.12);
--accent: oklch(0.868 0.027 17.676);
--accent-foreground: oklch(0.344 0.059 20.527);
--destructive: oklch(0.583 0.235 29.859);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.871 0.031 346.041);
--chart-1: oklch(0.871 0.031 346.041);
--chart-2: oklch(0.875 0.041 325.923);
--chart-3: oklch(0.868 0.027 17.676);
--chart-4: oklch(0.9 0.033 325.845);
--chart-5: oklch(0.87 0.034 346.128);
}
.dark {
--radius: 0.5rem;
--background: oklch(0 0 0);
--foreground: oklch(0.984 0.002 345.188);
--muted: oklch(0.211 0.026 326.462);
--muted-foreground: oklch(0.802 0.011 325.682);
--popover: oklch(0 0 0);
--popover-foreground: oklch(0.984 0.002 345.188);
--card: oklch(0 0 0);
--card-foreground: oklch(0.984 0.002 345.188);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.871 0.031 346.041);
--primary-foreground: oklch(0.351 0.064 349.592);
--secondary: oklch(0.875 0.041 325.923);
--secondary-foreground: oklch(0.36 0.083 327.12);
--accent: oklch(0.868 0.027 17.676);
--accent-foreground: oklch(0.344 0.059 20.527);
--destructive: oklch(0.644 0.242 29.595);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.871 0.031 346.041);
--chart-1: oklch(0.871 0.031 346.041);
--chart-2: oklch(0.875 0.041 325.923);
--chart-3: oklch(0.868 0.027 17.676);
--chart-4: oklch(0.9 0.033 325.845);
--chart-5: oklch(0.87 0.034 346.128);
}