Motiion for shadcn/ui

Motiion is a shadcn/ui theme built around a near-black primary color (#1c1e21) with vivid teal accents (#00baa6). The light mode uses a neutral background (#ffffff). Dark mode keeps the near-black primary (#1c1e21) on a neutral background (#030407).

Color palette

TokenLightDark
Background
#ffffffwhite
#030407black
Foreground
#030711black
#f8f9fbghostwhite
Card
#fafafasnow
#04060bblack
Card foreground
#1c1e21black
#fcfcfdwhite
Popover
#f8f9fcghostwhite
#04060bblack
Popover foreground
#02050dblack
#fcfcfdwhite
Primary
#1c1e21black
#1c1e21black
Primary foreground
#b3b5bdsilver
#b3b5bdsilver
Secondary
#00564cdarkslategray
#1c2021black
Secondary foreground
#ffffffwhite
#b3babdsilver
Muted
#ccdfe5gainsboro
#1a2d33darkslategray
Muted foreground
#78899blightslategray
#8d9fa5darkgray
Accent
#00baa6lightseagreen
#1e1c21black
Accent foreground
#ffffffwhite
#b5b3bdsilver
Destructive
#cc0124crimson
#e94b01orangered
Destructive foreground
#ffffffwhite
#ffffffwhite
Border
#ebedf0lavender
#17181cblack
Input
#ebedf0lavender
#17181cblack
Ring
#00564cdarkslategray
#1c1e21black

Contrast

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

Light mode
Text on background20.14:1AAA
Text on card16.00:1AAA
Primary button8.18:1AAA
Secondary button8.62:1AAA
Muted text2.60:1Fail
Accent2.44:1Fail
Destructive5.83:1AA
Dark mode
Text on background19.47:1AAA
Text on card19.77:1AAA
Primary button8.18:1AAA
Secondary button8.36:1AAA
Muted text5.23:1AA
Accent8.14:1AAA
Destructive3.83:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(1 0 180);
  --foreground: oklch(0.128 0.027 262.988);
  --muted: oklch(0.892 0.022 219.717);
  --muted-foreground: oklch(0.623 0.034 249.877);
  --popover: oklch(0.982 0.004 271.369);
  --popover-foreground: oklch(0.115 0.023 261.755);
  --card: oklch(0.985 0 170.538);
  --card-foreground: oklch(0.234 0.007 258.363);
  --border: oklch(0.945 0.005 258.325);
  --input: oklch(0.945 0.005 258.325);
  --primary: oklch(0.233 0.006 271.137);
  --primary-foreground: oklch(0.774 0.011 271.274);
  --secondary: oklch(0.406 0.073 181.536);
  --secondary-foreground: oklch(1 0 180);
  --accent: oklch(0.708 0.127 181.543);
  --accent-foreground: oklch(1 0 180);
  --destructive: oklch(0.533 0.215 24.287);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.406 0.073 181.536);
  --chart-1: oklch(0.233 0.006 271.137);
  --chart-2: oklch(0.406 0.073 181.536);
  --chart-3: oklch(0.708 0.127 181.543);
  --chart-4: oklch(0.455 0.082 181.267);
  --chart-5: oklch(0.231 0.009 271);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.106 0.013 265.451);
  --foreground: oklch(0.983 0.003 271.38);
  --muted: oklch(0.282 0.027 221.018);
  --muted-foreground: oklch(0.69 0.023 219.805);
  --popover: oklch(0.121 0.015 265.548);
  --popover-foreground: oklch(0.991 0.002 271.395);
  --card: oklch(0.121 0.015 265.548);
  --card-foreground: oklch(0.991 0.002 271.395);
  --border: oklch(0.211 0.006 271.114);
  --input: oklch(0.211 0.006 271.114);
  --primary: oklch(0.233 0.006 271.137);
  --primary-foreground: oklch(0.774 0.011 271.274);
  --secondary: oklch(0.239 0.005 219.688);
  --secondary-foreground: oklch(0.784 0.009 219.596);
  --accent: oklch(0.231 0.008 297.186);
  --accent-foreground: oklch(0.771 0.014 297.495);
  --destructive: oklch(0.63 0.205 38.122);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.233 0.006 271.137);
  --chart-1: oklch(0.233 0.006 271.137);
  --chart-2: oklch(0.239 0.005 219.688);
  --chart-3: oklch(0.231 0.008 297.186);
  --chart-4: oklch(0.272 0.006 219.702);
  --chart-5: oklch(0.231 0.009 271);
}