Motionless for shadcn/ui

Motionless is a shadcn/ui theme built around a deep violet primary color (#150f24) with deep purple accents (#1f0f24). The light mode uses a neutral background (#ffffff). Dark mode keeps the deep violet primary (#150f24) on a neutral background (#020104).

Color palette

TokenLightDark
Background
#ffffffwhite
#020104black
Foreground
#070410black
#fcfcfdwhite
Card
#ffffffwhite
#020104black
Card foreground
#070410black
#fcfcfdwhite
Popover
#ffffffwhite
#020104black
Popover foreground
#070410black
#fcfcfdwhite
Primary
#150f24black
#150f24black
Primary foreground
#a494d1mediumpurple
#a494d1mediumpurple
Secondary
#0f1424black
#0f1424black
Secondary foreground
#94a2d1darkgray
#94a2d1darkgray
Muted
#d6dae5gainsboro
#1a1d29black
Muted foreground
#555b6ddimgray
#9298aadarkgray
Accent
#1f0f24black
#1f0f24black
Accent foreground
#c394d1plum
#c394d1plum
Destructive
#660f00maroon
#ff3c19orangered
Destructive foreground
#ffa899lightsalmon
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#150f24black
#150f24black

Contrast

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

Light mode
Text on background20.31:1AAA
Text on card20.31:1AAA
Primary button6.86:1AA
Secondary button7.28:1AAA
Muted text4.83:1AA
Accent7.35:1AAA
Destructive6.91:1AA
Dark mode
Text on background20.30:1AAA
Text on card20.30:1AAA
Primary button6.86:1AA
Secondary button7.28:1AAA
Muted text5.83:1AA
Accent7.35:1AAA
Destructive3.55:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(1 0 180);
  --foreground: oklch(0.124 0.03 297.044);
  --muted: oklch(0.888 0.016 272.459);
  --muted-foreground: oklch(0.472 0.03 271.905);
  --popover: oklch(1 0 180);
  --popover-foreground: oklch(0.124 0.03 297.044);
  --card: oklch(1 0 180);
  --card-foreground: oklch(0.124 0.03 297.044);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.189 0.041 294.427);
  --primary-foreground: oklch(0.703 0.09 296.261);
  --secondary: oklch(0.195 0.033 270.3);
  --secondary-foreground: oklch(0.719 0.07 271.4);
  --accent: oklch(0.202 0.045 318.004);
  --accent-foreground: oklch(0.731 0.1 318.175);
  --destructive: oklch(0.331 0.122 33.006);
  --destructive-foreground: oklch(0.814 0.106 30.468);
  --ring: oklch(0.189 0.041 294.427);
  --chart-1: oklch(0.189 0.041 294.427);
  --chart-2: oklch(0.195 0.033 270.3);
  --chart-3: oklch(0.202 0.045 318.004);
  --chart-4: oklch(0.223 0.041 270.018);
  --chart-5: oklch(0.187 0.044 294.025);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.077 0.018 298.412);
  --foreground: oklch(0.992 0.001 298.547);
  --muted: oklch(0.233 0.023 271.373);
  --muted-foreground: oklch(0.681 0.027 272.208);
  --popover: oklch(0.077 0.018 298.412);
  --popover-foreground: oklch(0.992 0.001 298.547);
  --card: oklch(0.077 0.018 298.412);
  --card-foreground: oklch(0.992 0.001 298.547);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.189 0.041 294.427);
  --primary-foreground: oklch(0.703 0.09 296.261);
  --secondary: oklch(0.195 0.033 270.3);
  --secondary-foreground: oklch(0.719 0.07 271.4);
  --accent: oklch(0.202 0.045 318.004);
  --accent-foreground: oklch(0.731 0.1 318.175);
  --destructive: oklch(0.653 0.234 32.093);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.189 0.041 294.427);
  --chart-1: oklch(0.189 0.041 294.427);
  --chart-2: oklch(0.195 0.033 270.3);
  --chart-3: oklch(0.202 0.045 318.004);
  --chart-4: oklch(0.223 0.041 270.018);
  --chart-5: oklch(0.187 0.044 294.025);
}