Thin is a shadcn/ui theme built around a muted deep green primary color (#162317) with muted light green accents (#b6d3ba). The light mode uses a neutral background (#ffffff). Dark mode keeps the muted deep green primary (#162317) on a green-tinted background (#041006).
| Token | Light | Dark |
|---|---|---|
| Background | #ffffffwhite | #041006black |
| Foreground | #000000black | #f5f9f6whitesmoke |
| Card | #ffffffwhite | #041006black |
| Card foreground | #000000black | #f5f9f6whitesmoke |
| Popover | #ffffffwhite | #041006black |
| Popover foreground | #000000black | #f5f9f6whitesmoke |
| Primary | #162317black | #162317black |
| Primary foreground | #a4c6a9darkgray | #a4c6a9darkgray |
| Secondary | #d5e1d7gainsboro | #232f24darkslategray |
| Secondary foreground | #374e3adarkslategray | #b9cbbbsilver |
| Muted | #e1efe3gainsboro | #101e12black |
| Muted foreground | #414e43darkslategray | #b1beb3silver |
| Accent | #b6d3basilver | #2c442fdarkslategray |
| Accent foreground | #213623darkslategray | #c7dbcalightgrey |
| Destructive | #b4400efirebrick | #f06c33tomato |
| Destructive foreground | #ffffffwhite | #000000black |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #162317black | #162317black |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 21.00:1 | AAA |
| Text on card | 21.00:1 | AAA |
| Primary button | 8.76:1 | AAA |
| Secondary button | 6.75:1 | AA |
| Muted text | 7.38:1 | AAA |
| Accent | 8.04:1 | AAA |
| Destructive | 5.71:1 | AA |
| Text on background | 18.25:1 | AAA |
| Text on card | 18.25:1 | AAA |
| Primary button | 8.76:1 | AAA |
| Secondary button | 8.20:1 | AAA |
| Muted text | 8.93:1 | AAA |
| Accent | 7.30:1 | AAA |
| Destructive | 6.87:1 | AA |
Paste this into your globals.css to use Thin in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(1 0 180);
--foreground: oklch(0 0 0);
--muted: oklch(0.939 0.023 149.377);
--muted-foreground: oklch(0.408 0.025 148.908);
--popover: oklch(1 0 180);
--popover-foreground: oklch(0 0 0);
--card: oklch(1 0 180);
--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.238 0.028 148.108);
--primary-foreground: oklch(0.794 0.055 148.785);
--secondary: oklch(0.899 0.019 149.416);
--secondary-foreground: oklch(0.397 0.043 148.24);
--accent: oklch(0.838 0.047 148.965);
--accent-foreground: oklch(0.309 0.043 147.751);
--destructive: oklch(0.529 0.161 39.388);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.238 0.028 148.108);
--chart-1: oklch(0.238 0.028 148.108);
--chart-2: oklch(0.899 0.019 149.416);
--chart-3: oklch(0.838 0.047 148.965);
--chart-4: oklch(0.921 0.015 149.48);
--chart-5: oklch(0.24 0.031 147.907);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.157 0.03 148.041);
--foreground: oklch(0.979 0.006 149.609);
--muted: oklch(0.218 0.032 147.655);
--muted-foreground: oklch(0.788 0.021 149.349);
--popover: oklch(0.157 0.03 148.041);
--popover-foreground: oklch(0.979 0.006 149.609);
--card: oklch(0.157 0.03 148.041);
--card-foreground: oklch(0.979 0.006 149.609);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.238 0.028 148.108);
--primary-foreground: oklch(0.794 0.055 148.785);
--secondary: oklch(0.29 0.025 148.533);
--secondary-foreground: oklch(0.824 0.03 149.229);
--accent: oklch(0.36 0.046 147.96);
--accent-foreground: oklch(0.872 0.031 149.239);
--destructive: oklch(0.683 0.177 41.712);
--destructive-foreground: oklch(0 0 0);
--ring: oklch(0.238 0.028 148.108);
--chart-1: oklch(0.238 0.028 148.108);
--chart-2: oklch(0.29 0.025 148.533);
--chart-3: oklch(0.36 0.046 147.96);
--chart-4: oklch(0.322 0.029 148.485);
--chart-5: oklch(0.24 0.031 147.907);
}