Tight is a shadcn/ui theme built around a green primary color (#138637) with teal accents (#138671). The light mode uses a neutral background (#ffffff). Dark mode keeps the green primary (#138637) on a neutral background (#030704).
| Token | Light | Dark |
|---|---|---|
| Background | #ffffffwhite | #030704black |
| Foreground | #010402black | #ffffffwhite |
| Card | #ffffffwhite | #030704black |
| Card foreground | #010402black | #ffffffwhite |
| Popover | #ffffffwhite | #030704black |
| Popover foreground | #010402black | #ffffffwhite |
| Primary | #138637forestgreen | #138637forestgreen |
| Primary foreground | #ffffffwhite | #ffffffwhite |
| Secondary | #288613forestgreen | #288613forestgreen |
| Secondary foreground | #ffffffwhite | #ffffffwhite |
| Muted | #e5ede3beige | #141c12black |
| Muted foreground | #444743darkslategray | #b9bcb8silver |
| Accent | #138671teal | #138671teal |
| Accent foreground | #ffffffwhite | #ffffffwhite |
| Destructive | #8a1200darkred | #eb1f00red |
| Destructive foreground | #ffc6bdpink | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #138637forestgreen | #138637forestgreen |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 20.59:1 | AAA |
| Text on card | 20.59:1 | AAA |
| Primary button | 4.68:1 | AA |
| Secondary button | 4.66:1 | AA |
| Muted text | 7.87:1 | AAA |
| Accent | 4.49:1 | AA Large |
| Destructive | 6.49:1 | AA |
| Text on background | 20.25:1 | AAA |
| Text on card | 20.25:1 | AAA |
| Primary button | 4.68:1 | AA |
| Secondary button | 4.66:1 | AA |
| Muted text | 9.10:1 | AAA |
| Accent | 4.49:1 | AA Large |
| Destructive | 4.45:1 | AA Large |
Paste this into your globals.css to use Tight in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(1 0 180);
--foreground: oklch(0.098 0.015 156.145);
--muted: oklch(0.937 0.015 139.976);
--muted-foreground: oklch(0.393 0.008 139.972);
--popover: oklch(1 0 180);
--popover-foreground: oklch(0.098 0.015 156.145);
--card: oklch(1 0 180);
--card-foreground: oklch(0.098 0.015 156.145);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.543 0.15 148.015);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.544 0.168 140.77);
--secondary-foreground: oklch(1 0 180);
--accent: oklch(0.556 0.1 175.927);
--accent-foreground: oklch(1 0 180);
--destructive: oklch(0.406 0.155 31.73);
--destructive-foreground: oklch(0.874 0.067 28.524);
--ring: oklch(0.543 0.15 148.015);
--chart-1: oklch(0.543 0.15 148.015);
--chart-2: oklch(0.544 0.168 140.77);
--chart-3: oklch(0.556 0.1 175.927);
--chart-4: oklch(0.583 0.181 140.8);
--chart-5: oklch(0.549 0.154 147.746);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.121 0.014 156.257);
--foreground: oklch(1 0 180);
--muted: oklch(0.214 0.022 139.915);
--muted-foreground: oklch(0.792 0.007 139.983);
--popover: oklch(0.121 0.014 156.257);
--popover-foreground: oklch(1 0 180);
--card: oklch(0.121 0.014 156.257);
--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.543 0.15 148.015);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.544 0.168 140.77);
--secondary-foreground: oklch(1 0 180);
--accent: oklch(0.556 0.1 175.927);
--accent-foreground: oklch(1 0 180);
--destructive: oklch(0.598 0.234 30.934);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.543 0.15 148.015);
--chart-1: oklch(0.543 0.15 148.015);
--chart-2: oklch(0.544 0.168 140.77);
--chart-3: oklch(0.556 0.1 175.927);
--chart-4: oklch(0.583 0.181 140.8);
--chart-5: oklch(0.549 0.154 147.746);
}