Machine is a shadcn/ui theme built around a muted light purple primary color (#f9f6f9) with muted light green accents (#f6f9f6). The light mode uses a neutral background (#ffffff). Dark mode keeps the muted light purple primary (#f9f6f9) on a purple-tinted background (#0f060f).
| Token | Light | Dark |
|---|---|---|
| Background | #ffffffwhite | #0f060fblack |
| Foreground | #0c030dblack | #ffffffwhite |
| Card | #ffffffwhite | #0f060fblack |
| Card foreground | #0c030dblack | #ffffffwhite |
| Popover | #ffffffwhite | #0f060fblack |
| Popover foreground | #0c030dblack | #ffffffwhite |
| Primary | #f9f6f9whitesmoke | #f9f6f9whitesmoke |
| Primary foreground | #734974dimgray | #734974dimgray |
| Secondary | #f6f9f6whitesmoke | #f6f9f6whitesmoke |
| Secondary foreground | #223521darkslategray | #223521darkslategray |
| Muted | #dbebdbgainsboro | #142414black |
| Muted foreground | #545f54dimgray | #a1aba0darkgray |
| Accent | #f6f9f6whitesmoke | #f6f9f6whitesmoke |
| Accent foreground | #223521darkslategray | #223521darkslategray |
| Destructive | #b52d12firebrick | #ed6145tomato |
| Destructive foreground | #fffbfasnow | #000000black |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #f9f6f9whitesmoke | #f9f6f9whitesmoke |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 20.30:1 | AAA |
| Text on card | 20.30:1 | AAA |
| Primary button | 6.65:1 | AA |
| Secondary button | 12.37:1 | AAA |
| Muted text | 5.39:1 | AA |
| Accent | 12.37:1 | AAA |
| Destructive | 6.09:1 | AA |
| Text on background | 19.99:1 | AAA |
| Text on card | 19.99:1 | AAA |
| Primary button | 6.65:1 | AA |
| Secondary button | 12.37:1 | AAA |
| Muted text | 6.81:1 | AA |
| Accent | 12.37:1 | AAA |
| Destructive | 6.39:1 | AA |
Paste this into your globals.css to use Machine in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(1 0 180);
--foreground: oklch(0.123 0.034 326.414);
--muted: oklch(0.924 0.028 144.419);
--muted-foreground: oklch(0.472 0.021 144.323);
--popover: oklch(1 0 180);
--popover-foreground: oklch(0.123 0.034 326.414);
--card: oklch(1 0 180);
--card-foreground: oklch(0.123 0.034 326.414);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.976 0.006 324.657);
--primary-foreground: oklch(0.468 0.085 325.677);
--secondary: oklch(0.979 0.006 144.58);
--secondary-foreground: oklch(0.307 0.043 143.663);
--accent: oklch(0.979 0.006 144.58);
--accent-foreground: oklch(0.307 0.043 143.663);
--destructive: oklch(0.51 0.176 32.848);
--destructive-foreground: oklch(0.991 0.004 31.05);
--ring: oklch(0.976 0.006 324.657);
--chart-1: oklch(0.976 0.006 324.657);
--chart-2: oklch(0.979 0.006 144.58);
--chart-3: oklch(0.979 0.006 144.58);
--chart-4: oklch(1 0 180);
--chart-5: oklch(0.975 0.007 324.662);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.139 0.027 325.829);
--foreground: oklch(1 0 180);
--muted: oklch(0.242 0.038 143.534);
--muted-foreground: oklch(0.73 0.019 144.448);
--popover: oklch(0.139 0.027 325.829);
--popover-foreground: oklch(1 0 180);
--card: oklch(0.139 0.027 325.829);
--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.976 0.006 324.657);
--primary-foreground: oklch(0.468 0.085 325.677);
--secondary: oklch(0.979 0.006 144.58);
--secondary-foreground: oklch(0.307 0.043 143.663);
--accent: oklch(0.979 0.006 144.58);
--accent-foreground: oklch(0.307 0.043 143.663);
--destructive: oklch(0.666 0.178 33.108);
--destructive-foreground: oklch(0 0 0);
--ring: oklch(0.976 0.006 324.657);
--chart-1: oklch(0.976 0.006 324.657);
--chart-2: oklch(0.979 0.006 144.58);
--chart-3: oklch(0.979 0.006 144.58);
--chart-4: oklch(1 0 180);
--chart-5: oklch(0.975 0.007 324.662);
}