Automation is a shadcn/ui theme built around a near-black primary color (#0a0a05) with near-black accents (#05060a). The light mode uses a neutral background (#ffffff). Dark mode keeps the near-black primary (#0a0a05) on a neutral background (#080703).
| Token | Light | Dark |
|---|---|---|
| Background | #ffffffwhite | #080703black |
| Foreground | #040401black | #f9f9f6whitesmoke |
| Card | #fcfcfcsnow | #0b0b04black |
| Card foreground | #000000black | #fbfbf9snow |
| Popover | #fcfcfcsnow | #0b0b04black |
| Popover foreground | #000000black | #fbfbf9snow |
| Primary | #0a0a05black | #0a0a05black |
| Primary foreground | #c0ba82tan | #c0ba82tan |
| Secondary | #05060ablack | #05060ablack |
| Secondary foreground | #c5c8e2lightsteelblue | #c5c8e2lightsteelblue |
| Muted | #eaeaf1lavender | #0e0f15black |
| Muted foreground | #474747darkslategray | #b8b8b8silver |
| Accent | #05060ablack | #05060ablack |
| Accent foreground | #c5c8e2lightsteelblue | #c5c8e2lightsteelblue |
| Destructive | #871403darkred | #fa2605orangered |
| Destructive foreground | #fec7bepink | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #0a0a05black | #0a0a05black |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 20.52:1 | AAA |
| Text on card | 20.54:1 | AAA |
| Primary button | 10.01:1 | AAA |
| Secondary button | 12.29:1 | AAA |
| Muted text | 7.76:1 | AAA |
| Accent | 12.29:1 | AAA |
| Destructive | 6.62:1 | AA |
| Text on background | 19.11:1 | AAA |
| Text on card | 19.07:1 | AAA |
| Primary button | 10.01:1 | AAA |
| Secondary button | 12.29:1 | AAA |
| Muted text | 9.63:1 | AAA |
| Accent | 12.29:1 | AAA |
| Destructive | 3.93:1 | AA Large |
Paste this into your globals.css to use Automation in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(1 0 180);
--foreground: oklch(0.101 0.012 104.171);
--muted: oklch(0.939 0.009 281.138);
--muted-foreground: oklch(0.399 0 180);
--popover: oklch(0.992 0 161.565);
--popover-foreground: oklch(0 0 0);
--card: oklch(0.992 0 161.565);
--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.142 0.011 103.326);
--primary-foreground: oklch(0.779 0.075 102.585);
--secondary: oklch(0.122 0.012 278.362);
--secondary-foreground: oklch(0.839 0.036 280.564);
--accent: oklch(0.122 0.012 278.362);
--accent-foreground: oklch(0.839 0.036 280.564);
--destructive: oklch(0.402 0.151 31.637);
--destructive-foreground: oklch(0.875 0.064 28.491);
--ring: oklch(0.142 0.011 103.326);
--chart-1: oklch(0.142 0.011 103.326);
--chart-2: oklch(0.122 0.012 278.362);
--chart-3: oklch(0.122 0.012 278.362);
--chart-4: oklch(0.155 0.019 278.966);
--chart-5: oklch(0.142 0.012 103.469);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.127 0.014 104.077);
--foreground: oklch(0.98 0.004 101.349);
--muted: oklch(0.171 0.013 279.906);
--muted-foreground: oklch(0.781 0 180);
--popover: oklch(0.146 0.016 103.855);
--popover-foreground: oklch(0.987 0.003 101.328);
--card: oklch(0.146 0.016 103.855);
--card-foreground: oklch(0.987 0.003 101.328);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.142 0.011 103.326);
--primary-foreground: oklch(0.779 0.075 102.585);
--secondary: oklch(0.122 0.012 278.362);
--secondary-foreground: oklch(0.839 0.036 280.564);
--accent: oklch(0.122 0.012 278.362);
--accent-foreground: oklch(0.839 0.036 280.564);
--destructive: oklch(0.63 0.243 30.973);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.142 0.011 103.326);
--chart-1: oklch(0.142 0.011 103.326);
--chart-2: oklch(0.122 0.012 278.362);
--chart-3: oklch(0.122 0.012 278.362);
--chart-4: oklch(0.155 0.019 278.966);
--chart-5: oklch(0.142 0.012 103.469);
}