Trowel is a shadcn/ui theme built around a purple primary color (#da73dd) with green accents (#77dd73). The light mode uses a neutral background (#ffffff). Dark mode keeps the purple primary (#da73dd) on a neutral background (#030204).
| Token | Light | Dark |
|---|---|---|
| Background | #ffffffwhite | #030204black |
| Foreground | #000000black | #fdfcfdwhite |
| Card | #ffffffwhite | #030204black |
| Card foreground | #000000black | #fdfcfdwhite |
| Popover | #ffffffwhite | #030204black |
| Popover foreground | #000000black | #fdfcfdwhite |
| Primary | #da73ddorchid | #da73ddorchid |
| Primary foreground | #180619black | #180619black |
| Secondary | #77dd73lightgreen | #77dd73lightgreen |
| Secondary foreground | #071906black | #071906black |
| Muted | #e4e7e4gainsboro | #181b18black |
| Muted foreground | #4a554adarkslategray | #abb5aadarkgray |
| Accent | #77dd73lightgreen | #77dd73lightgreen |
| Accent foreground | #071906black | #071906black |
| Destructive | #953609saddlebrown | #e6530forangered |
| Destructive foreground | #ffffffwhite | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #da73ddorchid | #da73ddorchid |
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 | 6.94:1 | AA |
| Secondary button | 10.77:1 | AAA |
| Muted text | 6.26:1 | AA |
| Accent | 10.77:1 | AAA |
| Destructive | 7.51:1 | AAA |
| Text on background | 20.25:1 | AAA |
| Text on card | 20.25:1 | AAA |
| Primary button | 6.94:1 | AA |
| Secondary button | 10.77:1 | AAA |
| Muted text | 8.21:1 | AAA |
| Accent | 10.77:1 | AAA |
| Destructive | 3.74:1 | AA Large |
Paste this into your globals.css to use Trowel in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(1 0 180);
--foreground: oklch(0 0 0);
--muted: oklch(0.925 0.004 144.589);
--muted-foreground: oklch(0.435 0.022 144.28);
--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.71 0.182 326.044);
--primary-foreground: oklch(0.164 0.047 326.227);
--secondary: oklch(0.812 0.172 143.141);
--secondary-foreground: oklch(0.19 0.044 142.826);
--accent: oklch(0.812 0.172 143.141);
--accent-foreground: oklch(0.19 0.044 142.826);
--destructive: oklch(0.462 0.137 40.557);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.71 0.182 326.044);
--chart-1: oklch(0.71 0.182 326.044);
--chart-2: oklch(0.812 0.172 143.141);
--chart-3: oklch(0.812 0.172 143.141);
--chart-4: oklch(0.826 0.159 143.289);
--chart-5: oklch(0.71 0.19 326.094);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.088 0.013 325.723);
--foreground: oklch(0.992 0.002 324.629);
--muted: oklch(0.217 0.006 144.434);
--muted-foreground: oklch(0.763 0.02 144.452);
--popover: oklch(0.088 0.013 325.723);
--popover-foreground: oklch(0.992 0.002 324.629);
--card: oklch(0.088 0.013 325.723);
--card-foreground: oklch(0.992 0.002 324.629);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.71 0.182 326.044);
--primary-foreground: oklch(0.164 0.047 326.227);
--secondary: oklch(0.812 0.172 143.141);
--secondary-foreground: oklch(0.19 0.044 142.826);
--accent: oklch(0.812 0.172 143.141);
--accent-foreground: oklch(0.19 0.044 142.826);
--destructive: oklch(0.634 0.194 39.788);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.71 0.182 326.044);
--chart-1: oklch(0.71 0.182 326.044);
--chart-2: oklch(0.812 0.172 143.141);
--chart-3: oklch(0.812 0.172 143.141);
--chart-4: oklch(0.826 0.159 143.289);
--chart-5: oklch(0.71 0.19 326.094);
}