Contributor is a shadcn/ui theme built around an orange primary color (#daa252) with muted orange accents (#c3beb7). The light mode uses a neutral background (#fdfaf7). Dark mode keeps the orange primary (#daa252) on an orange-tinted background (#0c0804).
| Token | Light | Dark |
|---|---|---|
| Background | #fdfaf7snow | #0c0804black |
| Foreground | #040301black | #f9f8f5whitesmoke |
| Card | #fcf8f2floralwhite | #100b05black |
| Card foreground | #000000black | #fbfaf8snow |
| Popover | #fcf8f2floralwhite | #100b05black |
| Popover foreground | #000000black | #fbfaf8snow |
| Primary | #daa252sandybrown | #daa252sandybrown |
| Primary foreground | #000000black | #000000black |
| Secondary | #cecccalightgrey | #3c352adarkslategray |
| Secondary foreground | #353331darkslategray | #d5cec3lightgrey |
| Muted | #f2eee9linen | #16130dblack |
| Muted foreground | #494641darkslategray | #bebbb6silver |
| Accent | #c3beb7silver | #5c4d38darkolivegreen |
| Accent foreground | #272420black | #eae4dcgainsboro |
| Destructive | #75320bsaddlebrown | #ee8244coral |
| Destructive foreground | #f8d0b9peachpuff | #000000black |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #daa252sandybrown | #daa252sandybrown |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.88:1 | AAA |
| Text on card | 19.88:1 | AAA |
| Primary button | 9.26:1 | AAA |
| Secondary button | 7.87:1 | AAA |
| Muted text | 8.11:1 | AAA |
| Accent | 8.33:1 | AAA |
| Destructive | 6.66:1 | AA |
| Text on background | 18.77:1 | AAA |
| Text on card | 18.78:1 | AAA |
| Primary button | 9.26:1 | AAA |
| Secondary button | 7.78:1 | AAA |
| Muted text | 9.69:1 | AAA |
| Accent | 6.47:1 | AA |
| Destructive | 7.92:1 | AAA |
Paste this into your globals.css to use Contributor in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.987 0.006 76.625);
--foreground: oklch(0.097 0.013 85.039);
--muted: oklch(0.95 0.008 76.613);
--muted-foreground: oklch(0.394 0.009 76.527);
--popover: oklch(0.981 0.009 76.61);
--popover-foreground: oklch(0 0 0);
--card: oklch(0.981 0.009 76.61);
--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.75 0.117 73.495);
--primary-foreground: oklch(0 0 0);
--secondary: oklch(0.847 0.004 76.632);
--secondary-foreground: oklch(0.323 0.005 76.579);
--accent: oklch(0.803 0.011 76.584);
--accent-foreground: oklch(0.263 0.008 76.48);
--destructive: oklch(0.402 0.106 45.616);
--destructive-foreground: oklch(0.887 0.055 51.787);
--ring: oklch(0.75 0.117 73.495);
--chart-1: oklch(0.75 0.117 73.495);
--chart-2: oklch(0.847 0.004 76.632);
--chart-3: oklch(0.803 0.011 76.584);
--chart-4: oklch(0.87 0.003 76.635);
--chart-5: oklch(0.754 0.122 73.205);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.139 0.015 82.879);
--foreground: oklch(0.979 0.004 76.634);
--muted: oklch(0.188 0.012 76.162);
--muted-foreground: oklch(0.793 0.008 76.606);
--popover: oklch(0.153 0.017 79.577);
--popover-foreground: oklch(0.986 0.003 76.64);
--card: oklch(0.153 0.017 79.577);
--card-foreground: oklch(0.986 0.003 76.64);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.75 0.117 73.495);
--primary-foreground: oklch(0 0 0);
--secondary: oklch(0.332 0.021 76.155);
--secondary-foreground: oklch(0.853 0.017 76.549);
--accent: oklch(0.429 0.038 75.784);
--accent-foreground: oklch(0.921 0.012 76.587);
--destructive: oklch(0.716 0.152 48.547);
--destructive-foreground: oklch(0 0 0);
--ring: oklch(0.75 0.117 73.495);
--chart-1: oklch(0.75 0.117 73.495);
--chart-2: oklch(0.332 0.021 76.155);
--chart-3: oklch(0.429 0.038 75.784);
--chart-4: oklch(0.363 0.024 76.134);
--chart-5: oklch(0.754 0.122 73.205);
}