Leverage is a shadcn/ui theme built around a near-black primary color (#030208) with near-black accents (#070802). The light mode uses a neutral background (#ffffff). Dark mode keeps the near-black primary (#030208) on a neutral background (#020104).
| Token | Light | Dark |
|---|---|---|
| Background | #ffffffwhite | #020104black |
| Foreground | #000000black | #f9f8fbghostwhite |
| Card | #ffffffwhite | #020104black |
| Card foreground | #000000black | #f9f8fbghostwhite |
| Popover | #ffffffwhite | #020104black |
| Popover foreground | #000000black | #f9f8fbghostwhite |
| Primary | #030208black | #030208black |
| Primary foreground | #beb6edlightsteelblue | #beb6edlightsteelblue |
| Secondary | #070802black | #070802black |
| Secondary foreground | #98ab2byellowgreen | #98ab2byellowgreen |
| Muted | #f2f4e7linen | #16180bblack |
| Muted foreground | #484847darkslategray | #b8b8b7silver |
| Accent | #070802black | #070802black |
| Accent foreground | #98ab2byellowgreen | #98ab2byellowgreen |
| Destructive | #7f330asaddlebrown | #ec5f13chocolate |
| Destructive foreground | #fad5c2peachpuff | #000000black |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #030208black | #030208black |
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 | 10.92:1 | AAA |
| Secondary button | 7.83:1 | AAA |
| Muted text | 8.20:1 | AAA |
| Accent | 7.83:1 | AAA |
| Destructive | 6.42:1 | AA |
| Text on background | 19.65:1 | AAA |
| Text on card | 19.65:1 | AAA |
| Primary button | 10.92:1 | AAA |
| Secondary button | 7.83:1 | AAA |
| Muted text | 9.00:1 | AAA |
| Accent | 7.83:1 | AAA |
| Destructive | 6.20:1 | AA |
Paste this into your globals.css to use Leverage in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(1 0 180);
--foreground: oklch(0 0 0);
--muted: oklch(0.961 0.018 113.647);
--muted-foreground: oklch(0.401 0.002 113.416);
--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.095 0.023 291.307);
--primary-foreground: oklch(0.801 0.078 291.418);
--secondary: oklch(0.131 0.019 114.297);
--secondary-foreground: oklch(0.704 0.149 117.971);
--accent: oklch(0.131 0.019 114.297);
--accent-foreground: oklch(0.704 0.149 117.971);
--destructive: oklch(0.423 0.116 43.763);
--destructive-foreground: oklch(0.9 0.049 50.009);
--ring: oklch(0.095 0.023 291.307);
--chart-1: oklch(0.095 0.023 291.307);
--chart-2: oklch(0.131 0.019 114.297);
--chart-3: oklch(0.131 0.019 114.297);
--chart-4: oklch(0.186 0.03 115.994);
--chart-5: oklch(0.094 0.024 291.141);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.08 0.013 291.997);
--foreground: oklch(0.981 0.004 293.228);
--muted: oklch(0.205 0.025 115.571);
--muted-foreground: oklch(0.783 0.002 113.354);
--popover: oklch(0.08 0.013 291.997);
--popover-foreground: oklch(0.981 0.004 293.228);
--card: oklch(0.08 0.013 291.997);
--card-foreground: oklch(0.981 0.004 293.228);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.095 0.023 291.307);
--primary-foreground: oklch(0.801 0.078 291.418);
--secondary: oklch(0.131 0.019 114.297);
--secondary-foreground: oklch(0.704 0.149 117.971);
--accent: oklch(0.131 0.019 114.297);
--accent-foreground: oklch(0.704 0.149 117.971);
--destructive: oklch(0.658 0.19 42.579);
--destructive-foreground: oklch(0 0 0);
--ring: oklch(0.095 0.023 291.307);
--chart-1: oklch(0.095 0.023 291.307);
--chart-2: oklch(0.131 0.019 114.297);
--chart-3: oklch(0.131 0.019 114.297);
--chart-4: oklch(0.186 0.03 115.994);
--chart-5: oklch(0.094 0.024 291.141);
}