Drill is a shadcn/ui theme built around a near-white primary color (#ffffff) with muted light red accents (#e9e2e2). The light mode uses a neutral background (#fdf7f7). Dark mode keeps the near-white primary (#ffffff) on a neutral background (#040101).
| Token | Light | Dark |
|---|---|---|
| Background | #fdf7f7snow | #040101black |
| Foreground | #100404black | #ffffffwhite |
| Card | #fdf7f7snow | #040101black |
| Card foreground | #100404black | #ffffffwhite |
| Popover | #fdf7f7snow | #040101black |
| Popover foreground | #100404black | #ffffffwhite |
| Primary | #ffffffwhite | #ffffffwhite |
| Primary foreground | #333333darkslategray | #333333darkslategray |
| Secondary | #e9e2e2gainsboro | #392d2ddarkslategray |
| Secondary foreground | #584141darkslategray | #d2c6c6lightgrey |
| Muted | #f2e8e8linen | #170d0dblack |
| Muted foreground | #6d5555dimgray | #aa9292rosybrown |
| Accent | #e9e2e2gainsboro | #392d2ddarkslategray |
| Accent foreground | #584141darkslategray | #d2c6c6lightgrey |
| Destructive | #973602saddlebrown | #fc7127tomato |
| Destructive foreground | #ffffffwhite | #000000black |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #ffffffwhite | #ffffffwhite |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.00:1 | AAA |
| Text on card | 19.00:1 | AAA |
| Primary button | 12.63:1 | AAA |
| Secondary button | 7.30:1 | AAA |
| Muted text | 5.68:1 | AA |
| Accent | 7.30:1 | AAA |
| Destructive | 7.38:1 | AAA |
| Text on background | 20.76:1 | AAA |
| Text on card | 20.76:1 | AAA |
| Primary button | 12.63:1 | AAA |
| Secondary button | 7.93:1 | AAA |
| Muted text | 6.58:1 | AA |
| Accent | 7.93:1 | AAA |
| Destructive | 7.53:1 | AAA |
Paste this into your globals.css to use Drill in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.98 0.007 17.272);
--foreground: oklch(0.131 0.027 21.355);
--muted: oklch(0.94 0.01 17.343);
--muted-foreground: oklch(0.474 0.031 18.301);
--popover: oklch(0.98 0.007 17.272);
--popover-foreground: oklch(0.131 0.027 21.355);
--card: oklch(0.98 0.007 17.272);
--card-foreground: oklch(0.131 0.027 21.355);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(1 0 180);
--primary-foreground: oklch(0.321 0 180);
--secondary: oklch(0.918 0.008 17.308);
--secondary-foreground: oklch(0.4 0.032 18.584);
--accent: oklch(0.918 0.008 17.308);
--accent-foreground: oklch(0.4 0.032 18.584);
--destructive: oklch(0.466 0.14 41.734);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(1 0 180);
--chart-1: oklch(1 0 180);
--chart-2: oklch(0.918 0.008 17.308);
--chart-3: oklch(0.918 0.008 17.308);
--chart-4: oklch(0.943 0.006 17.259);
--chart-5: oklch(1 0 180);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.084 0.011 19.708);
--foreground: oklch(1 0 180);
--muted: oklch(0.173 0.017 18.918);
--muted-foreground: oklch(0.682 0.028 17.856);
--popover: oklch(0.084 0.011 19.708);
--popover-foreground: oklch(1 0 180);
--card: oklch(0.084 0.011 19.708);
--card-foreground: oklch(1 0 180);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(1 0 180);
--primary-foreground: oklch(0.321 0 180);
--secondary: oklch(0.311 0.016 18.074);
--secondary-foreground: oklch(0.837 0.013 17.408);
--accent: oklch(0.311 0.016 18.074);
--accent-foreground: oklch(0.837 0.013 17.408);
--destructive: oklch(0.707 0.187 44.489);
--destructive-foreground: oklch(0 0 0);
--ring: oklch(1 0 180);
--chart-1: oklch(1 0 180);
--chart-2: oklch(0.311 0.016 18.074);
--chart-3: oklch(0.311 0.016 18.074);
--chart-4: oklch(0.34 0.019 18.104);
--chart-5: oklch(1 0 180);
}