Auto is a shadcn/ui theme built around a light violet primary color (#bba3e0) with light purple accents (#d9a3e0). The light mode uses a neutral background (#faf8fc). Dark mode keeps the light violet primary (#bba3e0) on a violet-tinted background (#09060e).
| Token | Light | Dark |
|---|---|---|
| Background | #faf8fcghostwhite | #09060eblack |
| Foreground | #020104black | #f7f5fawhitesmoke |
| Card | #faf8fcghostwhite | #09060eblack |
| Card foreground | #020104black | #f7f5fawhitesmoke |
| Popover | #faf8fcghostwhite | #09060eblack |
| Popover foreground | #020104black | #f7f5fawhitesmoke |
| Primary | #bba3e0plum | #bba3e0plum |
| Primary foreground | #24143dmidnightblue | #24143dmidnightblue |
| Secondary | #a3aae0lightsteelblue | #a3aae0lightsteelblue |
| Secondary foreground | #14193dmidnightblue | #14193dmidnightblue |
| Muted | #ededf3whitesmoke | #0c0d12black |
| Muted foreground | #49494bdarkslategray | #b4b4b6silver |
| Accent | #d9a3e0plum | #d9a3e0plum |
| Accent foreground | #38143dmidnightblue | #38143dmidnightblue |
| Destructive | #b40b08firebrick | #ef0f0bred |
| Destructive foreground | #fef1f0seashell | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #bba3e0plum | #bba3e0plum |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.72:1 | AAA |
| Text on card | 19.72:1 | AAA |
| Primary button | 7.59:1 | AAA |
| Secondary button | 7.61:1 | AAA |
| Muted text | 7.72:1 | AAA |
| Accent | 7.70:1 | AAA |
| Destructive | 6.35:1 | AA |
| Text on background | 18.55:1 | AAA |
| Text on card | 18.55:1 | AAA |
| Primary button | 7.59:1 | AAA |
| Secondary button | 7.61:1 | AAA |
| Muted text | 9.36:1 | AAA |
| Accent | 7.70:1 | AAA |
| Destructive | 4.43:1 | AA Large |
Paste this into your globals.css to use Auto in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.982 0.005 303.569);
--foreground: oklch(0.081 0.016 304.476);
--muted: oklch(0.948 0.007 280.216);
--muted-foreground: oklch(0.407 0.002 280.247);
--popover: oklch(0.982 0.005 303.569);
--popover-foreground: oklch(0.081 0.016 304.476);
--card: oklch(0.982 0.005 303.569);
--card-foreground: oklch(0.081 0.016 304.476);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.758 0.09 301.861);
--primary-foreground: oklch(0.239 0.075 298.155);
--secondary: oklch(0.753 0.078 278.499);
--secondary-foreground: oklch(0.233 0.069 274.15);
--accent: oklch(0.786 0.103 322.527);
--accent-foreground: oklch(0.268 0.084 322.854);
--destructive: oklch(0.488 0.195 28.981);
--destructive-foreground: oklch(0.968 0.015 18.598);
--ring: oklch(0.758 0.09 301.861);
--chart-1: oklch(0.758 0.09 301.861);
--chart-2: oklch(0.753 0.078 278.499);
--chart-3: oklch(0.786 0.103 322.527);
--chart-4: oklch(0.784 0.068 278.838);
--chart-5: oklch(0.755 0.095 301.741);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.133 0.019 303.16);
--foreground: oklch(0.973 0.007 303.54);
--muted: oklch(0.161 0.011 279.186);
--muted-foreground: oklch(0.772 0.002 280.293);
--popover: oklch(0.133 0.019 303.16);
--popover-foreground: oklch(0.973 0.007 303.54);
--card: oklch(0.133 0.019 303.16);
--card-foreground: oklch(0.973 0.007 303.54);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.758 0.09 301.861);
--primary-foreground: oklch(0.239 0.075 298.155);
--secondary: oklch(0.753 0.078 278.499);
--secondary-foreground: oklch(0.233 0.069 274.15);
--accent: oklch(0.786 0.103 322.527);
--accent-foreground: oklch(0.268 0.084 322.854);
--destructive: oklch(0.601 0.242 29.074);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.758 0.09 301.861);
--chart-1: oklch(0.758 0.09 301.861);
--chart-2: oklch(0.753 0.078 278.499);
--chart-3: oklch(0.786 0.103 322.527);
--chart-4: oklch(0.784 0.068 278.838);
--chart-5: oklch(0.755 0.095 301.741);
}