Mobility is a shadcn/ui theme built around a near-white primary color (#f5f5f4) with near-white accents (#f4f5f5). The light mode uses a neutral background (#fefcfb). Dark mode keeps the near-white primary (#f5f5f4) on an orange-tinted background (#0c0604).
| Token | Light | Dark |
|---|---|---|
| Background | #fefcfbsnow | #0c0604black |
| Foreground | #150a04black | #fdfcfcsnow |
| Card | #fdf9f7snow | #100905black |
| Card foreground | #110803black | #ffffffwhite |
| Popover | #fefcfbsnow | #0c0604black |
| Popover foreground | #150a04black | #fdfcfcsnow |
| Primary | #f5f5f4whitesmoke | #f5f5f4whitesmoke |
| Primary foreground | #615a56dimgray | #615a56dimgray |
| Secondary | #f4f5f5whitesmoke | #f4f5f5whitesmoke |
| Secondary foreground | #565d61dimgray | #565d61dimgray |
| Muted | #eef0f1whitesmoke | #0e1011black |
| Muted foreground | #464b4edarkslategray | #b1b6b9silver |
| Accent | #f4f5f5whitesmoke | #f4f5f5whitesmoke |
| Accent foreground | #565d61dimgray | #565d61dimgray |
| Destructive | #cf1807firebrick | #ec1c09red |
| Destructive foreground | #ffffffwhite | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #f5f5f4whitesmoke | #f5f5f4whitesmoke |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.05:1 | AAA |
| Text on card | 18.93:1 | AAA |
| Primary button | 6.18:1 | AA |
| Secondary button | 6.13:1 | AA |
| Muted text | 7.73:1 | AAA |
| Accent | 6.13:1 | AA |
| Destructive | 5.55:1 | AA |
| Text on background | 19.62:1 | AAA |
| Text on card | 19.79:1 | AAA |
| Primary button | 6.18:1 | AA |
| Secondary button | 6.13:1 | AA |
| Muted text | 9.33:1 | AAA |
| Accent | 6.13:1 | AA |
| Destructive | 4.43:1 | AA Large |
Paste this into your globals.css to use Mobility in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.992 0.003 50.626);
--foreground: oklch(0.16 0.024 53.855);
--muted: oklch(0.954 0.002 230.693);
--muted-foreground: oklch(0.41 0.009 230.979);
--popover: oklch(0.992 0.003 50.626);
--popover-foreground: oklch(0.16 0.024 53.855);
--card: oklch(0.985 0.005 50.591);
--card-foreground: oklch(0.146 0.021 57.152);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.969 0.001 50.646);
--primary-foreground: oklch(0.474 0.011 50.364);
--secondary: oklch(0.97 0.001 230.674);
--secondary-foreground: oklch(0.475 0.011 230.99);
--accent: oklch(0.97 0.001 230.674);
--accent-foreground: oklch(0.475 0.011 230.99);
--destructive: oklch(0.543 0.213 30.066);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.969 0.001 50.646);
--chart-1: oklch(0.969 0.001 50.646);
--chart-2: oklch(0.97 0.001 230.674);
--chart-3: oklch(0.97 0.001 230.674);
--chart-4: oklch(0.992 0 230.664);
--chart-5: oklch(0.969 0.002 50.639);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.132 0.014 57.932);
--foreground: oklch(0.992 0.002 50.64);
--muted: oklch(0.17 0.004 230.956);
--muted-foreground: oklch(0.774 0.008 230.799);
--popover: oklch(0.132 0.014 57.932);
--popover-foreground: oklch(0.992 0.002 50.64);
--card: oklch(0.146 0.016 55.34);
--card-foreground: oklch(1 0 180);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.969 0.001 50.646);
--primary-foreground: oklch(0.474 0.011 50.364);
--secondary: oklch(0.97 0.001 230.674);
--secondary-foreground: oklch(0.475 0.011 230.99);
--accent: oklch(0.97 0.001 230.674);
--accent-foreground: oklch(0.475 0.011 230.99);
--destructive: oklch(0.6 0.236 30.033);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.969 0.001 50.646);
--chart-1: oklch(0.969 0.001 50.646);
--chart-2: oklch(0.97 0.001 230.674);
--chart-3: oklch(0.97 0.001 230.674);
--chart-4: oklch(0.992 0 230.664);
--chart-5: oklch(0.969 0.002 50.639);
}