Drill for shadcn/ui

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).

Color palette

TokenLightDark
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

Contrast

WCAG 2 contrast ratios between each background and its foreground color.

Light mode
Text on background19.00:1AAA
Text on card19.00:1AAA
Primary button12.63:1AAA
Secondary button7.30:1AAA
Muted text5.68:1AA
Accent7.30:1AAA
Destructive7.38:1AAA
Dark mode
Text on background20.76:1AAA
Text on card20.76:1AAA
Primary button12.63:1AAA
Secondary button7.93:1AAA
Muted text6.58:1AA
Accent7.93:1AAA
Destructive7.53:1AAA

CSS variables

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);
}