Slight is a shadcn/ui theme built around a deep teal primary color (#114a48) with neutral gray accents (#e4e7e6). The light mode uses a neutral background (#ffffff). Dark mode keeps the deep teal primary (#114a48) on a teal-tinted background (#050a0a).
| Token | Light | Dark |
|---|---|---|
| Background | #ffffffwhite | #050a0ablack |
| Foreground | #000000black | #ffffffwhite |
| Card | #ffffffwhite | #050a0ablack |
| Card foreground | #000000black | #ffffffwhite |
| Popover | #ffffffwhite | #050a0ablack |
| Popover foreground | #000000black | #ffffffwhite |
| Primary | #114a48darkslategray | #114a48darkslategray |
| Primary foreground | #a4eae7paleturquoise | #a4eae7paleturquoise |
| Secondary | #e4e7e6gainsboro | #1d2525black |
| Secondary foreground | #49504fdarkslategray | #b2c2c2silver |
| Muted | #cfe8e7gainsboro | #17302fdarkslategray |
| Muted foreground | #525656dimgray | #a9adacdarkgray |
| Accent | #e4e7e6gainsboro | #1d2525black |
| Accent foreground | #49504fdarkslategray | #b2c2c2silver |
| Destructive | #ad2901firebrick | #fe3c01orangered |
| Destructive foreground | #ffffffwhite | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #114a48darkslategray | #114a48darkslategray |
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 | 7.35:1 | AAA |
| Secondary button | 6.61:1 | AA |
| Muted text | 5.77:1 | AA |
| Accent | 6.61:1 | AA |
| Destructive | 6.81:1 | AA |
| Text on background | 19.88:1 | AAA |
| Text on card | 19.88:1 | AAA |
| Primary button | 7.35:1 | AAA |
| Secondary button | 8.46:1 | AAA |
| Muted text | 6.15:1 | AA |
| Accent | 8.46:1 | AAA |
| Destructive | 3.58:1 | AA Large |
Paste this into your globals.css to use Slight in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(1 0 180);
--foreground: oklch(0 0 0);
--muted: oklch(0.912 0.026 194.255);
--muted-foreground: oklch(0.449 0.004 194.611);
--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.374 0.057 191.736);
--primary-foreground: oklch(0.889 0.069 193.355);
--secondary: oklch(0.925 0.002 194.745);
--secondary-foreground: oklch(0.424 0.008 194.444);
--accent: oklch(0.925 0.002 194.745);
--accent-foreground: oklch(0.424 0.008 194.444);
--destructive: oklch(0.49 0.173 34.616);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.374 0.057 191.736);
--chart-1: oklch(0.374 0.057 191.736);
--chart-2: oklch(0.925 0.002 194.745);
--chart-3: oklch(0.925 0.002 194.745);
--chart-4: oklch(0.948 0.002 194.76);
--chart-5: oklch(0.379 0.058 191.65);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.14 0.011 193.81);
--foreground: oklch(1 0 180);
--muted: oklch(0.29 0.031 192.787);
--muted-foreground: oklch(0.743 0.004 194.694);
--popover: oklch(0.14 0.011 193.81);
--popover-foreground: oklch(1 0 180);
--card: oklch(0.14 0.011 193.81);
--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.374 0.057 191.736);
--primary-foreground: oklch(0.889 0.069 193.355);
--secondary: oklch(0.257 0.011 193.978);
--secondary-foreground: oklch(0.803 0.018 194.371);
--accent: oklch(0.257 0.011 193.978);
--accent-foreground: oklch(0.803 0.018 194.371);
--destructive: oklch(0.651 0.234 33.893);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.374 0.057 191.736);
--chart-1: oklch(0.374 0.057 191.736);
--chart-2: oklch(0.257 0.011 193.978);
--chart-3: oklch(0.257 0.011 193.978);
--chart-4: oklch(0.291 0.014 193.935);
--chart-5: oklch(0.379 0.058 191.65);
}