Machinery is a shadcn/ui theme built around a light teal primary color (#bae9e8) with light blue accents (#bad2e9). The light mode uses a neutral background (#fbfefe). Dark mode keeps the light teal primary (#bae9e8) on a teal-tinted background (#060e0e).
| Token | Light | Dark |
|---|---|---|
| Background | #fbfefewhite | #060e0eblack |
| Foreground | #020d0dblack | #f8fbfbghostwhite |
| Card | #fbfefewhite | #060e0eblack |
| Card foreground | #020d0dblack | #f8fbfbghostwhite |
| Popover | #fbfefewhite | #060e0eblack |
| Popover foreground | #020d0dblack | #f8fbfbghostwhite |
| Primary | #bae9e8paleturquoise | #bae9e8paleturquoise |
| Primary foreground | #1b5554darkslategray | #1b5554darkslategray |
| Secondary | #bae9d0powderblue | #bae9d0powderblue |
| Secondary foreground | #1b5537darkslategray | #1b5537darkslategray |
| Muted | #e3e8e5gainsboro | #171c19black |
| Muted foreground | #494b4adarkslategray | #b4b6b5silver |
| Accent | #bad2e9lightblue | #bad2e9lightblue |
| Accent foreground | #1b3955darkslategray | #1b3955darkslategray |
| Destructive | #942310brown | #d43316firebrick |
| Destructive foreground | #fbdfdamistyrose | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #bae9e8paleturquoise | #bae9e8paleturquoise |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.40:1 | AAA |
| Text on card | 19.40:1 | AAA |
| Primary button | 6.40:1 | AA |
| Secondary button | 6.49:1 | AA |
| Muted text | 7.09:1 | AAA |
| Accent | 7.63:1 | AAA |
| Destructive | 6.65:1 | AA |
| Text on background | 18.72:1 | AAA |
| Text on card | 18.72:1 | AAA |
| Primary button | 6.40:1 | AA |
| Secondary button | 6.49:1 | AA |
| Muted text | 8.46:1 | AAA |
| Accent | 7.63:1 | AAA |
| Destructive | 4.89:1 | AA |
Paste this into your globals.css to use Machinery in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.994 0.003 195.925);
--foreground: oklch(0.148 0.021 193.995);
--muted: oklch(0.927 0.006 164.105);
--muted-foreground: oklch(0.41 0.002 164.141);
--popover: oklch(0.994 0.003 195.925);
--popover-foreground: oklch(0.148 0.021 193.995);
--card: oklch(0.994 0.003 195.925);
--card-foreground: oklch(0.148 0.021 193.995);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.9 0.048 195.064);
--primary-foreground: oklch(0.412 0.058 193.564);
--secondary: oklch(0.893 0.059 162.466);
--secondary-foreground: oklch(0.402 0.078 157.289);
--accent: oklch(0.853 0.041 246.513);
--accent-foreground: oklch(0.336 0.061 248.63);
--destructive: oklch(0.44 0.151 32.285);
--destructive-foreground: oklch(0.925 0.032 29.625);
--ring: oklch(0.9 0.048 195.064);
--chart-1: oklch(0.9 0.048 195.064);
--chart-2: oklch(0.893 0.059 162.466);
--chart-3: oklch(0.853 0.041 246.513);
--chart-4: oklch(0.911 0.049 162.82);
--chart-5: oklch(0.902 0.051 195.019);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.156 0.013 194.691);
--foreground: oklch(0.987 0.003 195.92);
--muted: oklch(0.22 0.009 163.168);
--muted-foreground: oklch(0.774 0.002 164.221);
--popover: oklch(0.156 0.013 194.691);
--popover-foreground: oklch(0.987 0.003 195.92);
--card: oklch(0.156 0.013 194.691);
--card-foreground: oklch(0.987 0.003 195.92);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.9 0.048 195.064);
--primary-foreground: oklch(0.412 0.058 193.564);
--secondary: oklch(0.893 0.059 162.466);
--secondary-foreground: oklch(0.402 0.078 157.289);
--accent: oklch(0.853 0.041 246.513);
--accent-foreground: oklch(0.336 0.061 248.63);
--destructive: oklch(0.571 0.202 32.179);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.9 0.048 195.064);
--chart-1: oklch(0.9 0.048 195.064);
--chart-2: oklch(0.893 0.059 162.466);
--chart-3: oklch(0.853 0.041 246.513);
--chart-4: oklch(0.911 0.049 162.82);
--chart-5: oklch(0.902 0.051 195.019);
}