生产工具 is a shadcn/ui theme built around a vivid blue primary color (#3664ec) with near-white accents (#e7e7e7). The light mode uses a neutral background (#f7f8fa). Dark mode keeps the vivid blue primary (#3664ec) on a blue-tinted background (#06080f).
| Token | Light | Dark |
|---|---|---|
| Background | #f7f8faghostwhite | #06080fblack |
| Foreground | #373737darkslategray | #ffffffwhite |
| Card | #ffffffwhite | #06080fblack |
| Card foreground | #373737darkslategray | #ffffffwhite |
| Popover | #f8f9fcghostwhite | #06080fblack |
| Popover foreground | #010309black | #ffffffwhite |
| Primary | #3664ecroyalblue | #3664ecroyalblue |
| Primary foreground | #ffffffwhite | #ffffffwhite |
| Secondary | #cacbcelightgrey | #272930darkslategray |
| Secondary foreground | #313235darkslategray | #bec1cbsilver |
| Muted | #f1f1f1whitesmoke | #191c24black |
| Muted foreground | #5a6072dimgray | #8d93a5lightslategray |
| Accent | #e7e7e7gainsboro | #272930darkslategray |
| Accent foreground | #313235darkslategray | #bec1cbsilver |
| Destructive | #eb1e14red | #eb1f14red |
| Destructive foreground | #ffffffwhite | #ffffffwhite |
| Border | #e5e6eblavender | #181a20black |
| Input | #e5e6eblavender | #181a20black |
| Ring | #3664ecroyalblue | #3664ecroyalblue |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 11.20:1 | AAA |
| Text on card | 11.90:1 | AAA |
| Primary button | 5.01:1 | AA |
| Secondary button | 7.90:1 | AAA |
| Muted text | 5.56:1 | AA |
| Accent | 10.41:1 | AAA |
| Destructive | 4.42:1 | AA Large |
| Text on background | 20.03:1 | AAA |
| Text on card | 20.03:1 | AAA |
| Primary button | 5.01:1 | AA |
| Secondary button | 8.08:1 | AAA |
| Muted text | 5.56:1 | AA |
| Accent | 8.08:1 | AAA |
| Destructive | 4.44:1 | AA Large |
Paste this into your globals.css to use 生产工具 in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.979 0.003 264.542);
--foreground: oklch(0.337 0 180);
--muted: oklch(0.959 0 187.595);
--muted-foreground: oklch(0.49 0.03 270.728);
--popover: oklch(0.982 0.004 271.367);
--popover-foreground: oklch(0.1 0.02 261.16);
--card: oklch(1 0 180);
--card-foreground: oklch(0.337 0 180);
--border: oklch(0.926 0.007 271.336);
--input: oklch(0.926 0.007 271.336);
--primary: oklch(0.554 0.212 265.667);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.842 0.004 271.361);
--secondary-foreground: oklch(0.317 0.006 271.238);
--accent: oklch(0.929 0 180);
--accent-foreground: oklch(0.317 0.006 271.238);
--destructive: oklch(0.6 0.234 29.383);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.554 0.212 265.667);
--chart-1: oklch(0.554 0.212 265.667);
--chart-2: oklch(0.842 0.004 271.361);
--chart-3: oklch(0.842 0.004 271.361);
--chart-4: oklch(0.866 0.004 271.37);
--chart-5: oklch(0.553 0.219 265.463);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.135 0.016 266.906);
--foreground: oklch(1 0 180);
--muted: oklch(0.226 0.018 270.526);
--muted-foreground: oklch(0.664 0.028 270.968);
--popover: oklch(0.135 0.016 266.906);
--popover-foreground: oklch(1 0 180);
--card: oklch(0.135 0.016 266.906);
--card-foreground: oklch(1 0 180);
--border: oklch(0.218 0.013 270.771);
--input: oklch(0.218 0.013 270.771);
--primary: oklch(0.554 0.212 265.667);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.281 0.014 270.897);
--secondary-foreground: oklch(0.812 0.014 271.242);
--accent: oklch(0.281 0.014 270.897);
--accent-foreground: oklch(0.812 0.014 271.242);
--destructive: oklch(0.599 0.233 29.365);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.554 0.212 265.667);
--chart-1: oklch(0.554 0.212 265.667);
--chart-2: oklch(0.281 0.014 270.897);
--chart-3: oklch(0.281 0.014 270.897);
--chart-4: oklch(0.311 0.016 270.874);
--chart-5: oklch(0.553 0.219 265.463);
}