Engineer is a shadcn/ui theme built around a deep violet primary color (#311f42) with deep green accents (#30421f). The light mode uses a neutral background (#fcfbfd). Dark mode keeps the deep violet primary (#311f42) on a neutral background (#000000).
| Token | Light | Dark |
|---|---|---|
| Background | #fcfbfdsnow | #000000black |
| Foreground | #0a0311black | #fcfcfdwhite |
| Card | #faf8fcghostwhite | #030303black |
| Card foreground | #08030dblack | #ffffffwhite |
| Popover | #fcfbfdsnow | #000000black |
| Popover foreground | #0a0311black | #fcfcfdwhite |
| Primary | #311f42darkslategray | #311f42darkslategray |
| Primary foreground | #cab6ddthistle | #cab6ddthistle |
| Secondary | #30421fdarkslategray | #30421fdarkslategray |
| Secondary foreground | #c9ddb6silver | #c9ddb6silver |
| Muted | #d9ded4gainsboro | #262b21darkslategray |
| Muted foreground | #4c5247darkslategray | #b2b8addarkgray |
| Accent | #30421fdarkslategray | #30421fdarkslategray |
| Accent foreground | #c9ddb6silver | #c9ddb6silver |
| Destructive | #d03c0bfirebrick | #f46434tomato |
| Destructive foreground | #ffffffwhite | #000000black |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #311f42darkslategray | #311f42darkslategray |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.76:1 | AAA |
| Text on card | 19.32:1 | AAA |
| Primary button | 8.00:1 | AAA |
| Secondary button | 7.54:1 | AAA |
| Muted text | 5.87:1 | AA |
| Accent | 7.54:1 | AAA |
| Destructive | 4.82:1 | AA |
| Text on background | 20.48:1 | AAA |
| Text on card | 20.67:1 | AAA |
| Primary button | 8.00:1 | AAA |
| Secondary button | 7.54:1 | AAA |
| Muted text | 7.12:1 | AAA |
| Accent | 7.54:1 | AAA |
| Destructive | 6.71:1 | AA |
Paste this into your globals.css to use Engineer in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.991 0.003 309.096);
--foreground: oklch(0.126 0.035 308.984);
--muted: oklch(0.893 0.014 129.298);
--muted-foreground: oklch(0.43 0.019 129.594);
--popover: oklch(0.991 0.003 309.096);
--popover-foreground: oklch(0.126 0.035 308.984);
--card: oklch(0.982 0.006 309.066);
--card-foreground: oklch(0.114 0.031 310.698);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.28 0.066 306.466);
--primary-foreground: oklch(0.806 0.058 308.376);
--secondary: oklch(0.353 0.061 131.295);
--secondary-foreground: oklch(0.872 0.056 129.829);
--accent: oklch(0.353 0.061 131.295);
--accent-foreground: oklch(0.872 0.056 129.829);
--destructive: oklch(0.573 0.192 35.824);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.28 0.066 306.466);
--chart-1: oklch(0.28 0.066 306.466);
--chart-2: oklch(0.353 0.061 131.295);
--chart-3: oklch(0.353 0.061 131.295);
--chart-4: oklch(0.389 0.068 131.364);
--chart-5: oklch(0.278 0.071 306.188);
}
.dark {
--radius: 0.5rem;
--background: oklch(0 0 0);
--foreground: oklch(0.992 0.001 309.115);
--muted: oklch(0.281 0.019 129.873);
--muted-foreground: oklch(0.775 0.016 129.348);
--popover: oklch(0 0 0);
--popover-foreground: oklch(0.992 0.001 309.115);
--card: oklch(0.092 0 180);
--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.28 0.066 306.466);
--primary-foreground: oklch(0.806 0.058 308.376);
--secondary: oklch(0.353 0.061 131.295);
--secondary-foreground: oklch(0.872 0.056 129.829);
--accent: oklch(0.353 0.061 131.295);
--accent-foreground: oklch(0.872 0.056 129.829);
--destructive: oklch(0.679 0.188 38.107);
--destructive-foreground: oklch(0 0 0);
--ring: oklch(0.28 0.066 306.466);
--chart-1: oklch(0.28 0.066 306.466);
--chart-2: oklch(0.353 0.061 131.295);
--chart-3: oklch(0.353 0.061 131.295);
--chart-4: oklch(0.389 0.068 131.364);
--chart-5: oklch(0.278 0.071 306.188);
}