Reluctance is a shadcn/ui theme built around a muted indigo primary color (#828099) with muted green accents (#809982). The light mode uses a neutral background (#fbfbfe). Dark mode keeps the muted indigo primary (#828099) on a neutral background (#040307).
| Token | Light | Dark |
|---|---|---|
| Background | #fbfbfeghostwhite | #040307black |
| Foreground | #010104black | #fcfcfdwhite |
| Card | #f8f7fdghostwhite | #06050ablack |
| Card foreground | #000000black | #ffffffwhite |
| Popover | #fbfbfeghostwhite | #040307black |
| Popover foreground | #010104black | #fcfcfdwhite |
| Primary | #828099lightslategray | #828099lightslategray |
| Primary foreground | #000000black | #000000black |
| Secondary | #998280gray | #998280gray |
| Secondary foreground | #000000black | #000000black |
| Muted | #f2e9e8linen | #170e0dblack |
| Muted foreground | #644c4adimgray | #b59e9brosybrown |
| Accent | #809982gray | #809982gray |
| Accent foreground | #000000black | #000000black |
| Destructive | #e02606orangered | #f42a06orangered |
| Destructive foreground | #ffffffwhite | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #828099lightslategray | #828099lightslategray |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 20.18:1 | AAA |
| Text on card | 19.68:1 | AAA |
| Primary button | 5.47:1 | AA |
| Secondary button | 5.86:1 | AA |
| Muted text | 6.59:1 | AA |
| Accent | 6.78:1 | AA |
| Destructive | 4.72:1 | AA |
| Text on background | 20.03:1 | AAA |
| Text on card | 20.32:1 | AAA |
| Primary button | 5.47:1 | AA |
| Secondary button | 5.86:1 | AA |
| Muted text | 7.54:1 | AAA |
| Accent | 6.78:1 | AA |
| Destructive | 4.06:1 | AA Large |
Paste this into your globals.css to use Reluctance in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.989 0.004 290.939);
--foreground: oklch(0.069 0.024 286.344);
--muted: oklch(0.941 0.01 25.074);
--muted-foreground: oklch(0.441 0.032 25.751);
--popover: oklch(0.989 0.004 290.939);
--popover-foreground: oklch(0.069 0.024 286.344);
--card: oklch(0.978 0.008 290.862);
--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.61 0.038 289.808);
--primary-foreground: oklch(0 0 0);
--secondary: oklch(0.627 0.028 25.419);
--secondary-foreground: oklch(0 0 0);
--accent: oklch(0.656 0.044 147.82);
--accent-foreground: oklch(0 0 0);
--destructive: oklch(0.583 0.221 31.517);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.61 0.038 289.808);
--chart-1: oklch(0.61 0.038 289.808);
--chart-2: oklch(0.627 0.028 25.419);
--chart-3: oklch(0.656 0.044 147.82);
--chart-4: oklch(0.653 0.026 25.363);
--chart-5: oklch(0.601 0.049 289.435);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.104 0.013 289.622);
--foreground: oklch(0.991 0.002 290.971);
--muted: oklch(0.175 0.015 25.926);
--muted-foreground: oklch(0.719 0.028 25.354);
--popover: oklch(0.104 0.013 289.622);
--popover-foreground: oklch(0.991 0.002 290.971);
--card: oklch(0.119 0.014 289.621);
--card-foreground: oklch(1 0 180);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.61 0.038 289.808);
--primary-foreground: oklch(0 0 0);
--secondary: oklch(0.627 0.028 25.419);
--secondary-foreground: oklch(0 0 0);
--accent: oklch(0.656 0.044 147.82);
--accent-foreground: oklch(0 0 0);
--destructive: oklch(0.621 0.236 31.449);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.61 0.038 289.808);
--chart-1: oklch(0.61 0.038 289.808);
--chart-2: oklch(0.627 0.028 25.419);
--chart-3: oklch(0.656 0.044 147.82);
--chart-4: oklch(0.653 0.026 25.363);
--chart-5: oklch(0.601 0.049 289.435);
}