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).
| Token | Light | Dark |
|---|---|---|
| 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 |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 20.31:1 | AAA |
| Text on card | 20.31:1 | AAA |
| Primary button | 6.86:1 | AA |
| Secondary button | 7.28:1 | AAA |
| Muted text | 4.83:1 | AA |
| Accent | 7.35:1 | AAA |
| Destructive | 6.91:1 | AA |
| Text on background | 20.30:1 | AAA |
| Text on card | 20.30:1 | AAA |
| Primary button | 6.86:1 | AA |
| Secondary button | 7.28:1 | AAA |
| Muted text | 5.83:1 | AA |
| Accent | 7.35:1 | AAA |
| Destructive | 3.55:1 | AA Large |
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);
}