Automaton is a shadcn/ui theme built around a vivid blue primary color (#0a47ff) with vivid yellow accents (#ffc20a). The light mode uses a neutral background (#f7f9fc). Dark mode keeps the vivid blue primary (#0a47ff) on a neutral background (#020408).
| Token | Light | Dark |
|---|---|---|
| Background | #f7f9fcghostwhite | #020408black |
| Foreground | #010205black | #fcfcfdwhite |
| Card | #f4f5fbwhitesmoke | #03050cblack |
| Card foreground | #000000black | #ffffffwhite |
| Popover | #f7f9fcghostwhite | #020408black |
| Popover foreground | #010205black | #fcfcfdwhite |
| Primary | #0a47ffroyalblue | #0a47ffroyalblue |
| Primary foreground | #ffffffwhite | #ffffffwhite |
| Secondary | #ffc20agold | #ffc20agold |
| Secondary foreground | #3d2e00black | #3d2e00black |
| Muted | #deddd8gainsboro | #272521darkslategray |
| Muted foreground | #646159dimgray | #a6a39bdarkgray |
| Accent | #ffc20agold | #ffc20agold |
| Accent foreground | #3d2e00black | #3d2e00black |
| Destructive | #d13505firebrick | #fa5e2etomato |
| Destructive foreground | #ffffffwhite | #000000black |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #0a47ffroyalblue | #0a47ffroyalblue |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.64:1 | AAA |
| Text on card | 19.34:1 | AAA |
| Primary button | 6.23:1 | AA |
| Secondary button | 8.15:1 | AAA |
| Muted text | 4.54:1 | AA |
| Accent | 8.15:1 | AAA |
| Destructive | 4.98:1 | AA |
| Text on background | 20.04:1 | AAA |
| Text on card | 20.33:1 | AAA |
| Primary button | 6.23:1 | AA |
| Secondary button | 8.15:1 | AAA |
| Muted text | 6.07:1 | AA |
| Accent | 8.15:1 | AAA |
| Destructive | 6.67:1 | AA |
Paste this into your globals.css to use Automaton in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.981 0.005 271.36);
--foreground: oklch(0.078 0.018 259.2);
--muted: oklch(0.897 0.006 91.467);
--muted-foreground: oklch(0.493 0.014 91.628);
--popover: oklch(0.981 0.005 271.36);
--popover-foreground: oklch(0.078 0.018 259.2);
--card: oklch(0.972 0.008 271.334);
--card-foreground: oklch(0 0 0);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.513 0.273 264.024);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.846 0.172 85.27);
--secondary-foreground: oklch(0.31 0.063 88.624);
--accent: oklch(0.846 0.172 85.27);
--accent-foreground: oklch(0.31 0.063 88.624);
--destructive: oklch(0.566 0.198 34.528);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.513 0.273 264.024);
--chart-1: oklch(0.513 0.273 264.024);
--chart-2: oklch(0.846 0.172 85.27);
--chart-3: oklch(0.846 0.172 85.27);
--chart-4: oklch(0.853 0.171 86.751);
--chart-5: oklch(0.514 0.279 263.972);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.103 0.016 263.274);
--foreground: oklch(0.991 0.002 271.393);
--muted: oklch(0.265 0.008 91.646);
--muted-foreground: oklch(0.717 0.013 91.555);
--popover: oklch(0.103 0.016 263.274);
--popover-foreground: oklch(0.991 0.002 271.393);
--card: oklch(0.118 0.019 263.528);
--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.513 0.273 264.024);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.846 0.172 85.27);
--secondary-foreground: oklch(0.31 0.063 88.624);
--accent: oklch(0.846 0.172 85.27);
--accent-foreground: oklch(0.31 0.063 88.624);
--destructive: oklch(0.679 0.2 36.788);
--destructive-foreground: oklch(0 0 0);
--ring: oklch(0.513 0.273 264.024);
--chart-1: oklch(0.513 0.273 264.024);
--chart-2: oklch(0.846 0.172 85.27);
--chart-3: oklch(0.846 0.172 85.27);
--chart-4: oklch(0.853 0.171 86.751);
--chart-5: oklch(0.514 0.279 263.972);
}