Comfortable is a shadcn/ui theme built around an indigo primary color (#664ec6) with muted light indigo accents (#e8e7ef). The light mode uses a neutral background (#f9f8fc). Dark mode keeps the indigo primary (#664ec6) on an indigo-tinted background (#06050a).
| Token | Light | Dark |
|---|---|---|
| Background | #f9f8fcghostwhite | #06050ablack |
| Foreground | #07050fblack | #f9f9fbghostwhite |
| Card | #f6f5fawhitesmoke | #08070dblack |
| Card foreground | #05040cblack | #fcfcfdwhite |
| Popover | #f6f5fawhitesmoke | #08070dblack |
| Popover foreground | #05040cblack | #fcfcfdwhite |
| Primary | #664ec6slateblue | #664ec6slateblue |
| Primary foreground | #ffffffwhite | #ffffffwhite |
| Secondary | #e8e7eflavender | #2b2a2ddarkslategray |
| Secondary foreground | #484162darkslategray | #c3c3c6silver |
| Muted | #edecf4lavender | #0d0b13black |
| Muted foreground | #595959dimgray | #a6a6a6darkgray |
| Accent | #e8e7eflavender | #2b2a2ddarkslategray |
| Accent foreground | #484162darkslategray | #c3c3c6silver |
| Destructive | #660705maroon | #f31f1bcrimson |
| Destructive foreground | #faa4a3lightpink | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #664ec6slateblue | #664ec6slateblue |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.13:1 | AAA |
| Text on card | 18.74:1 | AAA |
| Primary button | 6.06:1 | AA |
| Secondary button | 7.72:1 | AAA |
| Muted text | 5.97:1 | AA |
| Accent | 7.72:1 | AAA |
| Destructive | 6.83:1 | AA |
| Text on background | 19.29:1 | AAA |
| Text on card | 19.56:1 | AAA |
| Primary button | 6.06:1 | AA |
| Secondary button | 8.12:1 | AAA |
| Muted text | 8.01:1 | AAA |
| Accent | 8.12:1 | AAA |
| Destructive | 4.18:1 | AA Large |
Paste this into your globals.css to use Comfortable in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.981 0.005 295.484);
--foreground: oklch(0.126 0.025 293.741);
--muted: oklch(0.946 0.01 295.378);
--muted-foreground: oklch(0.465 0 180);
--popover: oklch(0.971 0.008 295.435);
--popover-foreground: oklch(0.114 0.022 294.592);
--card: oklch(0.971 0.008 295.435);
--card-foreground: oklch(0.114 0.022 294.592);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.514 0.178 287.622);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.93 0.011 295.359);
--secondary-foreground: oklch(0.397 0.055 292.908);
--accent: oklch(0.93 0.011 295.359);
--accent-foreground: oklch(0.397 0.055 292.908);
--destructive: oklch(0.325 0.126 28.669);
--destructive-foreground: oklch(0.804 0.102 20.63);
--ring: oklch(0.514 0.178 287.622);
--chart-1: oklch(0.514 0.178 287.622);
--chart-2: oklch(0.93 0.011 295.359);
--chart-3: oklch(0.93 0.011 295.359);
--chart-4: oklch(0.956 0.007 295.446);
--chart-5: oklch(0.509 0.187 286.934);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.122 0.013 295.096);
--foreground: oklch(0.983 0.002 295.535);
--muted: oklch(0.158 0.016 293.625);
--muted-foreground: oklch(0.724 0 180);
--popover: oklch(0.134 0.015 294.543);
--popover-foreground: oklch(0.991 0.001 295.557);
--card: oklch(0.134 0.015 294.543);
--card-foreground: oklch(0.991 0.001 295.557);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.514 0.178 287.622);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.287 0.005 295.274);
--secondary-foreground: oklch(0.818 0.005 295.468);
--accent: oklch(0.287 0.005 295.274);
--accent-foreground: oklch(0.818 0.005 295.468);
--destructive: oklch(0.615 0.239 28.564);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.514 0.178 287.622);
--chart-1: oklch(0.514 0.178 287.622);
--chart-2: oklch(0.287 0.005 295.274);
--chart-3: oklch(0.287 0.005 295.274);
--chart-4: oklch(0.317 0.005 295.262);
--chart-5: oklch(0.509 0.187 286.934);
}