Counter-force is a shadcn/ui theme built around a purple primary color (#cc7bca) with muted purple accents (#cfafcf). The light mode uses a neutral background (#fdf6fd). Dark mode keeps the purple primary (#cc7bca) on a neutral background (#000000).
| Token | Light | Dark |
|---|---|---|
| Background | #fdf6fdsnow | #000000black |
| Foreground | #0c030cblack | #f8f6f8whitesmoke |
| Card | #fdf6fdsnow | #000000black |
| Card foreground | #0c030cblack | #f8f6f8whitesmoke |
| Popover | #fdf6fdsnow | #000000black |
| Popover foreground | #0c030cblack | #f8f6f8whitesmoke |
| Primary | #cc7bcaorchid | #cc7bcaorchid |
| Primary foreground | #0f060fblack | #0f060fblack |
| Secondary | #d9c9d9thistle | #2e292edarkslategray |
| Secondary foreground | #422e42darkslategray | #c8c1c8silver |
| Muted | #e5e1e5gainsboro | #1e1a1eblack |
| Muted foreground | #5b485bdimgray | #b7a4b7darkgray |
| Accent | #cfafcfthistle | #433243darkslategray |
| Accent foreground | #301d2fdarkslategray | #dacedalightgrey |
| Destructive | #6e0707maroon | #f23636crimson |
| Destructive foreground | #faaeaelightpink | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #cc7bcaorchid | #cc7bcaorchid |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.19:1 | AAA |
| Text on card | 19.19:1 | AAA |
| Primary button | 6.86:1 | AA |
| Secondary button | 7.82:1 | AAA |
| Muted text | 6.42:1 | AA |
| Accent | 7.97:1 | AAA |
| Destructive | 6.90:1 | AA |
| Text on background | 19.52:1 | AAA |
| Text on card | 19.52:1 | AAA |
| Primary button | 6.86:1 | AA |
| Secondary button | 8.11:1 | AAA |
| Muted text | 7.37:1 | AAA |
| Accent | 7.75:1 | AAA |
| Destructive | 3.92:1 | AA Large |
Paste this into your globals.css to use Counter-force in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.982 0.012 326.149);
--foreground: oklch(0.124 0.032 327.792);
--muted: oklch(0.914 0.008 326.121);
--muted-foreground: oklch(0.428 0.04 326.777);
--popover: oklch(0.982 0.012 326.149);
--popover-foreground: oklch(0.124 0.032 327.792);
--card: oklch(0.982 0.012 326.149);
--card-foreground: oklch(0.124 0.032 327.792);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.696 0.143 327.564);
--primary-foreground: oklch(0.14 0.026 327.377);
--secondary: oklch(0.854 0.029 326.32);
--secondary-foreground: oklch(0.333 0.044 327.053);
--accent: oklch(0.793 0.056 326.607);
--accent-foreground: oklch(0.262 0.044 327.299);
--destructive: oklch(0.343 0.134 28.199);
--destructive-foreground: oklch(0.822 0.09 19.173);
--ring: oklch(0.696 0.143 327.564);
--chart-1: oklch(0.696 0.143 327.564);
--chart-2: oklch(0.854 0.029 326.32);
--chart-3: oklch(0.793 0.056 326.607);
--chart-4: oklch(0.878 0.024 326.269);
--chart-5: oklch(0.696 0.152 327.65);
}
.dark {
--radius: 0.5rem;
--background: oklch(0 0 0);
--foreground: oklch(0.976 0.004 326.083);
--muted: oklch(0.224 0.011 326.436);
--muted-foreground: oklch(0.74 0.035 326.429);
--popover: oklch(0 0 0);
--popover-foreground: oklch(0.976 0.004 326.083);
--card: oklch(0 0 0);
--card-foreground: oklch(0.976 0.004 326.083);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.696 0.143 327.564);
--primary-foreground: oklch(0.14 0.026 327.377);
--secondary: oklch(0.288 0.012 326.379);
--secondary-foreground: oklch(0.818 0.012 326.175);
--accent: oklch(0.344 0.035 326.849);
--accent-foreground: oklch(0.863 0.021 326.248);
--destructive: oklch(0.629 0.224 26.543);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.696 0.143 327.564);
--chart-1: oklch(0.696 0.143 327.564);
--chart-2: oklch(0.288 0.012 326.379);
--chart-3: oklch(0.344 0.035 326.849);
--chart-4: oklch(0.318 0.014 326.392);
--chart-5: oklch(0.696 0.152 327.65);
}