Jubilant is a shadcn/ui theme built around a vivid deep purple primary color (#7e0580) with muted light purple accents (#e2dae2). The light mode uses a neutral background (#fdfcfd). Dark mode keeps the vivid deep purple primary (#7e0580) on a neutral background (#030203).
| Token | Light | Dark |
|---|---|---|
| Background | #fdfcfdwhite | #030203black |
| Foreground | #140514black | #fbf9fbsnow |
| Card | #fdfcfdwhite | #030203black |
| Card foreground | #140514black | #fbf9fbsnow |
| Popover | #fdfcfdwhite | #030203black |
| Popover foreground | #140514black | #fbf9fbsnow |
| Primary | #7e0580purple | #7e0580purple |
| Primary foreground | #fbbafdlavender | #fbbafdlavender |
| Secondary | #e2dae2gainsboro | #282429darkslategray |
| Secondary foreground | #4e3c4edarkslategray | #c3bbc3silver |
| Muted | #f3edf3whitesmoke | #120c12black |
| Muted foreground | #695d69dimgray | #a196a2darkgray |
| Accent | #e2dae2gainsboro | #282429darkslategray |
| Accent foreground | #4e3c4edarkslategray | #c3bbc3silver |
| Destructive | #e21a03red | #e21a03red |
| Destructive foreground | #ffffffwhite | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #7e0580purple | #7e0580purple |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.30:1 | AAA |
| Text on card | 19.30:1 | AAA |
| Primary button | 6.10:1 | AA |
| Secondary button | 7.36:1 | AAA |
| Muted text | 5.38:1 | AA |
| Accent | 7.36:1 | AAA |
| Destructive | 4.79:1 | AA |
| Text on background | 19.78:1 | AAA |
| Text on card | 19.78:1 | AAA |
| Primary button | 6.10:1 | AA |
| Secondary button | 8.15:1 | AAA |
| Muted text | 6.79:1 | AA |
| Accent | 8.15:1 | AAA |
| Destructive | 4.79:1 | AA |
Paste this into your globals.css to use Jubilant in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.992 0.003 325.118);
--foreground: oklch(0.151 0.04 326.759);
--muted: oklch(0.951 0.01 325.176);
--muted-foreground: oklch(0.495 0.024 325.426);
--popover: oklch(0.992 0.003 325.118);
--popover-foreground: oklch(0.151 0.04 326.759);
--card: oklch(0.992 0.003 325.118);
--card-foreground: oklch(0.151 0.04 326.759);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.419 0.19 327.482);
--primary-foreground: oklch(0.87 0.114 325.954);
--secondary: oklch(0.896 0.015 325.214);
--secondary-foreground: oklch(0.382 0.038 325.758);
--accent: oklch(0.896 0.015 325.214);
--accent-foreground: oklch(0.382 0.038 325.758);
--destructive: oklch(0.58 0.229 30.331);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.419 0.19 327.482);
--chart-1: oklch(0.419 0.19 327.482);
--chart-2: oklch(0.896 0.015 325.214);
--chart-3: oklch(0.896 0.015 325.214);
--chart-4: oklch(0.92 0.011 325.185);
--chart-5: oklch(0.423 0.193 327.486);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.088 0.012 326.071);
--foreground: oklch(0.984 0.004 325.127);
--muted: oklch(0.166 0.016 325.737);
--muted-foreground: oklch(0.686 0.022 325.319);
--popover: oklch(0.088 0.012 326.071);
--popover-foreground: oklch(0.984 0.004 325.127);
--card: oklch(0.088 0.012 326.071);
--card-foreground: oklch(0.984 0.004 325.127);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.419 0.19 327.482);
--primary-foreground: oklch(0.87 0.114 325.954);
--secondary: oklch(0.267 0.011 325.373);
--secondary-foreground: oklch(0.802 0.013 325.217);
--accent: oklch(0.267 0.011 325.373);
--accent-foreground: oklch(0.802 0.013 325.217);
--destructive: oklch(0.58 0.229 30.331);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.419 0.19 327.482);
--chart-1: oklch(0.419 0.19 327.482);
--chart-2: oklch(0.267 0.011 325.373);
--chart-3: oklch(0.267 0.011 325.373);
--chart-4: oklch(0.298 0.012 325.386);
--chart-5: oklch(0.423 0.193 327.486);
}