Tangible is a shadcn/ui theme built around a vivid deep green primary color (#095311) with neutral gray accents (#dbdbdb). The light mode uses a neutral background (#ffffff). Dark mode keeps the vivid deep green primary (#095311) on a green-tinted background (#051006).
| Token | Light | Dark |
|---|---|---|
| Background | #ffffffwhite | #051006black |
| Foreground | #020902black | #f5faf5whitesmoke |
| Card | #fcfcfcsnow | #061408black |
| Card foreground | #010401black | #f8fcf9mintcream |
| Popover | #fcfcfcsnow | #061408black |
| Popover foreground | #010401black | #f8fcf9mintcream |
| Primary | #095311darkgreen | #095311darkgreen |
| Primary foreground | #99f4a4palegreen | #99f4a4palegreen |
| Secondary | #dbdbdbgainsboro | #2b312bdarkslategray |
| Secondary foreground | #424242darkslategray | #c3cbc4silver |
| Muted | #e2d4d4gainsboro | #1d2b1eblack |
| Muted foreground | #453a3adarkslategray | #bac5bbsilver |
| Accent | #dbdbdbgainsboro | #2b312bdarkslategray |
| Accent foreground | #424242darkslategray | #c3cbc4silver |
| Destructive | #9d1b07darkred | #f63f23orangered |
| Destructive foreground | #fdddd8mistyrose | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #095311darkgreen | #095311darkgreen |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 20.14:1 | AAA |
| Text on card | 20.16:1 | AAA |
| Primary button | 7.00:1 | AAA |
| Secondary button | 7.27:1 | AAA |
| Muted text | 7.62:1 | AAA |
| Accent | 7.27:1 | AAA |
| Destructive | 6.39:1 | AA |
| Text on background | 18.39:1 | AAA |
| Text on card | 18.31:1 | AAA |
| Primary button | 7.00:1 | AAA |
| Secondary button | 8.02:1 | AAA |
| Muted text | 8.34:1 | AAA |
| Accent | 8.02:1 | AAA |
| Destructive | 3.72:1 | AA Large |
Paste this into your globals.css to use Tangible in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(1 0 180);
--foreground: oklch(0.124 0.027 147.635);
--muted: oklch(0.882 0.016 17.457);
--muted-foreground: oklch(0.361 0.016 17.927);
--popover: oklch(0.992 0 161.565);
--popover-foreground: oklch(0.098 0.021 147.635);
--card: oklch(0.992 0 161.565);
--card-foreground: oklch(0.098 0.021 147.635);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.386 0.119 144.054);
--primary-foreground: oklch(0.891 0.14 147.053);
--secondary: oklch(0.892 0 180);
--secondary-foreground: oklch(0.38 0 180);
--accent: oklch(0.892 0 180);
--accent-foreground: oklch(0.38 0 180);
--destructive: oklch(0.449 0.167 31.422);
--destructive-foreground: oklch(0.923 0.037 28.188);
--ring: oklch(0.386 0.119 144.054);
--chart-1: oklch(0.386 0.119 144.054);
--chart-2: oklch(0.892 0 180);
--chart-3: oklch(0.892 0 180);
--chart-4: oklch(0.916 0 180);
--chart-5: oklch(0.39 0.122 143.952);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.156 0.028 147.621);
--foreground: oklch(0.98 0.008 149.032);
--muted: oklch(0.271 0.03 147.718);
--muted-foreground: oklch(0.812 0.019 148.857);
--popover: oklch(0.172 0.032 147.186);
--popover-foreground: oklch(0.987 0.006 149.066);
--card: oklch(0.172 0.032 147.186);
--card-foreground: oklch(0.987 0.006 149.066);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.386 0.119 144.054);
--primary-foreground: oklch(0.891 0.14 147.053);
--secondary: oklch(0.305 0.013 148.603);
--secondary-foreground: oklch(0.833 0.013 148.951);
--accent: oklch(0.305 0.013 148.603);
--accent-foreground: oklch(0.833 0.013 148.951);
--destructive: oklch(0.641 0.223 31.648);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.386 0.119 144.054);
--chart-1: oklch(0.386 0.119 144.054);
--chart-2: oklch(0.305 0.013 148.603);
--chart-3: oklch(0.305 0.013 148.603);
--chart-4: oklch(0.336 0.015 148.585);
--chart-5: oklch(0.39 0.122 143.952);
}