Celebrated is a shadcn/ui theme built around a vivid violet primary color (#3400b8) with vivid purple accents (#9000b8). The light mode uses a neutral background (#fcfbfe). Dark mode keeps the vivid violet primary (#3400b8) on a violet-tinted background (#06050b).
| Token | Light | Dark |
|---|---|---|
| Background | #fcfbfewhite | #06050bblack |
| Foreground | #06040cblack | #ffffffwhite |
| Card | #fcfbfewhite | #06050bblack |
| Card foreground | #06040cblack | #ffffffwhite |
| Popover | #fcfbfewhite | #06050bblack |
| Popover foreground | #06040cblack | #ffffffwhite |
| Primary | #3400b8mediumblue | #3400b8mediumblue |
| Primary foreground | #f0ebfflavender | #f0ebfflavender |
| Secondary | #0028b8mediumblue | #0028b8mediumblue |
| Secondary foreground | #ebefffaliceblue | #ebefffaliceblue |
| Muted | #e7e9eelavender | #111218black |
| Muted foreground | #555862dimgray | #9da0aadarkgray |
| Accent | #9000b8darkviolet | #9000b8darkviolet |
| Accent foreground | #fbebfflavenderblush | #fbebfflavenderblush |
| Destructive | #a0210dfirebrick | #d92c12firebrick |
| Destructive foreground | #fde6e3mistyrose | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #3400b8mediumblue | #3400b8mediumblue |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.75:1 | AAA |
| Text on card | 19.75:1 | AAA |
| Primary button | 9.82:1 | AAA |
| Secondary button | 9.21:1 | AAA |
| Muted text | 5.83:1 | AA |
| Accent | 6.41:1 | AA |
| Destructive | 6.46:1 | AA |
| Text on background | 20.32:1 | AAA |
| Text on card | 20.32:1 | AAA |
| Primary button | 9.82:1 | AAA |
| Secondary button | 9.21:1 | AAA |
| Muted text | 7.14:1 | AAA |
| Accent | 6.41:1 | AA |
| Destructive | 4.85:1 | AA |
Paste this into your globals.css to use Celebrated in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.99 0.004 299.236);
--foreground: oklch(0.115 0.023 299.205);
--muted: oklch(0.933 0.007 273.774);
--muted-foreground: oklch(0.462 0.017 273.426);
--popover: oklch(0.99 0.004 299.236);
--popover-foreground: oklch(0.115 0.023 299.205);
--card: oklch(0.99 0.004 299.236);
--card-foreground: oklch(0.115 0.023 299.205);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.377 0.233 277.182);
--primary-foreground: oklch(0.949 0.028 298.8);
--secondary: oklch(0.387 0.222 263.963);
--secondary-foreground: oklch(0.954 0.022 273.593);
--accent: oklch(0.487 0.239 315.565);
--accent-foreground: oklch(0.957 0.032 318.879);
--destructive: oklch(0.461 0.166 31.559);
--destructive-foreground: oklch(0.943 0.025 28.089);
--ring: oklch(0.377 0.233 277.182);
--chart-1: oklch(0.377 0.233 277.182);
--chart-2: oklch(0.387 0.222 263.963);
--chart-3: oklch(0.487 0.239 315.565);
--chart-4: oklch(0.409 0.237 263.989);
--chart-5: oklch(0.378 0.237 276.419);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.12 0.016 299.311);
--foreground: oklch(1 0 180);
--muted: oklch(0.185 0.011 273.077);
--muted-foreground: oklch(0.705 0.015 273.616);
--popover: oklch(0.12 0.016 299.311);
--popover-foreground: oklch(1 0 180);
--card: oklch(0.12 0.016 299.311);
--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.377 0.233 277.182);
--primary-foreground: oklch(0.949 0.028 298.8);
--secondary: oklch(0.387 0.222 263.963);
--secondary-foreground: oklch(0.954 0.022 273.593);
--accent: oklch(0.487 0.239 315.565);
--accent-foreground: oklch(0.957 0.032 318.879);
--destructive: oklch(0.574 0.211 31.471);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.377 0.233 277.182);
--chart-1: oklch(0.377 0.233 277.182);
--chart-2: oklch(0.387 0.222 263.963);
--chart-3: oklch(0.487 0.239 315.565);
--chart-4: oklch(0.409 0.237 263.989);
--chart-5: oklch(0.378 0.237 276.419);
}