Enjoyment is a shadcn/ui theme built around a vivid light indigo primary color (#a09bf3) with vivid light green accents (#9bf3a0). The light mode uses a neutral background (#fbfbfe). Dark mode keeps the vivid light indigo primary (#a09bf3) on a neutral background (#030307).
| Token | Light | Dark |
|---|---|---|
| Background | #fbfbfeghostwhite | #030307black |
| Foreground | #010104black | #ffffffwhite |
| Card | #f7f7fdghostwhite | #05040bblack |
| Card foreground | #000000black | #ffffffwhite |
| Popover | #fbfbfeghostwhite | #030307black |
| Popover foreground | #010104black | #ffffffwhite |
| Primary | #a09bf3lightsteelblue | #a09bf3lightsteelblue |
| Primary foreground | #0e0a52midnightblue | #0e0a52midnightblue |
| Secondary | #f3a09blightsalmon | #f3a09blightsalmon |
| Secondary foreground | #520e0amaroon | #520e0amaroon |
| Muted | #eacfcdlightgrey | #321715black |
| Muted foreground | #656261dimgray | #9e9a9adarkgray |
| Accent | #9bf3a0palegreen | #9bf3a0palegreen |
| Accent foreground | #0a520edarkgreen | #0a520edarkgreen |
| Destructive | #6e2802maroon | #fb7832tomato |
| Destructive foreground | #fdc4a5navajowhite | #000000black |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #a09bf3lightsteelblue | #a09bf3lightsteelblue |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 20.16:1 | AAA |
| Text on card | 19.63:1 | AAA |
| Primary button | 7.14:1 | AAA |
| Secondary button | 7.25:1 | AAA |
| Muted text | 4.11:1 | AA Large |
| Accent | 7.07:1 | AAA |
| Destructive | 6.92:1 | AA |
| Text on background | 20.59:1 | AAA |
| Text on card | 20.40:1 | AAA |
| Primary button | 7.14:1 | AAA |
| Secondary button | 7.25:1 | AAA |
| Muted text | 5.93:1 | AA |
| Accent | 7.07:1 | AAA |
| Destructive | 7.84:1 | AAA |
Paste this into your globals.css to use Enjoyment in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.989 0.004 289.397);
--foreground: oklch(0.077 0.015 286.485);
--muted: oklch(0.876 0.03 22.628);
--muted-foreground: oklch(0.499 0.005 22.322);
--popover: oklch(0.989 0.004 289.397);
--popover-foreground: oklch(0.077 0.015 286.485);
--card: oklch(0.977 0.009 289.312);
--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.728 0.127 285.836);
--primary-foreground: oklch(0.222 0.122 273.048);
--secondary: oklch(0.788 0.1 24.053);
--secondary-foreground: oklch(0.29 0.1 28.938);
--accent: oklch(0.888 0.141 145.797);
--accent-foreground: oklch(0.383 0.119 143.449);
--destructive: oklch(0.375 0.109 43.086);
--destructive-foreground: oklch(0.864 0.078 49.6);
--ring: oklch(0.728 0.127 285.836);
--chart-1: oklch(0.728 0.127 285.836);
--chart-2: oklch(0.788 0.1 24.053);
--chart-3: oklch(0.888 0.141 145.797);
--chart-4: oklch(0.815 0.085 23.665);
--chart-5: oklch(0.725 0.132 285.656);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.1 0.017 287.061);
--foreground: oklch(1 0 180);
--muted: oklch(0.244 0.043 25.034);
--muted-foreground: oklch(0.689 0.004 22.286);
--popover: oklch(0.1 0.017 287.061);
--popover-foreground: oklch(1 0 180);
--card: oklch(0.115 0.019 287.035);
--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.728 0.127 285.836);
--primary-foreground: oklch(0.222 0.122 273.048);
--secondary: oklch(0.788 0.1 24.053);
--secondary-foreground: oklch(0.29 0.1 28.938);
--accent: oklch(0.888 0.141 145.797);
--accent-foreground: oklch(0.383 0.119 143.449);
--destructive: oklch(0.717 0.178 45.478);
--destructive-foreground: oklch(0 0 0);
--ring: oklch(0.728 0.127 285.836);
--chart-1: oklch(0.728 0.127 285.836);
--chart-2: oklch(0.788 0.1 24.053);
--chart-3: oklch(0.888 0.141 145.797);
--chart-4: oklch(0.815 0.085 23.665);
--chart-5: oklch(0.725 0.132 285.656);
}