Tech is a shadcn/ui theme built around a vivid yellow primary color (#f7ce6e) with vivid blue accents (#6e97f7). The light mode uses a neutral background (#fdfbf7). Dark mode keeps the vivid yellow primary (#f7ce6e) on a neutral background (#040301).
| Token | Light | Dark |
|---|---|---|
| Background | #fdfbf7snow | #040301black |
| Foreground | #040301black | #fcfbf8snow |
| Card | #fcf9f3floralwhite | #070603black |
| Card foreground | #000000black | #fdfdfcwhite |
| Popover | #fdfbf7snow | #040301black |
| Popover foreground | #040301black | #fcfbf8snow |
| Primary | #f7ce6ekhaki | #f7ce6ekhaki |
| Primary foreground | #302303black | #302303black |
| Secondary | #6e97f7cornflowerblue | #6e97f7cornflowerblue |
| Secondary foreground | #031030black | #031030black |
| Muted | #dcdde0gainsboro | #1f2023black |
| Muted foreground | #3f424bdarkslategray | #b4b8c0silver |
| Accent | #6e97f7cornflowerblue | #6e97f7cornflowerblue |
| Accent foreground | #031030black | #031030black |
| Destructive | #8f390asaddlebrown | #f17532tomato |
| Destructive foreground | #fcdfcfbisque | #000000black |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #f7ce6ekhaki | #f7ce6ekhaki |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.95:1 | AAA |
| Text on card | 20.00:1 | AAA |
| Primary button | 10.25:1 | AAA |
| Secondary button | 6.62:1 | AA |
| Muted text | 7.39:1 | AAA |
| Accent | 6.62:1 | AA |
| Destructive | 6.03:1 | AA |
| Text on background | 19.92:1 | AAA |
| Text on card | 19.90:1 | AAA |
| Primary button | 10.25:1 | AAA |
| Secondary button | 6.62:1 | AA |
| Muted text | 8.14:1 | AAA |
| Accent | 6.62:1 | AA |
| Destructive | 7.30:1 | AAA |
Paste this into your globals.css to use Tech in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.989 0.006 87.451);
--foreground: oklch(0.098 0.011 92.623);
--muted: oklch(0.898 0.003 267.398);
--muted-foreground: oklch(0.38 0.016 267.134);
--popover: oklch(0.989 0.006 87.451);
--popover-foreground: oklch(0.098 0.011 92.623);
--card: oklch(0.983 0.009 87.466);
--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.868 0.124 86.494);
--primary-foreground: oklch(0.264 0.051 84.788);
--secondary: oklch(0.69 0.15 265.199);
--secondary-foreground: oklch(0.186 0.068 261.731);
--accent: oklch(0.69 0.15 265.199);
--accent-foreground: oklch(0.186 0.068 261.731);
--destructive: oklch(0.457 0.129 43.195);
--destructive-foreground: oklch(0.923 0.038 50.156);
--ring: oklch(0.868 0.124 86.494);
--chart-1: oklch(0.868 0.124 86.494);
--chart-2: oklch(0.69 0.15 265.199);
--chart-3: oklch(0.69 0.15 265.199);
--chart-4: oklch(0.72 0.134 265.577);
--chart-5: oklch(0.872 0.127 86.39);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.097 0.009 91.719);
--foreground: oklch(0.987 0.003 87.437);
--muted: oklch(0.245 0.005 267.302);
--muted-foreground: oklch(0.781 0.013 267.318);
--popover: oklch(0.097 0.009 91.719);
--popover-foreground: oklch(0.987 0.003 87.437);
--card: oklch(0.122 0.011 91.719);
--card-foreground: oklch(0.993 0.002 87.428);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.868 0.124 86.494);
--primary-foreground: oklch(0.264 0.051 84.788);
--secondary: oklch(0.69 0.15 265.199);
--secondary-foreground: oklch(0.186 0.068 261.731);
--accent: oklch(0.69 0.15 265.199);
--accent-foreground: oklch(0.186 0.068 261.731);
--destructive: oklch(0.697 0.171 45.667);
--destructive-foreground: oklch(0 0 0);
--ring: oklch(0.868 0.124 86.494);
--chart-1: oklch(0.868 0.124 86.494);
--chart-2: oklch(0.69 0.15 265.199);
--chart-3: oklch(0.69 0.15 265.199);
--chart-4: oklch(0.72 0.134 265.577);
--chart-5: oklch(0.872 0.127 86.39);
}