Associate is a shadcn/ui theme built around a vivid deep green primary color (#072801) with vivid deep purple accents (#210128). The light mode uses a neutral background (#f8fdf7). Dark mode keeps the vivid deep green primary (#072801) on a neutral background (#040703).
| Token | Light | Dark |
|---|---|---|
| Background | #f8fdf7mintcream | #040703black |
| Foreground | #061103black | #ffffffwhite |
| Card | #f8fdf7mintcream | #040703black |
| Card foreground | #061103black | #ffffffwhite |
| Popover | #f8fdf7mintcream | #040703black |
| Popover foreground | #061103black | #ffffffwhite |
| Primary | #072801black | #072801black |
| Primary foreground | #2cf005lime | #2cf005lime |
| Secondary | #210128black | #210128black |
| Secondary foreground | #e25ffcviolet | #e25ffcviolet |
| Muted | #ece9edlavender | #161216black |
| Muted foreground | #4c414edarkslategray | #bcb1besilver |
| Accent | #210128black | #210128black |
| Accent foreground | #e25ffcviolet | #e25ffcviolet |
| Destructive | #782908saddlebrown | #f16427chocolate |
| Destructive foreground | #facbb7peachpuff | #000000black |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #072801black | #072801black |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 18.68:1 | AAA |
| Text on card | 18.68:1 | AAA |
| Primary button | 10.33:1 | AAA |
| Secondary button | 6.61:1 | AA |
| Muted text | 8.00:1 | AAA |
| Accent | 6.61:1 | AA |
| Destructive | 6.73:1 | AA |
| Text on background | 20.26:1 | AAA |
| Text on card | 20.26:1 | AAA |
| Primary button | 10.33:1 | AAA |
| Secondary button | 6.61:1 | AA |
| Muted text | 8.96:1 | AAA |
| Accent | 6.61:1 | AA |
| Destructive | 6.59:1 | AA |
Paste this into your globals.css to use Associate in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.988 0.009 140.518);
--foreground: oklch(0.161 0.035 138.936);
--muted: oklch(0.936 0.007 320.542);
--muted-foreground: oklch(0.391 0.026 320.629);
--popover: oklch(0.988 0.009 140.518);
--popover-foreground: oklch(0.161 0.035 138.936);
--card: oklch(0.988 0.009 140.518);
--card-foreground: oklch(0.161 0.035 138.936);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.243 0.076 139.739);
--primary-foreground: oklch(0.831 0.277 141.698);
--secondary: oklch(0.183 0.084 320.782);
--secondary-foreground: oklch(0.71 0.243 320.61);
--accent: oklch(0.183 0.084 320.782);
--accent-foreground: oklch(0.71 0.243 320.61);
--destructive: oklch(0.395 0.117 39.922);
--destructive-foreground: oklch(0.879 0.06 44.417);
--ring: oklch(0.243 0.076 139.739);
--chart-1: oklch(0.243 0.076 139.739);
--chart-2: oklch(0.183 0.084 320.782);
--chart-3: oklch(0.183 0.084 320.782);
--chart-4: oklch(0.22 0.103 320.222);
--chart-5: oklch(0.245 0.078 139.696);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.12 0.013 139.505);
--foreground: oklch(1 0 180);
--muted: oklch(0.19 0.01 320.609);
--muted-foreground: oklch(0.774 0.022 320.574);
--popover: oklch(0.12 0.013 139.505);
--popover-foreground: oklch(1 0 180);
--card: oklch(0.12 0.013 139.505);
--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.243 0.076 139.739);
--primary-foreground: oklch(0.831 0.277 141.698);
--secondary: oklch(0.183 0.084 320.782);
--secondary-foreground: oklch(0.71 0.243 320.61);
--accent: oklch(0.183 0.084 320.782);
--accent-foreground: oklch(0.71 0.243 320.61);
--destructive: oklch(0.674 0.188 40.887);
--destructive-foreground: oklch(0 0 0);
--ring: oklch(0.243 0.076 139.739);
--chart-1: oklch(0.243 0.076 139.739);
--chart-2: oklch(0.183 0.084 320.782);
--chart-3: oklch(0.183 0.084 320.782);
--chart-4: oklch(0.22 0.103 320.222);
--chart-5: oklch(0.245 0.078 139.696);
}