Leading is a shadcn/ui theme built around a muted indigo primary color (#43456b) with muted yellow accents (#6b6943). The light mode uses a neutral background (#f8f8fc). Dark mode keeps the muted indigo primary (#43456b) on an indigo-tinted background (#06060e).
| Token | Light | Dark |
|---|---|---|
| Background | #f8f8fcghostwhite | #06060eblack |
| Foreground | #03040cblack | #f8f8fcghostwhite |
| Card | #f8f8fcghostwhite | #06060eblack |
| Card foreground | #03040cblack | #f8f8fcghostwhite |
| Popover | #f8f8fcghostwhite | #06060eblack |
| Popover foreground | #03040cblack | #f8f8fcghostwhite |
| Primary | #43456bdarkslateblue | #43456bdarkslateblue |
| Primary foreground | #ecedf3lavender | #ecedf3lavender |
| Secondary | #6b6943darkolivegreen | #6b6943darkolivegreen |
| Secondary foreground | #ffffffwhite | #ffffffwhite |
| Muted | #e5e4d1gainsboro | #2e2d1adarkslategray |
| Muted foreground | #57574cdarkolivegreen | #b3b3a8darkgray |
| Accent | #6b6943darkolivegreen | #6b6943darkolivegreen |
| Accent foreground | #ffffffwhite | #ffffffwhite |
| Destructive | #7a180bmaroon | #e62c14orangered |
| Destructive foreground | #f9c4bdlightpink | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #43456bdarkslateblue | #43456bdarkslateblue |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.34:1 | AAA |
| Text on card | 19.34:1 | AAA |
| Primary button | 7.83:1 | AAA |
| Secondary button | 5.66:1 | AA |
| Muted text | 5.70:1 | AA |
| Accent | 5.66:1 | AA |
| Destructive | 6.97:1 | AA |
| Text on background | 19.02:1 | AAA |
| Text on card | 19.02:1 | AAA |
| Primary button | 7.83:1 | AAA |
| Secondary button | 5.66:1 | AA |
| Muted text | 6.61:1 | AA |
| Accent | 5.66:1 | AA |
| Destructive | 4.43:1 | AA Large |
Paste this into your globals.css to use Leading in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.981 0.004 283.892);
--foreground: oklch(0.111 0.022 278.689);
--muted: oklch(0.915 0.025 104.435);
--muted-foreground: oklch(0.453 0.017 104.6);
--popover: oklch(0.981 0.004 283.892);
--popover-foreground: oklch(0.111 0.022 278.689);
--card: oklch(0.981 0.004 283.892);
--card-foreground: oklch(0.111 0.022 278.689);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.405 0.063 280.853);
--primary-foreground: oklch(0.946 0.009 283.807);
--secondary: oklch(0.512 0.055 105.616);
--secondary-foreground: oklch(1 0 180);
--accent: oklch(0.512 0.055 105.616);
--accent-foreground: oklch(1 0 180);
--destructive: oklch(0.379 0.135 31.041);
--destructive-foreground: oklch(0.866 0.062 27.079);
--ring: oklch(0.405 0.063 280.853);
--chart-1: oklch(0.405 0.063 280.853);
--chart-2: oklch(0.512 0.055 105.616);
--chart-3: oklch(0.512 0.055 105.616);
--chart-4: oklch(0.543 0.059 105.629);
--chart-5: oklch(0.399 0.072 280.313);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.129 0.019 280.538);
--foreground: oklch(0.98 0.005 283.88);
--muted: oklch(0.291 0.032 105.633);
--muted-foreground: oklch(0.763 0.015 104.308);
--popover: oklch(0.129 0.019 280.538);
--popover-foreground: oklch(0.98 0.005 283.88);
--card: oklch(0.129 0.019 280.538);
--card-foreground: oklch(0.98 0.005 283.88);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.405 0.063 280.853);
--primary-foreground: oklch(0.946 0.009 283.807);
--secondary: oklch(0.512 0.055 105.616);
--secondary-foreground: oklch(1 0 180);
--accent: oklch(0.512 0.055 105.616);
--accent-foreground: oklch(1 0 180);
--destructive: oklch(0.598 0.222 30.977);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.405 0.063 280.853);
--chart-1: oklch(0.405 0.063 280.853);
--chart-2: oklch(0.512 0.055 105.616);
--chart-3: oklch(0.512 0.055 105.616);
--chart-4: oklch(0.543 0.059 105.629);
--chart-5: oklch(0.399 0.072 280.313);
}