Leading is a shadcn/ui theme built around a muted deep violet primary color (#41335b) with muted light violet accents (#e4e2e9). The light mode uses a neutral background (#fcfbfe). Dark mode keeps the muted deep violet primary (#41335b) on a neutral background (#020104).
| Token | Light | Dark |
|---|---|---|
| Background | #fcfbfewhite | #020104black |
| Foreground | #040209black | #ffffffwhite |
| Card | #f9f7fdghostwhite | #040307black |
| Card foreground | #020104black | #ffffffwhite |
| Popover | #fcfbfewhite | #020104black |
| Popover foreground | #040209black | #ffffffwhite |
| Primary | #41335bdarkslategray | #41335bdarkslategray |
| Primary foreground | #ded8e9gainsboro | #ded8e9gainsboro |
| Secondary | #e4e2e9gainsboro | #2f2b36darkslategray |
| Secondary foreground | #494356darkslategray | #c7c4cfsilver |
| Muted | #e2e0e6gainsboro | #1b191fblack |
| Muted foreground | #3d3749darkslategray | #bcb6c8silver |
| Accent | #e4e2e9gainsboro | #2f2b36darkslategray |
| Accent foreground | #494356darkslategray | #c7c4cfsilver |
| Destructive | #621d04maroon | #f7622btomato |
| Destructive foreground | #fbb69dlightpink | #000000black |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #41335bdarkslategray | #41335bdarkslategray |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 20.01:1 | AAA |
| Text on card | 19.59:1 | AAA |
| Primary button | 8.13:1 | AAA |
| Secondary button | 7.37:1 | AAA |
| Muted text | 8.70:1 | AAA |
| Accent | 7.37:1 | AAA |
| Destructive | 7.22:1 | AAA |
| Text on background | 20.77:1 | AAA |
| Text on card | 20.55:1 | AAA |
| Primary button | 8.13:1 | AAA |
| Secondary button | 8.04:1 | AAA |
| Muted text | 8.84:1 | AAA |
| Accent | 8.04:1 | AAA |
| Destructive | 6.74:1 | AA |
Paste this into your globals.css to use Leading in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.99 0.004 301.432);
--foreground: oklch(0.096 0.027 302.206);
--muted: oklch(0.91 0.009 301.341);
--muted-foreground: oklch(0.35 0.032 300.025);
--popover: oklch(0.99 0.004 301.432);
--popover-foreground: oklch(0.096 0.027 302.206);
--card: oklch(0.98 0.008 301.369);
--card-foreground: oklch(0.076 0.021 302.206);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.356 0.069 298.168);
--primary-foreground: oklch(0.891 0.024 301.06);
--secondary: oklch(0.917 0.009 301.331);
--secondary-foreground: oklch(0.396 0.034 300.093);
--accent: oklch(0.917 0.009 301.331);
--accent-foreground: oklch(0.396 0.034 300.093);
--destructive: oklch(0.339 0.106 38.167);
--destructive-foreground: oklch(0.835 0.089 40.833);
--ring: oklch(0.356 0.069 298.168);
--chart-1: oklch(0.356 0.069 298.168);
--chart-2: oklch(0.917 0.009 301.331);
--chart-3: oklch(0.917 0.009 301.331);
--chart-4: oklch(0.942 0.006 301.384);
--chart-5: oklch(0.352 0.076 297.723);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.083 0.012 301.865);
--foreground: oklch(1 0 180);
--muted: oklch(0.218 0.012 300.585);
--muted-foreground: oklch(0.788 0.026 300.966);
--popover: oklch(0.083 0.012 301.865);
--popover-foreground: oklch(1 0 180);
--card: oklch(0.104 0.016 301.865);
--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.356 0.069 298.168);
--primary-foreground: oklch(0.891 0.024 301.06);
--secondary: oklch(0.298 0.02 300.427);
--secondary-foreground: oklch(0.826 0.017 301.165);
--accent: oklch(0.298 0.02 300.427);
--accent-foreground: oklch(0.826 0.017 301.165);
--destructive: oklch(0.68 0.195 38.785);
--destructive-foreground: oklch(0 0 0);
--ring: oklch(0.356 0.069 298.168);
--chart-1: oklch(0.356 0.069 298.168);
--chart-2: oklch(0.298 0.02 300.427);
--chart-3: oklch(0.298 0.02 300.427);
--chart-4: oklch(0.326 0.022 300.391);
--chart-5: oklch(0.352 0.076 297.723);
}