Campaign is a shadcn/ui theme built around a deep teal primary color (#235741) with deep orange accents (#574123). The light mode uses a neutral background (#fbfefd). Dark mode keeps the deep teal primary (#235741) on a neutral background (#000000).
| Token | Light | Dark |
|---|---|---|
| Background | #fbfefdwhite | #000000black |
| Foreground | #000000black | #f8fbfamintcream |
| Card | #fbfefdwhite | #000000black |
| Card foreground | #000000black | #f8fbfamintcream |
| Popover | #fbfefdwhite | #000000black |
| Popover foreground | #000000black | #f8fbfamintcream |
| Primary | #235741darkslategray | #235741darkslategray |
| Primary foreground | #c5e7d9lightgrey | #c5e7d9lightgrey |
| Secondary | #412357darkslategray | #412357darkslategray |
| Secondary foreground | #d9c5e7thistle | #d9c5e7thistle |
| Muted | #e9e1eflavender | #18101eblack |
| Muted foreground | #4c3f55darkslategray | #b7aac0silver |
| Accent | #574123darkolivegreen | #574123darkolivegreen |
| Accent foreground | #e7d9c5wheat | #e7d9c5wheat |
| Destructive | #a70101darkred | #e90101red |
| Destructive foreground | #ffdbdbmistyrose | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #235741darkslategray | #235741darkslategray |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 20.66:1 | AAA |
| Text on card | 20.66:1 | AAA |
| Primary button | 6.29:1 | AA |
| Secondary button | 8.12:1 | AAA |
| Muted text | 7.66:1 | AAA |
| Accent | 6.88:1 | AA |
| Destructive | 6.17:1 | AA |
| Text on background | 20.17:1 | AAA |
| Text on card | 20.17:1 | AAA |
| Primary button | 6.29:1 | AA |
| Secondary button | 8.12:1 | AAA |
| Muted text | 8.42:1 | AAA |
| Accent | 6.88:1 | AA |
| Destructive | 4.68:1 | AA |
Paste this into your globals.css to use Campaign in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.994 0.003 169.586);
--foreground: oklch(0 0 0);
--muted: oklch(0.92 0.021 311.54);
--muted-foreground: oklch(0.389 0.04 310.887);
--popover: oklch(0.994 0.003 169.586);
--popover-foreground: oklch(0 0 0);
--card: oklch(0.994 0.003 169.586);
--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.066 163.585);
--primary-foreground: oklch(0.9 0.041 168.321);
--secondary: oklch(0.323 0.093 309.061);
--secondary-foreground: oklch(0.851 0.052 311.238);
--accent: oklch(0.393 0.054 74.457);
--accent-foreground: oklch(0.892 0.031 76.444);
--destructive: oklch(0.459 0.188 29.18);
--destructive-foreground: oklch(0.922 0.039 17.888);
--ring: oklch(0.415 0.066 163.585);
--chart-1: oklch(0.415 0.066 163.585);
--chart-2: oklch(0.323 0.093 309.061);
--chart-3: oklch(0.393 0.054 74.457);
--chart-4: oklch(0.349 0.102 308.987);
--chart-5: oklch(0.419 0.07 163.16);
}
.dark {
--radius: 0.5rem;
--background: oklch(0 0 0);
--foreground: oklch(0.987 0.004 169.57);
--muted: oklch(0.19 0.031 310.394);
--muted-foreground: oklch(0.756 0.034 311.359);
--popover: oklch(0 0 0);
--popover-foreground: oklch(0.987 0.004 169.57);
--card: oklch(0 0 0);
--card-foreground: oklch(0.987 0.004 169.57);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.415 0.066 163.585);
--primary-foreground: oklch(0.9 0.041 168.321);
--secondary: oklch(0.323 0.093 309.061);
--secondary-foreground: oklch(0.851 0.052 311.238);
--accent: oklch(0.393 0.054 74.457);
--accent-foreground: oklch(0.892 0.031 76.444);
--destructive: oklch(0.588 0.241 29.198);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.415 0.066 163.585);
--chart-1: oklch(0.415 0.066 163.585);
--chart-2: oklch(0.323 0.093 309.061);
--chart-3: oklch(0.393 0.054 74.457);
--chart-4: oklch(0.349 0.102 308.987);
--chart-5: oklch(0.419 0.07 163.16);
}