Smalt Leech is a shadcn/ui theme built around a vivid blue primary color (#023298) with vivid deep blue accents (#00284e). The light mode uses a neutral background (#fcfaf7). Dark mode switches to a vivid orange primary (#e66700) on an orange-tinted background (#0a0705).
| Token | Light | Dark |
|---|---|---|
| Background | #fcfaf7snow | #0a0705black |
| Foreground | #001729black | #faf7f5whitesmoke |
| Card | #fcfaf7snow | #0a0705black |
| Card foreground | #001729black | #faf7f5whitesmoke |
| Popover | #fcfaf7snow | #0a0705black |
| Popover foreground | #001729black | #faf7f5whitesmoke |
| Primary | #023298darkblue | #e66700chocolate |
| Primary foreground | #ffffffwhite | #000000black |
| Secondary | #0273cddodgerblue | #00e667springgreen |
| Secondary foreground | #ffffffwhite | #001a0bblack |
| Muted | #ebf4efwhitesmoke | #0b140fblack |
| Muted foreground | #43564cdarkslategray | #a9bcb2darkgray |
| Accent | #00284emidnightblue | #6700e6darkviolet |
| Accent foreground | #ffffffwhite | #ffffffwhite |
| Destructive | #9b2122brown | #f35f39tomato |
| Destructive foreground | #ffffffwhite | #000000black |
| Border | #e6e3e0gainsboro | #1f1c19black |
| Input | #e6e3e0gainsboro | #1f1c19black |
| Ring | #0273cddodgerblue | #e66700chocolate |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 17.43:1 | AAA |
| Text on card | 17.43:1 | AAA |
| Primary button | 10.98:1 | AAA |
| Secondary button | 4.84:1 | AA |
| Muted text | 7.01:1 | AAA |
| Accent | 14.85:1 | AAA |
| Destructive | 7.97:1 | AAA |
| Text on background | 18.79:1 | AAA |
| Text on card | 18.79:1 | AAA |
| Primary button | 6.29:1 | AA |
| Secondary button | 10.81:1 | AAA |
| Muted text | 9.39:1 | AAA |
| Accent | 7.72:1 | AAA |
| Destructive | 6.51:1 | AA |
Paste this into your globals.css to use Smalt Leech in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.986 0.004 62.136);
--foreground: oklch(0.197 0.048 243.348);
--muted: oklch(0.96 0.012 162.313);
--muted-foreground: oklch(0.435 0.03 160.755);
--popover: oklch(0.986 0.004 62.136);
--popover-foreground: oklch(0.197 0.048 243.348);
--card: oklch(0.986 0.004 62.136);
--card-foreground: oklch(0.197 0.048 243.348);
--border: oklch(0.917 0.006 62.11);
--input: oklch(0.917 0.006 62.11);
--primary: oklch(0.368 0.173 262.504);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.552 0.163 251.747);
--secondary-foreground: oklch(1 0 180);
--accent: oklch(0.275 0.082 251.805);
--accent-foreground: oklch(1 0 180);
--destructive: oklch(0.453 0.158 25.897);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.552 0.163 251.747);
--chart-1: oklch(0.368 0.173 262.504);
--chart-2: oklch(0.552 0.163 251.747);
--chart-3: oklch(0.275 0.082 251.805);
--chart-4: oklch(0.581 0.173 251.89);
--chart-5: oklch(0.369 0.177 262.426);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.134 0.009 67.251);
--foreground: oklch(0.978 0.004 62.143);
--muted: oklch(0.18 0.017 159.962);
--muted-foreground: oklch(0.778 0.027 161.744);
--popover: oklch(0.134 0.009 67.251);
--popover-foreground: oklch(0.978 0.004 62.143);
--card: oklch(0.134 0.009 67.251);
--card-foreground: oklch(0.978 0.004 62.143);
--border: oklch(0.228 0.008 61.707);
--input: oklch(0.228 0.008 61.707);
--primary: oklch(0.659 0.179 48.088);
--primary-foreground: oklch(0 0 0);
--secondary: oklch(0.806 0.226 149.329);
--secondary-foreground: oklch(0.19 0.045 157.463);
--accent: oklch(0.478 0.27 289.842);
--accent-foreground: oklch(1 0 180);
--destructive: oklch(0.672 0.191 35.11);
--destructive-foreground: oklch(0 0 0);
--ring: oklch(0.659 0.179 48.088);
--chart-1: oklch(0.659 0.179 48.088);
--chart-2: oklch(0.806 0.226 149.329);
--chart-3: oklch(0.478 0.27 289.842);
--chart-4: oklch(0.847 0.237 149.26);
--chart-5: oklch(0.664 0.183 47.508);
}