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).
| Token | Light | Dark |
|---|---|---|
| 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 |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 20.14:1 | AAA |
| Text on card | 16.00:1 | AAA |
| Primary button | 8.18:1 | AAA |
| Secondary button | 8.62:1 | AAA |
| Muted text | 2.60:1 | Fail |
| Accent | 2.44:1 | Fail |
| Destructive | 5.83:1 | AA |
| Text on background | 19.47:1 | AAA |
| Text on card | 19.77:1 | AAA |
| Primary button | 8.18:1 | AAA |
| Secondary button | 8.36:1 | AAA |
| Muted text | 5.23:1 | AA |
| Accent | 8.14:1 | AAA |
| Destructive | 3.83:1 | AA Large |
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);
}