Leading is a shadcn/ui theme built around a deep green primary color (#175e30) with muted light green accents (#d5ddd8). The light mode uses a neutral background (#f8fcf9). Dark mode keeps the deep green primary (#175e30) on a neutral background (#010402).
| Token | Light | Dark |
|---|---|---|
| Background | #f8fcf9mintcream | #010402black |
| Foreground | #000000black | #ffffffwhite |
| Card | #f8fcf9mintcream | #010402black |
| Card foreground | #000000black | #ffffffwhite |
| Popover | #f8fcf9mintcream | #010402black |
| Popover foreground | #000000black | #ffffffwhite |
| Primary | #175e30darkslategray | #175e30darkslategray |
| Primary foreground | #baeeccpowderblue | #baeeccpowderblue |
| Secondary | #d5ddd8gainsboro | #1a1e1bblack |
| Secondary foreground | #39463edarkslategray | #b0bab3darkgray |
| Muted | #e4ece7lavender | #131b16black |
| Muted foreground | #4f6958dimgray | #96b09fdarkseagreen |
| Accent | #d5ddd8gainsboro | #1a1e1bblack |
| Accent foreground | #39463edarkslategray | #b0bab3darkgray |
| Destructive | #770f0dmaroon | #eb4a47tomato |
| Destructive foreground | #f8c0bflightpink | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #175e30darkslategray | #175e30darkslategray |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 20.26:1 | AAA |
| Text on card | 20.26:1 | AAA |
| Primary button | 6.05:1 | AA |
| Secondary button | 7.12:1 | AAA |
| Muted text | 4.99:1 | AA |
| Accent | 7.12:1 | AAA |
| Destructive | 7.12:1 | AAA |
| Text on background | 20.61:1 | AAA |
| Text on card | 20.61:1 | AAA |
| Primary button | 6.05:1 | AA |
| Secondary button | 8.44:1 | AAA |
| Muted text | 7.53:1 | AAA |
| Accent | 8.44:1 | AAA |
| Destructive | 3.75:1 | AA Large |
Paste this into your globals.css to use Leading in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.987 0.005 157.873);
--foreground: oklch(0 0 0);
--muted: oklch(0.936 0.011 157.729);
--muted-foreground: oklch(0.494 0.04 156.124);
--popover: oklch(0.987 0.005 157.873);
--popover-foreground: oklch(0 0 0);
--card: oklch(0.987 0.005 157.873);
--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.426 0.101 150.827);
--primary-foreground: oklch(0.903 0.071 156.219);
--secondary: oklch(0.889 0.011 157.732);
--secondary-foreground: oklch(0.381 0.022 156.731);
--accent: oklch(0.889 0.011 157.732);
--accent-foreground: oklch(0.381 0.022 156.731);
--destructive: oklch(0.367 0.138 28);
--destructive-foreground: oklch(0.857 0.065 19.624);
--ring: oklch(0.426 0.101 150.827);
--chart-1: oklch(0.426 0.101 150.827);
--chart-2: oklch(0.889 0.011 157.732);
--chart-3: oklch(0.889 0.011 157.732);
--chart-4: oklch(0.911 0.008 157.789);
--chart-5: oklch(0.431 0.105 150.51);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.097 0.012 157.747);
--foreground: oklch(1 0 180);
--muted: oklch(0.212 0.016 156.273);
--muted-foreground: oklch(0.733 0.037 156.876);
--popover: oklch(0.097 0.012 157.747);
--popover-foreground: oklch(1 0 180);
--card: oklch(0.097 0.012 157.747);
--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.426 0.101 150.827);
--primary-foreground: oklch(0.903 0.071 156.219);
--secondary: oklch(0.23 0.008 157.272);
--secondary-foreground: oklch(0.78 0.015 157.58);
--accent: oklch(0.23 0.008 157.272);
--accent-foreground: oklch(0.78 0.015 157.58);
--destructive: oklch(0.636 0.198 25.575);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.426 0.101 150.827);
--chart-1: oklch(0.426 0.101 150.827);
--chart-2: oklch(0.23 0.008 157.272);
--chart-3: oklch(0.23 0.008 157.272);
--chart-4: oklch(0.263 0.009 157.217);
--chart-5: oklch(0.431 0.105 150.51);
}