Motionless for shadcn/ui

Motionless is a shadcn/ui theme built around a vivid deep indigo primary color (#1e0881) with vivid deep violet accents (#5b0881). The light mode uses a neutral background (#ffffff). Dark mode keeps the vivid deep indigo primary (#1e0881) on an indigo-tinted background (#08060e).

Color palette

TokenLightDark
Background
#ffffffwhite
#08060eblack
Foreground
#04020dblack
#f6f5fawhitesmoke
Card
#fcfcfcsnow
#0a0812black
Card foreground
#030209black
#f9f8fcghostwhite
Popover
#fcfcfcsnow
#0a0812black
Popover foreground
#030209black
#f9f8fcghostwhite
Primary
#1e0881midnightblue
#1e0881midnightblue
Primary foreground
#cbc1fbthistle
#cbc1fbthistle
Secondary
#082f81midnightblue
#082f81midnightblue
Secondary foreground
#c1d3fblightblue
#c1d3fblightblue
Muted
#f0f1f5whitesmoke
#0a0c0fblack
Muted foreground
#3a3f4adarkslategray
#b5bac5silver
Accent
#5b0881indigo
#5b0881indigo
Accent foreground
#e9c1fblavender
#e9c1fblavender
Destructive
#bd430ffirebrick
#ef6c34tomato
Destructive foreground
#ffffffwhite
#000000black
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#1e0881midnightblue
#1e0881midnightblue

Contrast

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

Light mode
Text on background20.59:1AAA
Text on card20.21:1AAA
Primary button8.89:1AAA
Secondary button8.07:1AAA
Muted text9.35:1AAA
Accent7.48:1AAA
Destructive5.28:1AA
Dark mode
Text on background18.56:1AAA
Text on card18.84:1AAA
Primary button8.89:1AAA
Secondary button8.07:1AAA
Muted text10.07:1AAA
Accent7.48:1AAA
Destructive6.85:1AA

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.106 0.031 292.757);
  --muted: oklch(0.959 0.005 265.982);
  --muted-foreground: oklch(0.369 0.02 265.677);
  --popover: oklch(0.992 0 161.565);
  --popover-foreground: oklch(0.092 0.027 293.063);
  --card: oklch(0.992 0 161.565);
  --card-foreground: oklch(0.092 0.027 293.063);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.295 0.176 274.925);
  --primary-foreground: oklch(0.838 0.081 292.964);
  --secondary: oklch(0.34 0.146 262.688);
  --secondary-foreground: oklch(0.867 0.059 265.564);
  --accent: oklch(0.366 0.177 310.338);
  --accent-foreground: oklch(0.863 0.09 314.986);
  --destructive: oklch(0.548 0.166 39.455);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.295 0.176 274.925);
  --chart-1: oklch(0.295 0.176 274.925);
  --chart-2: oklch(0.34 0.146 262.688);
  --chart-3: oklch(0.366 0.177 310.338);
  --chart-4: oklch(0.365 0.158 262.707);
  --chart-5: oklch(0.295 0.18 274.078);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.13 0.019 293.365);
  --foreground: oklch(0.972 0.007 294.695);
  --muted: oklch(0.153 0.008 265.698);
  --muted-foreground: oklch(0.788 0.016 265.902);
  --popover: oklch(0.141 0.023 292.327);
  --popover-foreground: oklch(0.981 0.004 294.739);
  --card: oklch(0.141 0.023 292.327);
  --card-foreground: oklch(0.981 0.004 294.739);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.295 0.176 274.925);
  --primary-foreground: oklch(0.838 0.081 292.964);
  --secondary: oklch(0.34 0.146 262.688);
  --secondary-foreground: oklch(0.867 0.059 265.564);
  --accent: oklch(0.366 0.177 310.338);
  --accent-foreground: oklch(0.863 0.09 314.986);
  --destructive: oklch(0.682 0.175 41.795);
  --destructive-foreground: oklch(0 0 0);
  --ring: oklch(0.295 0.176 274.925);
  --chart-1: oklch(0.295 0.176 274.925);
  --chart-2: oklch(0.34 0.146 262.688);
  --chart-3: oklch(0.366 0.177 310.338);
  --chart-4: oklch(0.365 0.158 262.707);
  --chart-5: oklch(0.295 0.18 274.078);
}