Participation is a shadcn/ui theme built around a deep violet primary color (#2c0e53) with deep green accents (#35530e). The light mode uses a neutral background (#ffffff). Dark mode keeps the deep violet primary (#2c0e53) on a neutral background (#000000).
| Token | Light | Dark |
|---|---|---|
| Background | #ffffffwhite | #000000black |
| Foreground | #07030dblack | #faf9fbghostwhite |
| Card | #ffffffwhite | #000000black |
| Card foreground | #07030dblack | #faf9fbghostwhite |
| Popover | #ffffffwhite | #000000black |
| Popover foreground | #07030dblack | #faf9fbghostwhite |
| Primary | #2c0e53midnightblue | #2c0e53midnightblue |
| Primary foreground | #c4a3f0plum | #c4a3f0plum |
| Secondary | #35530edarkolivegreen | #35530edarkolivegreen |
| Secondary foreground | #cff0a3palegoldenrod | #cff0a3palegoldenrod |
| Muted | #e1e2dfgainsboro | #1f201dblack |
| Muted foreground | #454643darkslategray | #babcb9silver |
| Accent | #35530edarkolivegreen | #35530edarkolivegreen |
| Accent foreground | #cff0a3palegoldenrod | #cff0a3palegoldenrod |
| Destructive | #c54816chocolate | #e75a23chocolate |
| Destructive foreground | #ffffffwhite | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #2c0e53midnightblue | #2c0e53midnightblue |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 20.43:1 | AAA |
| Text on card | 20.43:1 | AAA |
| Primary button | 7.61:1 | AAA |
| Secondary button | 6.91:1 | AA |
| Muted text | 7.30:1 | AAA |
| Accent | 6.91:1 | AA |
| Destructive | 4.86:1 | AA |
| Text on background | 20.00:1 | AAA |
| Text on card | 20.00:1 | AAA |
| Primary button | 7.61:1 | AAA |
| Secondary button | 6.91:1 | AA |
| Muted text | 8.53:1 | AAA |
| Accent | 6.91:1 | AA |
| Destructive | 3.57:1 | AA Large |
Paste this into your globals.css to use Participation in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(1 0 180);
--foreground: oklch(0.112 0.03 306.9);
--muted: oklch(0.911 0.005 125.816);
--muted-foreground: oklch(0.393 0.005 125.904);
--popover: oklch(1 0 180);
--popover-foreground: oklch(0.112 0.03 306.9);
--card: oklch(1 0 180);
--card-foreground: oklch(0.112 0.03 306.9);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.259 0.116 297.045);
--primary-foreground: oklch(0.773 0.113 303.746);
--secondary: oklch(0.405 0.101 130.811);
--secondary-foreground: oklch(0.913 0.106 127.412);
--accent: oklch(0.405 0.101 130.811);
--accent-foreground: oklch(0.913 0.106 127.412);
--destructive: oklch(0.567 0.17 38.978);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.259 0.116 297.045);
--chart-1: oklch(0.259 0.116 297.045);
--chart-2: oklch(0.405 0.101 130.811);
--chart-3: oklch(0.405 0.101 130.811);
--chart-4: oklch(0.448 0.113 130.971);
--chart-5: oklch(0.258 0.12 296.498);
}
.dark {
--radius: 0.5rem;
--background: oklch(0 0 0);
--foreground: oklch(0.982 0.004 305.689);
--muted: oklch(0.242 0.007 126.142);
--muted-foreground: oklch(0.792 0.004 125.808);
--popover: oklch(0 0 0);
--popover-foreground: oklch(0.982 0.004 305.689);
--card: oklch(0 0 0);
--card-foreground: oklch(0.982 0.004 305.689);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.259 0.116 297.045);
--primary-foreground: oklch(0.773 0.113 303.746);
--secondary: oklch(0.405 0.101 130.811);
--secondary-foreground: oklch(0.913 0.106 127.412);
--accent: oklch(0.405 0.101 130.811);
--accent-foreground: oklch(0.913 0.106 127.412);
--destructive: oklch(0.644 0.186 39.552);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.259 0.116 297.045);
--chart-1: oklch(0.259 0.116 297.045);
--chart-2: oklch(0.405 0.101 130.811);
--chart-3: oklch(0.405 0.101 130.811);
--chart-4: oklch(0.448 0.113 130.971);
--chart-5: oklch(0.258 0.12 296.498);
}