Task for shadcn/ui

Task is a shadcn/ui theme built around a near-white primary color (#fdfcfc) with near-white accents (#fcfcfd). The light mode uses a neutral background (#fcf8fa). Dark mode keeps the near-white primary (#fdfcfc) on a neutral background (#040202).

Color palette

TokenLightDark
Background
#fcf8fasnow
#040202black
Foreground
#120309black
#fdfcfcsnow
Card
#faf4f7whitesmoke
#070305black
Card foreground
#0d0207black
#ffffffwhite
Popover
#faf4f7whitesmoke
#070305black
Popover foreground
#0d0207black
#ffffffwhite
Primary
#fdfcfcsnow
#fdfcfcsnow
Primary foreground
#7c4b5fdimgray
#7c4b5fdimgray
Secondary
#fcfdfcwhite
#fcfdfcwhite
Secondary foreground
#2e3d24darkslategray
#2e3d24darkslategray
Muted
#f2f5efwhitesmoke
#0c100ablack
Muted foreground
#666864dimgray
#999b97darkgray
Accent
#fcfcfdwhite
#fcfcfdwhite
Accent foreground
#4b5f7cdimgray
#4b5f7cdimgray
Destructive
#bb4002firebrick
#fd6a21tomato
Destructive foreground
#ffffffwhite
#000000black
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#fdfcfcsnow
#fdfcfcsnow

Contrast

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

Light mode
Text on background19.11:1AAA
Text on card18.85:1AAA
Primary button6.76:1AA
Secondary button11.39:1AAA
Muted text5.11:1AA
Accent6.35:1AA
Destructive5.48:1AA
Dark mode
Text on background20.25:1AAA
Text on card20.49:1AAA
Primary button6.76:1AA
Secondary button11.39:1AAA
Muted text6.85:1AA
Accent6.35:1AA
Destructive7.25:1AAA

CSS variables

Paste this into your globals.css to use Task in your shadcn/ui project.

:root {
  --radius: 0.5rem;
  --background: oklch(0.982 0.005 349.806);
  --foreground: oklch(0.132 0.036 351.658);
  --muted: oklch(0.966 0.008 131.794);
  --muted-foreground: oklch(0.514 0.007 131.835);
  --popover: oklch(0.974 0.007 349.876);
  --popover-foreground: oklch(0.118 0.031 349.777);
  --card: oklch(0.974 0.007 349.876);
  --card-foreground: oklch(0.118 0.031 349.777);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.992 0.002 349.714);
  --primary-foreground: oklch(0.475 0.073 353.695);
  --secondary: oklch(0.993 0.002 131.74);
  --secondary-foreground: oklch(0.338 0.045 132.938);
  --accent: oklch(0.992 0.001 256.657);
  --accent-foreground: oklch(0.482 0.053 256.852);
  --destructive: oklch(0.539 0.169 39.822);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.992 0.002 349.714);
  --chart-1: oklch(0.992 0.002 349.714);
  --chart-2: oklch(0.993 0.002 131.74);
  --chart-3: oklch(0.992 0.001 256.657);
  --chart-4: oklch(1.013 0.004 311.695);
  --chart-5: oklch(0.992 0.002 349.719);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.087 0.01 349.435);
  --foreground: oklch(0.992 0.001 349.696);
  --muted: oklch(0.165 0.013 132.386);
  --muted-foreground: oklch(0.686 0.006 131.801);
  --popover: oklch(0.109 0.013 349.435);
  --popover-foreground: oklch(1 0 180);
  --card: oklch(0.109 0.013 349.435);
  --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.992 0.002 349.714);
  --primary-foreground: oklch(0.475 0.073 353.695);
  --secondary: oklch(0.993 0.002 131.74);
  --secondary-foreground: oklch(0.338 0.045 132.938);
  --accent: oklch(0.992 0.001 256.657);
  --accent-foreground: oklch(0.482 0.053 256.852);
  --destructive: oklch(0.699 0.195 42.578);
  --destructive-foreground: oklch(0 0 0);
  --ring: oklch(0.992 0.002 349.714);
  --chart-1: oklch(0.992 0.002 349.714);
  --chart-2: oklch(0.993 0.002 131.74);
  --chart-3: oklch(0.992 0.001 256.657);
  --chart-4: oklch(1.013 0.004 311.695);
  --chart-5: oklch(0.992 0.002 349.719);
}