Participant is a shadcn/ui theme built around a muted purple primary color (#544659) with neutral gray accents (#dedede). The light mode uses a neutral background (#ffffff). Dark mode keeps the muted purple primary (#544659) on a neutral background (#070208).
| Token | Light | Dark |
|---|---|---|
| Background | #ffffffwhite | #070208black |
| Foreground | #040104black | #ffffffwhite |
| Card | #fcfcfcsnow | #0a030cblack |
| Card foreground | #000000black | #ffffffwhite |
| Popover | #ffffffwhite | #070208black |
| Popover foreground | #040104black | #ffffffwhite |
| Primary | #544659darkslategray | #544659darkslategray |
| Primary foreground | #eae5eblavender | #eae5eblavender |
| Secondary | #dededegainsboro | #362e38darkslategray |
| Secondary foreground | #454545darkslategray | #cfc7d1lightgrey |
| Muted | #f1dfdfmistyrose | #1c0e20black |
| Muted foreground | #615151dimgray | #aa9eaedarkgray |
| Accent | #dededegainsboro | #362e38darkslategray |
| Accent foreground | #454545darkslategray | #cfc7d1lightgrey |
| Destructive | #660a00maroon | #ff270forangered |
| Destructive foreground | #ffa399lightsalmon | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #544659darkslategray | #544659darkslategray |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 20.76:1 | AAA |
| Text on card | 20.54:1 | AAA |
| Primary button | 7.07:1 | AAA |
| Secondary button | 7.11:1 | AAA |
| Muted text | 5.84:1 | AA |
| Accent | 7.11:1 | AAA |
| Destructive | 6.80:1 | AA |
| Text on background | 20.56:1 | AAA |
| Text on card | 20.34:1 | AAA |
| Primary button | 7.07:1 | AAA |
| Secondary button | 7.92:1 | AAA |
| Muted text | 7.24:1 | AAA |
| Accent | 7.92:1 | AAA |
| Destructive | 3.78:1 | AA Large |
Paste this into your globals.css to use Participant in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(1 0 180);
--foreground: oklch(0.081 0.026 321.546);
--muted: oklch(0.919 0.019 17.507);
--muted-foreground: oklch(0.452 0.021 17.974);
--popover: oklch(1 0 180);
--popover-foreground: oklch(0.081 0.026 321.546);
--card: oklch(0.992 0 161.565);
--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.415 0.036 318.855);
--primary-foreground: oklch(0.928 0.009 318.887);
--secondary: oklch(0.9 0 188.746);
--secondary-foreground: oklch(0.39 0 165.964);
--accent: oklch(0.9 0 188.746);
--accent-foreground: oklch(0.39 0 165.964);
--destructive: oklch(0.327 0.125 31.6);
--destructive-foreground: oklch(0.805 0.111 26.679);
--ring: oklch(0.415 0.036 318.855);
--chart-1: oklch(0.415 0.036 318.855);
--chart-2: oklch(0.9 0 188.746);
--chart-3: oklch(0.9 0 188.746);
--chart-4: oklch(0.923 0 153.435);
--chart-5: oklch(0.412 0.045 318.842);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.105 0.026 320.937);
--foreground: oklch(1 0 180);
--muted: oklch(0.193 0.039 318.738);
--muted-foreground: oklch(0.714 0.027 318.877);
--popover: oklch(0.105 0.026 320.937);
--popover-foreground: oklch(1 0 180);
--card: oklch(0.12 0.03 320.559);
--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.415 0.036 318.855);
--primary-foreground: oklch(0.928 0.009 318.887);
--secondary: oklch(0.314 0.019 318.868);
--secondary-foreground: oklch(0.839 0.015 318.884);
--accent: oklch(0.314 0.019 318.868);
--accent-foreground: oklch(0.839 0.015 318.884);
--destructive: oklch(0.64 0.246 30.435);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.415 0.036 318.855);
--chart-1: oklch(0.415 0.036 318.855);
--chart-2: oklch(0.314 0.019 318.868);
--chart-3: oklch(0.314 0.019 318.868);
--chart-4: oklch(0.343 0.021 318.868);
--chart-5: oklch(0.412 0.045 318.842);
}