Motor for shadcn/ui

Motor is a shadcn/ui theme built around a deep teal primary color (#071c1d) with deep red accents (#1d0807). The light mode uses a neutral background (#fbfefe). Dark mode keeps the deep teal primary (#071c1d) on a neutral background (#000000).

Color palette

TokenLightDark
Background
#fbfefewhite
#000000black
Foreground
#020809black
#f5fafamintcream
Card
#f7fdfdmintcream
#030303black
Card foreground
#010404black
#f8fcfcmintcream
Popover
#f7fdfdmintcream
#030303black
Popover foreground
#010404black
#f8fcfcmintcream
Primary
#071c1dblack
#071c1dblack
Primary foreground
#30bbc0lightseagreen
#30bbc0lightseagreen
Secondary
#1d0807black
#1d0807black
Secondary foreground
#dd7c78lightcoral
#dd7c78lightcoral
Muted
#ede4e3linen
#1c1212black
Muted foreground
#535050darkslategray
#afacacdarkgray
Accent
#1d0807black
#1d0807black
Accent foreground
#dd7c78lightcoral
#dd7c78lightcoral
Destructive
#92320csaddlebrown
#ed581dchocolate
Destructive foreground
#fce0d5antiquewhite
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#071c1dblack
#071c1dblack

Contrast

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

Light mode
Text on background19.87:1AAA
Text on card19.97:1AAA
Primary button7.55:1AAA
Secondary button6.64:1AA
Muted text6.36:1AA
Accent6.64:1AA
Destructive6.23:1AA
Dark mode
Text on background19.93:1AAA
Text on card20.01:1AAA
Primary button7.55:1AAA
Secondary button6.64:1AA
Muted text8.12:1AAA
Accent6.64:1AA
Destructive3.50:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.994 0.003 199.562);
  --foreground: oklch(0.126 0.016 197.384);
  --muted: oklch(0.925 0.01 19.76);
  --muted-foreground: oklch(0.435 0.004 19.74);
  --popover: oklch(0.989 0.006 199.519);
  --popover-foreground: oklch(0.1 0.013 197.384);
  --card: oklch(0.989 0.006 199.519);
  --card-foreground: oklch(0.1 0.013 197.384);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.209 0.027 198.336);
  --primary-foreground: oklch(0.724 0.113 198.486);
  --secondary: oklch(0.168 0.037 24.183);
  --secondary-foreground: oklch(0.692 0.122 22.78);
  --accent: oklch(0.168 0.037 24.183);
  --accent-foreground: oklch(0.692 0.122 22.78);
  --destructive: oklch(0.453 0.138 38.793);
  --destructive-foreground: oklch(0.925 0.034 42.838);
  --ring: oklch(0.209 0.027 198.336);
  --chart-1: oklch(0.209 0.027 198.336);
  --chart-2: oklch(0.168 0.037 24.183);
  --chart-3: oklch(0.168 0.037 24.183);
  --chart-4: oklch(0.2 0.05 24.611);
  --chart-5: oklch(0.211 0.028 198.312);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0 0 0);
  --foreground: oklch(0.981 0.006 199.527);
  --muted: oklch(0.196 0.016 20.851);
  --muted-foreground: oklch(0.747 0.004 19.673);
  --popover: oklch(0.092 0 180);
  --popover-foreground: oklch(0.987 0.004 199.553);
  --card: oklch(0.092 0 180);
  --card-foreground: oklch(0.987 0.004 199.553);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.209 0.027 198.336);
  --primary-foreground: oklch(0.724 0.113 198.486);
  --secondary: oklch(0.168 0.037 24.183);
  --secondary-foreground: oklch(0.692 0.122 22.78);
  --accent: oklch(0.168 0.037 24.183);
  --accent-foreground: oklch(0.692 0.122 22.78);
  --destructive: oklch(0.65 0.195 38.974);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.209 0.027 198.336);
  --chart-1: oklch(0.209 0.027 198.336);
  --chart-2: oklch(0.168 0.037 24.183);
  --chart-3: oklch(0.168 0.037 24.183);
  --chart-4: oklch(0.2 0.05 24.611);
  --chart-5: oklch(0.211 0.028 198.312);
}