Engine for shadcn/ui

Engine is a shadcn/ui theme built around a near-white primary color (#fffafc) with near-white accents (#fafffd). The light mode uses a neutral background (#fdfcfc). Dark mode keeps the near-white primary (#fffafc) on a pink-tinted background (#0a0507).

Color palette

TokenLightDark
Background
#fdfcfcsnow
#0a0507black
Foreground
#040102black
#fdfcfcsnow
Card
#fdfcfcsnow
#0a0507black
Card foreground
#040102black
#fdfcfcsnow
Popover
#fdfcfcsnow
#0a0507black
Popover foreground
#040102black
#fdfcfcsnow
Primary
#fffafcsnow
#fffafcsnow
Primary foreground
#61002dmaroon
#61002dmaroon
Secondary
#fafffdwhite
#fafffdwhite
Secondary foreground
#006134darkgreen
#006134darkgreen
Muted
#e5f0eblavender
#0f1a15black
Muted foreground
#464e4adarkslategray
#b1b9b5silver
Accent
#fafffdwhite
#fafffdwhite
Accent foreground
#006134darkgreen
#006134darkgreen
Destructive
#a73911brown
#da4a16chocolate
Destructive foreground
#ffffffwhite
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#fffafcsnow
#fffafcsnow

Contrast

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

Light mode
Text on background20.26:1AAA
Text on card20.26:1AAA
Primary button13.14:1AAA
Secondary button7.52:1AAA
Muted text7.34:1AAA
Accent7.52:1AAA
Destructive6.49:1AA
Dark mode
Text on background19.75:1AAA
Text on card19.75:1AAA
Primary button13.14:1AAA
Secondary button7.52:1AAA
Muted text8.90:1AAA
Accent7.52:1AAA
Destructive4.22:1AA Large

CSS variables

Paste this into your globals.css to use Engine in your shadcn/ui project.

:root {
  --radius: 0.5rem;
  --background: oklch(0.991 0.002 346.96);
  --foreground: oklch(0.084 0.017 346.611);
  --muted: oklch(0.945 0.013 166.528);
  --muted-foreground: oklch(0.415 0.011 166.16);
  --popover: oklch(0.991 0.002 346.96);
  --popover-foreground: oklch(0.084 0.017 346.611);
  --card: oklch(0.991 0.002 346.96);
  --card-foreground: oklch(0.084 0.017 346.611);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.989 0.006 347.077);
  --primary-foreground: oklch(0.318 0.128 1.952);
  --secondary: oklch(0.996 0.006 166.737);
  --secondary-foreground: oklch(0.432 0.108 154.328);
  --accent: oklch(0.996 0.006 166.737);
  --accent-foreground: oklch(0.432 0.108 154.328);
  --destructive: oklch(0.498 0.153 37.918);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.989 0.006 347.077);
  --chart-1: oklch(0.989 0.006 347.077);
  --chart-2: oklch(0.996 0.006 166.737);
  --chart-3: oklch(0.996 0.006 166.737);
  --chart-4: oklch(1.009 0.012 347.237);
  --chart-5: oklch(0.989 0.006 347.082);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.126 0.014 346.748);
  --foreground: oklch(0.992 0.001 346.938);
  --muted: oklch(0.204 0.018 164.169);
  --muted-foreground: oklch(0.778 0.01 166.57);
  --popover: oklch(0.126 0.014 346.748);
  --popover-foreground: oklch(0.992 0.001 346.938);
  --card: oklch(0.126 0.014 346.748);
  --card-foreground: oklch(0.992 0.001 346.938);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.989 0.006 347.077);
  --primary-foreground: oklch(0.318 0.128 1.952);
  --secondary: oklch(0.996 0.006 166.737);
  --secondary-foreground: oklch(0.432 0.108 154.328);
  --accent: oklch(0.996 0.006 166.737);
  --accent-foreground: oklch(0.432 0.108 154.328);
  --destructive: oklch(0.604 0.189 37.611);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.989 0.006 347.077);
  --chart-1: oklch(0.989 0.006 347.077);
  --chart-2: oklch(0.996 0.006 166.737);
  --chart-3: oklch(0.996 0.006 166.737);
  --chart-4: oklch(1.009 0.012 347.237);
  --chart-5: oklch(0.989 0.006 347.082);
}