Celebrated is a shadcn/ui theme built around a muted deep green primary color (#2a2c21) with muted deep indigo accents (#23212c). The light mode uses a neutral background (#ffffff). Dark mode keeps the muted deep green primary (#2a2c21) on a neutral background (#000000).
| Token | Light | Dark |
|---|---|---|
| Background | #ffffffwhite | #000000black |
| Foreground | #000000black | #ffffffwhite |
| Card | #fcfcfcsnow | #030303black |
| Card foreground | #000000black | #ffffffwhite |
| Popover | #fcfcfcsnow | #030303black |
| Popover foreground | #000000black | #ffffffwhite |
| Primary | #2a2c21darkslategray | #2a2c21darkslategray |
| Primary foreground | #c5c8b6silver | #c5c8b6silver |
| Secondary | #23212cdarkslategray | #23212cdarkslategray |
| Secondary foreground | #b9b6c8silver | #b9b6c8silver |
| Muted | #f0eff5whitesmoke | #0b0a10black |
| Muted foreground | #5f5c6adimgray | #9795a3darkgray |
| Accent | #23212cdarkslategray | #23212cdarkslategray |
| Accent foreground | #b9b6c8silver | #b9b6c8silver |
| Destructive | #7c2c03saddlebrown | #fa7533tomato |
| Destructive foreground | #fdcdb4peachpuff | #000000black |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #2a2c21darkslategray | #2a2c21darkslategray |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 21.00:1 | AAA |
| Text on card | 20.54:1 | AAA |
| Primary button | 8.34:1 | AAA |
| Secondary button | 8.00:1 | AAA |
| Muted text | 5.71:1 | AA |
| Accent | 8.00:1 | AAA |
| Destructive | 6.57:1 | AA |
| Text on background | 21.00:1 | AAA |
| Text on card | 20.67:1 | AAA |
| Primary button | 8.34:1 | AAA |
| Secondary button | 8.00:1 | AAA |
| Muted text | 6.71:1 | AA |
| Accent | 8.00:1 | AAA |
| Destructive | 7.66:1 | AAA |
Paste this into your globals.css to use Celebrated in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(1 0 180);
--foreground: oklch(0 0 0);
--muted: oklch(0.956 0.008 293.158);
--muted-foreground: oklch(0.483 0.022 292.432);
--popover: oklch(0.992 0 161.565);
--popover-foreground: oklch(0 0 0);
--card: oklch(0.992 0 161.565);
--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.286 0.019 114.536);
--primary-foreground: oklch(0.826 0.025 113.859);
--secondary: oklch(0.254 0.02 291.777);
--secondary-foreground: oklch(0.785 0.025 292.699);
--accent: oklch(0.254 0.02 291.777);
--accent-foreground: oklch(0.785 0.025 292.699);
--destructive: oklch(0.406 0.121 41.452);
--destructive-foreground: oklch(0.883 0.064 47.975);
--ring: oklch(0.286 0.019 114.536);
--chart-1: oklch(0.286 0.019 114.536);
--chart-2: oklch(0.254 0.02 291.777);
--chart-3: oklch(0.254 0.02 291.777);
--chart-4: oklch(0.282 0.023 291.696);
--chart-5: oklch(0.29 0.023 114.769);
}
.dark {
--radius: 0.5rem;
--background: oklch(0 0 0);
--foreground: oklch(1 0 180);
--muted: oklch(0.148 0.012 291.722);
--muted-foreground: oklch(0.675 0.02 292.734);
--popover: oklch(0.092 0 180);
--popover-foreground: oklch(1 0 180);
--card: oklch(0.092 0 180);
--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.286 0.019 114.536);
--primary-foreground: oklch(0.826 0.025 113.859);
--secondary: oklch(0.254 0.02 291.777);
--secondary-foreground: oklch(0.785 0.025 292.699);
--accent: oklch(0.254 0.02 291.777);
--accent-foreground: oklch(0.785 0.025 292.699);
--destructive: oklch(0.711 0.179 44.186);
--destructive-foreground: oklch(0 0 0);
--ring: oklch(0.286 0.019 114.536);
--chart-1: oklch(0.286 0.019 114.536);
--chart-2: oklch(0.254 0.02 291.777);
--chart-3: oklch(0.254 0.02 291.777);
--chart-4: oklch(0.282 0.023 291.696);
--chart-5: oklch(0.29 0.023 114.769);
}