Slight is a shadcn/ui theme built around a vivid cyan primary color (#21c4ed) with muted light cyan accents (#c8d3d5). The light mode uses a neutral background (#ffffff). Dark mode keeps the vivid cyan primary (#21c4ed) on a neutral background (#030607).
| Token | Light | Dark |
|---|---|---|
| Background | #ffffffwhite | #030607black |
| Foreground | #000000black | #fcfdfdwhite |
| Card | #ffffffwhite | #030607black |
| Card foreground | #000000black | #fcfdfdwhite |
| Popover | #ffffffwhite | #030607black |
| Popover foreground | #000000black | #fcfdfdwhite |
| Primary | #21c4eddeepskyblue | #21c4eddeepskyblue |
| Primary foreground | #05323ddarkslategray | #05323ddarkslategray |
| Secondary | #c8d3d5lightgrey | #1a2223black |
| Secondary foreground | #2e3a3ddarkslategray | #acbec3silver |
| Muted | #e3e7e8gainsboro | #171b1cblack |
| Muted foreground | #455559darkslategray | #a6b6badarkgray |
| Accent | #c8d3d5lightgrey | #1a2223black |
| Accent foreground | #2e3a3ddarkslategray | #acbec3silver |
| Destructive | #bd1b0ffirebrick | #ec2618crimson |
| Destructive foreground | #ffffffwhite | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #21c4eddeepskyblue | #21c4eddeepskyblue |
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 | 6.67:1 | AA |
| Secondary button | 7.65:1 | AAA |
| Muted text | 6.25:1 | AA |
| Accent | 7.65:1 | AAA |
| Destructive | 6.32:1 | AA |
| Text on background | 19.92:1 | AAA |
| Text on card | 19.92:1 | AAA |
| Primary button | 6.67:1 | AA |
| Secondary button | 8.44:1 | AAA |
| Muted text | 8.28:1 | AAA |
| Accent | 8.44:1 | AAA |
| Destructive | 4.31: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.925 0.005 214.33);
--muted-foreground: oklch(0.438 0.022 214.591);
--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.762 0.134 220.783);
--primary-foreground: oklch(0.294 0.05 219.265);
--secondary: oklch(0.858 0.012 214.361);
--secondary-foreground: oklch(0.339 0.017 214.593);
--accent: oklch(0.858 0.012 214.361);
--accent-foreground: oklch(0.339 0.017 214.593);
--destructive: oklch(0.511 0.196 29.688);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.762 0.134 220.783);
--chart-1: oklch(0.762 0.134 220.783);
--chart-2: oklch(0.858 0.012 214.361);
--chart-3: oklch(0.858 0.012 214.361);
--chart-4: oklch(0.881 0.01 214.351);
--chart-5: oklch(0.768 0.137 221.164);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.119 0.009 211.328);
--foreground: oklch(0.993 0.001 214.321);
--muted: oklch(0.218 0.006 214.437);
--muted-foreground: oklch(0.765 0.019 214.411);
--popover: oklch(0.119 0.009 211.328);
--popover-foreground: oklch(0.993 0.001 214.321);
--card: oklch(0.119 0.009 211.328);
--card-foreground: oklch(0.993 0.001 214.321);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.762 0.134 220.783);
--primary-foreground: oklch(0.294 0.05 219.265);
--secondary: oklch(0.243 0.012 214.588);
--secondary-foreground: oklch(0.79 0.021 214.42);
--accent: oklch(0.243 0.012 214.588);
--accent-foreground: oklch(0.79 0.021 214.42);
--destructive: oklch(0.606 0.231 29.663);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.762 0.134 220.783);
--chart-1: oklch(0.762 0.134 220.783);
--chart-2: oklch(0.243 0.012 214.588);
--chart-3: oklch(0.243 0.012 214.588);
--chart-4: oklch(0.276 0.014 214.618);
--chart-5: oklch(0.768 0.137 221.164);
}