Engineering is a shadcn/ui theme built around a vivid purple primary color (#fb32cf) with muted light purple accents (#e3d3e0). The light mode uses a neutral background (#ffffff). Dark mode keeps the vivid purple primary (#fb32cf) on a purple-tinted background (#0f060d).
| Token | Light | Dark |
|---|---|---|
| Background | #ffffffwhite | #0f060dblack |
| Foreground | #080207black | #fbf9fbsnow |
| Card | #fcfcfcsnow | #130710black |
| Card foreground | #040103black | #fdfcfdwhite |
| Popover | #fcfcfcsnow | #130710black |
| Popover foreground | #040103black | #fdfcfdwhite |
| Primary | #fb32cfhotpink | #fb32cfhotpink |
| Primary foreground | #000000black | #000000black |
| Secondary | #ede8eclavender | #251822black |
| Secondary foreground | #5d4658dimgray | #c6a9c0silver |
| Muted | #ead6e6gainsboro | #291524black |
| Muted foreground | #484748darkslategray | #b8b7b8silver |
| Accent | #e3d3e0gainsboro | #46253fdarkslategray |
| Accent foreground | #51344bdarkslategray | #ddc0d7thistle |
| Destructive | #90170edarkred | #ec4c41tomato |
| Destructive foreground | #fbd8d5mistyrose | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #fb32cfhotpink | #fb32cfhotpink |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 20.54:1 | AAA |
| Text on card | 20.32:1 | AAA |
| Primary button | 6.45:1 | AA |
| Secondary button | 6.98:1 | AA |
| Muted text | 6.74:1 | AA |
| Accent | 7.57:1 | AAA |
| Destructive | 6.87:1 | AA |
| Text on background | 19.09:1 | AAA |
| Text on card | 19.27:1 | AAA |
| Primary button | 6.45:1 | AA |
| Secondary button | 7.96:1 | AAA |
| Muted text | 8.59:1 | AAA |
| Accent | 7.87:1 | AAA |
| Destructive | 3.69:1 | AA Large |
Paste this into your globals.css to use Engineering in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(1 0 180);
--foreground: oklch(0.106 0.027 333.611);
--muted: oklch(0.898 0.031 333.135);
--muted-foreground: oklch(0.399 0.003 332.719);
--popover: oklch(0.992 0 161.565);
--popover-foreground: oklch(0.084 0.022 333.611);
--card: oklch(0.992 0 161.565);
--card-foreground: oklch(0.084 0.022 333.611);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.685 0.271 339.022);
--primary-foreground: oklch(0 0 0);
--secondary: oklch(0.936 0.009 332.758);
--secondary-foreground: oklch(0.426 0.042 334.057);
--accent: oklch(0.885 0.024 333.029);
--accent-foreground: oklch(0.367 0.055 334.774);
--destructive: oklch(0.422 0.157 29.519);
--destructive-foreground: oklch(0.91 0.039 22.748);
--ring: oklch(0.685 0.271 339.022);
--chart-1: oklch(0.685 0.271 339.022);
--chart-2: oklch(0.936 0.009 332.758);
--chart-3: oklch(0.885 0.024 333.029);
--chart-4: oklch(0.96 0.005 332.702);
--chart-5: oklch(0.689 0.276 339.19);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.139 0.024 334.425);
--foreground: oklch(0.983 0.004 332.681);
--muted: oklch(0.229 0.042 335.272);
--muted-foreground: oklch(0.781 0.002 332.661);
--popover: oklch(0.151 0.028 335.018);
--popover-foreground: oklch(0.992 0.002 332.648);
--card: oklch(0.151 0.028 335.018);
--card-foreground: oklch(0.992 0.002 332.648);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.685 0.271 339.022);
--primary-foreground: oklch(0 0 0);
--secondary: oklch(0.231 0.026 334.264);
--secondary-foreground: oklch(0.768 0.045 333.496);
--accent: oklch(0.318 0.062 335.398);
--accent-foreground: oklch(0.839 0.045 333.42);
--destructive: oklch(0.64 0.198 28.104);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.685 0.271 339.022);
--chart-1: oklch(0.685 0.271 339.022);
--chart-2: oklch(0.231 0.026 334.264);
--chart-3: oklch(0.318 0.062 335.398);
--chart-4: oklch(0.261 0.031 334.37);
--chart-5: oklch(0.689 0.276 339.19);
}