生产工具 for shadcn/ui

生产工具 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).

Color palette

TokenLightDark
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

Contrast

WCAG 2 contrast ratios between each background and its foreground color.

Light mode
Text on background11.20:1AAA
Text on card11.90:1AAA
Primary button5.01:1AA
Secondary button7.90:1AAA
Muted text5.56:1AA
Accent10.41:1AAA
Destructive4.42:1AA Large
Dark mode
Text on background20.03:1AAA
Text on card20.03:1AAA
Primary button5.01:1AA
Secondary button8.08:1AAA
Muted text5.56:1AA
Accent8.08:1AAA
Destructive4.44:1AA Large

CSS variables

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);
}