Indolent is a shadcn/ui theme built around a green primary color (#599852) with near-white accents (#eaecea). The light mode uses a neutral background (#fbfefb). Dark mode keeps the green primary (#599852) on a green-tinted background (#060f05).
| Token | Light | Dark |
|---|---|---|
| Background | #fbfefbwhite | #060f05black |
| Foreground | #061004black | #f6f9f6whitesmoke |
| Card | #fbfefbwhite | #060f05black |
| Card foreground | #061004black | #f6f9f6whitesmoke |
| Popover | #fbfefbwhite | #060f05black |
| Popover foreground | #061004black | #f6f9f6whitesmoke |
| Primary | #599852seagreen | #599852seagreen |
| Primary foreground | #ffffffwhite | #ffffffwhite |
| Secondary | #eaecealinen | #272c26darkslategray |
| Secondary foreground | #4e564edarkslategray | #bec6besilver |
| Muted | #e8f3e7honeydew | #0d180cblack |
| Muted foreground | #515251darkslategray | #adaeaddarkgray |
| Accent | #eaecealinen | #272c26darkslategray |
| Accent foreground | #4e564edarkslategray | #bec6besilver |
| Destructive | #d73a0forangered | #f26740tomato |
| Destructive foreground | #ffffffwhite | #000000black |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #599852seagreen | #599852seagreen |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.06:1 | AAA |
| Text on card | 19.06:1 | AAA |
| Primary button | 3.45:1 | AA Large |
| Secondary button | 6.37:1 | AA |
| Muted text | 6.89:1 | AA |
| Accent | 6.37:1 | AA |
| Destructive | 4.67:1 | AA |
| Text on background | 18.32:1 | AAA |
| Text on card | 18.32:1 | AAA |
| Primary button | 3.45:1 | AA Large |
| Secondary button | 8.18:1 | AAA |
| Muted text | 8.17:1 | AAA |
| Accent | 8.18:1 | AAA |
| Destructive | 6.76:1 | AA |
Paste this into your globals.css to use Indolent in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.994 0.004 142.609);
--foreground: oklch(0.158 0.031 141.097);
--muted: oklch(0.953 0.02 142.54);
--muted-foreground: oklch(0.438 0.003 142.597);
--popover: oklch(0.994 0.004 142.609);
--popover-foreground: oklch(0.158 0.031 141.097);
--card: oklch(0.994 0.004 142.609);
--card-foreground: oklch(0.158 0.031 141.097);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.621 0.121 141.85);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.94 0.003 142.612);
--secondary-foreground: oklch(0.443 0.016 142.478);
--accent: oklch(0.94 0.003 142.612);
--accent-foreground: oklch(0.443 0.016 142.478);
--destructive: oklch(0.582 0.199 34.525);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.621 0.121 141.85);
--chart-1: oklch(0.621 0.121 141.85);
--chart-2: oklch(0.94 0.003 142.612);
--chart-3: oklch(0.94 0.003 142.612);
--chart-4: oklch(0.963 0.002 142.618);
--chart-5: oklch(0.628 0.132 141.804);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.156 0.028 141.237);
--foreground: oklch(0.979 0.005 142.605);
--muted: oklch(0.194 0.029 142.009);
--muted-foreground: oklch(0.75 0.003 142.612);
--popover: oklch(0.156 0.028 141.237);
--popover-foreground: oklch(0.979 0.005 142.605);
--card: oklch(0.156 0.028 141.237);
--card-foreground: oklch(0.979 0.005 142.605);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.621 0.121 141.85);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.285 0.013 142.446);
--secondary-foreground: oklch(0.818 0.015 142.555);
--accent: oklch(0.285 0.013 142.446);
--accent-foreground: oklch(0.818 0.015 142.555);
--destructive: oklch(0.68 0.18 36.254);
--destructive-foreground: oklch(0 0 0);
--ring: oklch(0.621 0.121 141.85);
--chart-1: oklch(0.621 0.121 141.85);
--chart-2: oklch(0.285 0.013 142.446);
--chart-3: oklch(0.285 0.013 142.446);
--chart-4: oklch(0.316 0.015 142.439);
--chart-5: oklch(0.628 0.132 141.804);
}