Warrant is a shadcn/ui theme built around a teal primary color (#2ac0a7) with red accents (#c02a43). The light mode uses a neutral background (#f8fcfb). Dark mode keeps the teal primary (#2ac0a7) on a teal-tinted background (#050a09).
| Token | Light | Dark |
|---|---|---|
| Background | #f8fcfbmintcream | #050a09black |
| Foreground | #020807black | #fcfdfdwhite |
| Card | #f5faf9mintcream | #070d0cblack |
| Card foreground | #010404black | #ffffffwhite |
| Popover | #f8fcfbmintcream | #050a09black |
| Popover foreground | #020807black | #fcfdfdwhite |
| Primary | #2ac0a7lightseagreen | #2ac0a7lightseagreen |
| Primary foreground | #061916black | #061916black |
| Secondary | #c02a43crimson | #c02a43crimson |
| Secondary foreground | #ffffffwhite | #ffffffwhite |
| Muted | #e4cdd1lightgrey | #321b1fblack |
| Muted foreground | #575757dimgray | #a8a8a8darkgray |
| Accent | #c02a43crimson | #c02a43crimson |
| Accent foreground | #ffffffwhite | #ffffffwhite |
| Destructive | #600906maroon | #f01b14red |
| Destructive foreground | #f9a29flightsalmon | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #2ac0a7lightseagreen | #2ac0a7lightseagreen |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.48:1 | AAA |
| Text on card | 19.51:1 | AAA |
| Primary button | 7.97:1 | AAA |
| Secondary button | 5.72:1 | AA |
| Muted text | 4.81:1 | AA |
| Accent | 5.72:1 | AA |
| Destructive | 6.95:1 | AA |
| Text on background | 19.54:1 | AAA |
| Text on card | 19.54:1 | AAA |
| Primary button | 7.97:1 | AAA |
| Secondary button | 5.72:1 | AA |
| Muted text | 6.75:1 | AA |
| Accent | 5.72:1 | AA |
| Destructive | 4.30:1 | AA Large |
Paste this into your globals.css to use Warrant in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.987 0.004 185.35);
--foreground: oklch(0.125 0.014 185.12);
--muted: oklch(0.869 0.026 6.22);
--muted-foreground: oklch(0.456 0 180);
--popover: oklch(0.987 0.004 185.35);
--popover-foreground: oklch(0.125 0.014 185.12);
--card: oklch(0.981 0.006 185.299);
--card-foreground: oklch(0.099 0.011 185.12);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.728 0.125 178.185);
--primary-foreground: oklch(0.196 0.027 181.298);
--secondary: oklch(0.534 0.185 17.541);
--secondary-foreground: oklch(1 0 180);
--accent: oklch(0.534 0.185 17.541);
--accent-foreground: oklch(1 0 180);
--destructive: oklch(0.314 0.119 28.84);
--destructive-foreground: oklch(0.798 0.104 21.804);
--ring: oklch(0.728 0.125 178.185);
--chart-1: oklch(0.728 0.125 178.185);
--chart-2: oklch(0.534 0.185 17.541);
--chart-3: oklch(0.534 0.185 17.541);
--chart-4: oklch(0.559 0.194 17.639);
--chart-5: oklch(0.737 0.129 177.881);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.139 0.01 185.244);
--foreground: oklch(0.993 0.001 185.424);
--muted: oklch(0.254 0.037 9.222);
--muted-foreground: oklch(0.733 0 180);
--popover: oklch(0.139 0.01 185.244);
--popover-foreground: oklch(0.993 0.001 185.424);
--card: oklch(0.154 0.011 184.017);
--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.728 0.125 178.185);
--primary-foreground: oklch(0.196 0.027 181.298);
--secondary: oklch(0.534 0.185 17.541);
--secondary-foreground: oklch(1 0 180);
--accent: oklch(0.534 0.185 17.541);
--accent-foreground: oklch(1 0 180);
--destructive: oklch(0.607 0.239 29.089);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.728 0.125 178.185);
--chart-1: oklch(0.728 0.125 178.185);
--chart-2: oklch(0.534 0.185 17.541);
--chart-3: oklch(0.534 0.185 17.541);
--chart-4: oklch(0.559 0.194 17.639);
--chart-5: oklch(0.737 0.129 177.881);
}