Happening is a shadcn/ui theme built around a vivid light violet primary color (#e2d4fc) with vivid light green accents (#eefcd4). The light mode uses a neutral background (#f9f7fd). Dark mode keeps the vivid light violet primary (#e2d4fc) on a neutral background (#040208).
| Token | Light | Dark |
|---|---|---|
| Background | #f9f7fdghostwhite | #040208black |
| Foreground | #000000black | #f7f6f9whitesmoke |
| Card | #f9f7fdghostwhite | #040208black |
| Card foreground | #000000black | #f7f6f9whitesmoke |
| Popover | #f9f7fdghostwhite | #040208black |
| Popover foreground | #000000black | #f7f6f9whitesmoke |
| Primary | #e2d4fclavender | #e2d4fclavender |
| Primary foreground | #3a0995indigo | #3a0995indigo |
| Secondary | #eefcd4lightgoldenrodyellow | #eefcd4lightgoldenrodyellow |
| Secondary foreground | #233503darkgreen | #233503darkgreen |
| Muted | #f1f4ecwhitesmoke | #11130bblack |
| Muted foreground | #545a49darkolivegreen | #b0b6a5darkgray |
| Accent | #eefcd4lightgoldenrodyellow | #eefcd4lightgoldenrodyellow |
| Accent foreground | #233503darkgreen | #233503darkgreen |
| Destructive | #77320dsaddlebrown | #e97435tomato |
| Destructive foreground | #f8d3bfpeachpuff | #000000black |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #e2d4fclavender | #e2d4fclavender |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.74:1 | AAA |
| Text on card | 19.74:1 | AAA |
| Primary button | 9.10:1 | AAA |
| Secondary button | 12.35:1 | AAA |
| Muted text | 6.42:1 | AA |
| Accent | 12.35:1 | AAA |
| Destructive | 6.67:1 | AA |
| Text on background | 19.14:1 | AAA |
| Text on card | 19.14:1 | AAA |
| Primary button | 9.10:1 | AAA |
| Secondary button | 12.35:1 | AAA |
| Muted text | 8.96:1 | AAA |
| Accent | 12.35:1 | AAA |
| Destructive | 6.99:1 | AA |
Paste this into your globals.css to use Happening in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.979 0.008 302.083);
--foreground: oklch(0 0 0);
--muted: oklch(0.962 0.011 122.398);
--muted-foreground: oklch(0.457 0.027 123.147);
--popover: oklch(0.979 0.008 302.083);
--popover-foreground: oklch(0 0 0);
--card: oklch(0.979 0.008 302.083);
--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.894 0.057 301.215);
--primary-foreground: oklch(0.344 0.192 285.953);
--secondary: oklch(0.971 0.055 123.113);
--secondary-foreground: oklch(0.302 0.075 127.629);
--accent: oklch(0.971 0.055 123.113);
--accent-foreground: oklch(0.302 0.075 127.629);
--destructive: oklch(0.408 0.107 44.616);
--destructive-foreground: oklch(0.892 0.05 49.994);
--ring: oklch(0.894 0.057 301.215);
--chart-1: oklch(0.894 0.057 301.215);
--chart-2: oklch(0.971 0.055 123.113);
--chart-3: oklch(0.971 0.055 123.113);
--chart-4: oklch(0.98 0.037 122.804);
--chart-5: oklch(0.892 0.059 301.179);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.1 0.022 302.899);
--foreground: oklch(0.975 0.003 302.159);
--muted: oklch(0.182 0.017 123.715);
--muted-foreground: oklch(0.766 0.024 122.701);
--popover: oklch(0.1 0.022 302.899);
--popover-foreground: oklch(0.975 0.003 302.159);
--card: oklch(0.1 0.022 302.899);
--card-foreground: oklch(0.975 0.003 302.159);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.894 0.057 301.215);
--primary-foreground: oklch(0.344 0.192 285.953);
--secondary: oklch(0.971 0.055 123.113);
--secondary-foreground: oklch(0.302 0.075 127.629);
--accent: oklch(0.971 0.055 123.113);
--accent-foreground: oklch(0.302 0.075 127.629);
--destructive: oklch(0.685 0.163 46.075);
--destructive-foreground: oklch(0 0 0);
--ring: oklch(0.894 0.057 301.215);
--chart-1: oklch(0.894 0.057 301.215);
--chart-2: oklch(0.971 0.055 123.113);
--chart-3: oklch(0.971 0.055 123.113);
--chart-4: oklch(0.98 0.037 122.804);
--chart-5: oklch(0.892 0.059 301.179);
}