Resist is a shadcn/ui theme built around a muted deep violet primary color (#20182a) with muted light violet accents (#e7e4ec). The light mode uses a neutral background (#fcfbfe). Dark mode keeps the muted deep violet primary (#20182a) on a neutral background (#000000).
| Token | Light | Dark |
|---|---|---|
| Background | #fcfbfewhite | #000000black |
| Foreground | #0c0614black | #f7f6f8whitesmoke |
| Card | #f9f7fcghostwhite | #030303black |
| Card foreground | #090510black | #faf9fbghostwhite |
| Popover | #fcfbfewhite | #000000black |
| Popover foreground | #0c0614black | #f7f6f8whitesmoke |
| Primary | #20182ablack | #20182ablack |
| Primary foreground | #b7a7cdsilver | #b7a7cdsilver |
| Secondary | #e7e4eclavender | #2b2b2bdarkslategray |
| Secondary foreground | #4d425cdarkslategray | #c4c4c4silver |
| Muted | #dddae2gainsboro | #251d1dblack |
| Muted foreground | #454446darkslategray | #bbb9b9silver |
| Accent | #e7e4eclavender | #2b2b2bdarkslategray |
| Accent foreground | #4d425cdarkslategray | #c4c4c4silver |
| Destructive | #a53209firebrick | #f56b38tomato |
| Destructive foreground | #ffffffwhite | #000000black |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #20182ablack | #20182ablack |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.39:1 | AAA |
| Text on card | 19.03:1 | AAA |
| Primary button | 7.69:1 | AAA |
| Secondary button | 7.45:1 | AAA |
| Muted text | 6.99:1 | AA |
| Accent | 7.45:1 | AAA |
| Destructive | 6.86:1 | AA |
| Text on background | 19.49:1 | AAA |
| Text on card | 19.70:1 | AAA |
| Primary button | 7.69:1 | AAA |
| Secondary button | 8.07:1 | AAA |
| Muted text | 8.45:1 | AAA |
| Accent | 8.07:1 | AAA |
| Destructive | 7.00:1 | AAA |
Paste this into your globals.css to use Resist in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.99 0.003 304.996);
--foreground: oklch(0.139 0.032 302.944);
--muted: oklch(0.892 0.012 304.855);
--muted-foreground: oklch(0.388 0.002 304.959);
--popover: oklch(0.99 0.003 304.996);
--popover-foreground: oklch(0.139 0.032 302.944);
--card: oklch(0.98 0.007 304.947);
--card-foreground: oklch(0.128 0.028 304.571);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.227 0.037 302.737);
--primary-foreground: oklch(0.754 0.057 303.995);
--secondary: oklch(0.925 0.01 304.89);
--secondary-foreground: oklch(0.402 0.044 303.523);
--accent: oklch(0.925 0.01 304.89);
--accent-foreground: oklch(0.402 0.044 303.523);
--destructive: oklch(0.486 0.157 37.039);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.227 0.037 302.737);
--chart-1: oklch(0.227 0.037 302.737);
--chart-2: oklch(0.925 0.01 304.89);
--chart-3: oklch(0.925 0.01 304.89);
--chart-4: oklch(0.95 0.007 304.945);
--chart-5: oklch(0.225 0.041 302.446);
}
.dark {
--radius: 0.5rem;
--background: oklch(0 0 0);
--foreground: oklch(0.975 0.003 305.006);
--muted: oklch(0.24 0.014 18.135);
--muted-foreground: oklch(0.788 0.002 17.191);
--popover: oklch(0 0 0);
--popover-foreground: oklch(0.975 0.003 305.006);
--card: oklch(0.092 0 180);
--card-foreground: oklch(0.984 0.002 305.019);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.227 0.037 302.737);
--primary-foreground: oklch(0.754 0.057 303.995);
--secondary: oklch(0.29 0 180);
--secondary-foreground: oklch(0.821 0 171.87);
--accent: oklch(0.29 0 180);
--accent-foreground: oklch(0.821 0 171.87);
--destructive: oklch(0.689 0.181 39.451);
--destructive-foreground: oklch(0 0 0);
--ring: oklch(0.227 0.037 302.737);
--chart-1: oklch(0.227 0.037 302.737);
--chart-2: oklch(0.29 0 180);
--chart-3: oklch(0.29 0 180);
--chart-4: oklch(0.321 0 180);
--chart-5: oklch(0.225 0.041 302.446);
}