Thin is a shadcn/ui theme built around a green primary color (#23b35d) with teal accents (#23b3a5). The light mode uses a neutral background (#f8fcf9). Dark mode keeps the green primary (#23b35d) on a green-tinted background (#040b07).
| Token | Light | Dark |
|---|---|---|
| Background | #f8fcf9mintcream | #040b07black |
| Foreground | #021209black | #ffffffwhite |
| Card | #f4faf7whitesmoke | #050f09black |
| Card foreground | #020d06black | #ffffffwhite |
| Popover | #f8fcf9mintcream | #040b07black |
| Popover foreground | #021209black | #ffffffwhite |
| Primary | #23b35dmediumseagreen | #23b35dmediumseagreen |
| Primary foreground | #ffffffwhite | #ffffffwhite |
| Secondary | #32b323limegreen | #32b323limegreen |
| Secondary foreground | #ffffffwhite | #ffffffwhite |
| Muted | #d9e4d8gainsboro | #1c271bblack |
| Muted foreground | #4c534bdarkslategray | #adb4acdarkgray |
| Accent | #23b3a5lightseagreen | #23b3a5lightseagreen |
| Accent foreground | #020908black | #020908black |
| Destructive | #720f08maroon | #ef2d1forangered |
| Destructive foreground | #fab7b3lightpink | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #23b35dmediumseagreen | #23b35dmediumseagreen |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 18.55:1 | AAA |
| Text on card | 18.74:1 | AAA |
| Primary button | 2.73:1 | Fail |
| Secondary button | 2.76:1 | Fail |
| Muted text | 6.06:1 | AA |
| Accent | 7.70:1 | AAA |
| Destructive | 6.96:1 | AA |
| Text on background | 19.85:1 | AAA |
| Text on card | 19.44:1 | AAA |
| Primary button | 2.73:1 | Fail |
| Secondary button | 2.76:1 | Fail |
| Muted text | 7.27:1 | AAA |
| Accent | 7.70:1 | AAA |
| Destructive | 4.13:1 | AA Large |
Paste this into your globals.css to use Thin in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.987 0.005 160.109);
--foreground: oklch(0.163 0.031 157.898);
--muted: oklch(0.907 0.021 142.534);
--muted-foreground: oklch(0.433 0.016 142.479);
--popover: oklch(0.987 0.005 160.109);
--popover-foreground: oklch(0.163 0.031 157.898);
--card: oklch(0.981 0.008 160.044);
--card-foreground: oklch(0.145 0.027 159.489);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.675 0.17 151.114);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.671 0.208 141.756);
--secondary-foreground: oklch(1 0 180);
--accent: oklch(0.692 0.116 184.41);
--accent-foreground: oklch(0.127 0.016 189.211);
--destructive: oklch(0.357 0.134 29.603);
--destructive-foreground: oklch(0.841 0.078 23.475);
--ring: oklch(0.675 0.17 151.114);
--chart-1: oklch(0.675 0.17 151.114);
--chart-2: oklch(0.671 0.208 141.756);
--chart-3: oklch(0.692 0.116 184.41);
--chart-4: oklch(0.706 0.219 141.761);
--chart-5: oklch(0.683 0.176 150.768);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.14 0.018 159.99);
--foreground: oklch(1 0 180);
--muted: oklch(0.26 0.028 142.183);
--muted-foreground: oklch(0.762 0.014 142.554);
--popover: oklch(0.14 0.018 159.99);
--popover-foreground: oklch(1 0 180);
--card: oklch(0.156 0.021 158.688);
--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.675 0.17 151.114);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.671 0.208 141.756);
--secondary-foreground: oklch(1 0 180);
--accent: oklch(0.692 0.116 184.41);
--accent-foreground: oklch(0.127 0.016 189.211);
--destructive: oklch(0.616 0.229 29.53);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.675 0.17 151.114);
--chart-1: oklch(0.675 0.17 151.114);
--chart-2: oklch(0.671 0.208 141.756);
--chart-3: oklch(0.692 0.116 184.41);
--chart-4: oklch(0.706 0.219 141.761);
--chart-5: oklch(0.683 0.176 150.768);
}