Contest is a shadcn/ui theme built around a near-black primary color (#09050b) with near-black accents (#070b05). The light mode uses a neutral background (#ffffff). Dark mode keeps the near-black primary (#09050b) on a neutral background (#030104).
| Token | Light | Dark |
|---|---|---|
| Background | #ffffffwhite | #030104black |
| Foreground | #060208black | #f8f5fawhitesmoke |
| Card | #ffffffwhite | #030104black |
| Card foreground | #060208black | #f8f5fawhitesmoke |
| Popover | #ffffffwhite | #030104black |
| Popover foreground | #060208black | #f8f5fawhitesmoke |
| Primary | #09050bblack | #09050bblack |
| Primary foreground | #ac7cc5mediumpurple | #ac7cc5mediumpurple |
| Secondary | #070b05black | #070b05black |
| Secondary foreground | #96c57cdarkseagreen | #96c57cdarkseagreen |
| Muted | #f2f5f0whitesmoke | #0c0f0ablack |
| Muted foreground | #5f7156dimgray | #97a98edarkseagreen |
| Accent | #070b05black | #070b05black |
| Accent foreground | #96c57cdarkseagreen | #96c57cdarkseagreen |
| Destructive | #a9400fsaddlebrown | #dd5313chocolate |
| Destructive foreground | #ffffffwhite | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #09050bblack | #09050bblack |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 20.58:1 | AAA |
| Text on card | 20.58:1 | AAA |
| Primary button | 6.21:1 | AA |
| Secondary button | 10.00:1 | AAA |
| Muted text | 4.77:1 | AA |
| Accent | 10.00:1 | AAA |
| Destructive | 6.15:1 | AA |
| Text on background | 19.23:1 | AAA |
| Text on card | 19.23:1 | AAA |
| Primary button | 6.21:1 | AA |
| Secondary button | 10.00:1 | AAA |
| Muted text | 7.69:1 | AAA |
| Accent | 10.00:1 | AAA |
| Destructive | 3.95:1 | AA Large |
Paste this into your globals.css to use Contest in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(1 0 180);
--foreground: oklch(0.103 0.026 316.367);
--muted: oklch(0.965 0.007 134.262);
--muted-foreground: oklch(0.527 0.048 134.766);
--popover: oklch(1 0 180);
--popover-foreground: oklch(0.103 0.026 316.367);
--card: oklch(1 0 180);
--card-foreground: oklch(0.103 0.026 316.367);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.124 0.018 315.462);
--primary-foreground: oklch(0.66 0.118 313.19);
--secondary: oklch(0.14 0.017 133.13);
--secondary-foreground: oklch(0.773 0.112 135.184);
--accent: oklch(0.14 0.017 133.13);
--accent-foreground: oklch(0.773 0.112 135.184);
--destructive: oklch(0.51 0.149 40.886);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.124 0.018 315.462);
--chart-1: oklch(0.124 0.018 315.462);
--chart-2: oklch(0.14 0.017 133.13);
--chart-3: oklch(0.14 0.017 133.13);
--chart-4: oklch(0.185 0.026 135.13);
--chart-5: oklch(0.123 0.019 315.537);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.082 0.019 316.207);
--foreground: oklch(0.974 0.008 314.177);
--muted: oklch(0.164 0.011 134.62);
--muted-foreground: oklch(0.714 0.044 134.583);
--popover: oklch(0.082 0.019 316.207);
--popover-foreground: oklch(0.974 0.008 314.177);
--card: oklch(0.082 0.019 316.207);
--card-foreground: oklch(0.974 0.008 314.177);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.124 0.018 315.462);
--primary-foreground: oklch(0.66 0.118 313.19);
--secondary: oklch(0.14 0.017 133.13);
--secondary-foreground: oklch(0.773 0.112 135.184);
--accent: oklch(0.14 0.017 133.13);
--accent-foreground: oklch(0.773 0.112 135.184);
--destructive: oklch(0.619 0.185 40.474);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.124 0.018 315.462);
--chart-1: oklch(0.124 0.018 315.462);
--chart-2: oklch(0.14 0.017 133.13);
--chart-3: oklch(0.14 0.017 133.13);
--chart-4: oklch(0.185 0.026 135.13);
--chart-5: oklch(0.123 0.019 315.537);
}