Practical for shadcn/ui

Practical is a shadcn/ui theme built around a muted light green primary color (#bad9bf) with muted light purple accents (#d9bad4). The light mode uses a neutral background (#f8fcf9). Dark mode keeps the muted light green primary (#bad9bf) on a neutral background (#000000).

Color palette

TokenLightDark
Background
#f8fcf9mintcream
#000000black
Foreground
#010402black
#ffffffwhite
Card
#f4faf5whitesmoke
#030303black
Card foreground
#000000black
#ffffffwhite
Popover
#f8fcf9mintcream
#000000black
Popover foreground
#010402black
#ffffffwhite
Primary
#bad9bfsilver
#bad9bfsilver
Primary foreground
#223f27darkslategray
#223f27darkslategray
Secondary
#d9bad4thistle
#d9bad4thistle
Secondary foreground
#3f223adarkslategray
#3f223adarkslategray
Muted
#ded8ddgainsboro
#272126darkslategray
Muted foreground
#595459dimgray
#aba6aadarkgray
Accent
#d9bad4thistle
#d9bad4thistle
Accent foreground
#3f223adarkslategray
#3f223adarkslategray
Destructive
#660f0bmaroon
#ea3d34crimson
Destructive foreground
#f6b0aclightpink
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#bad9bfsilver
#bad9bfsilver

Contrast

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

Light mode
Text on background19.87:1AAA
Text on card19.89:1AAA
Primary button7.60:1AAA
Secondary button7.94:1AAA
Muted text5.29:1AA
Accent7.94:1AAA
Destructive7.17:1AAA
Dark mode
Text on background21.00:1AAA
Text on card20.67:1AAA
Primary button7.60:1AAA
Secondary button7.94:1AAA
Muted text6.60:1AA
Accent7.94:1AAA
Destructive4.03:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.987 0.006 150.166);
  --foreground: oklch(0.097 0.016 149.26);
  --muted: oklch(0.89 0.009 330.377);
  --muted-foreground: oklch(0.453 0.01 330.521);
  --popover: oklch(0.987 0.006 150.166);
  --popover-foreground: oklch(0.097 0.016 149.26);
  --card: oklch(0.98 0.009 150.124);
  --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.855 0.049 149.473);
  --primary-foreground: oklch(0.336 0.054 147.86);
  --secondary: oklch(0.823 0.05 331.006);
  --secondary-foreground: oklch(0.3 0.057 332.513);
  --accent: oklch(0.823 0.05 331.006);
  --accent-foreground: oklch(0.3 0.057 332.513);
  --destructive: oklch(0.331 0.12 28.755);
  --destructive-foreground: oklch(0.822 0.083 22.42);
  --ring: oklch(0.855 0.049 149.473);
  --chart-1: oklch(0.855 0.049 149.473);
  --chart-2: oklch(0.823 0.05 331.006);
  --chart-3: oklch(0.823 0.05 331.006);
  --chart-4: oklch(0.849 0.043 330.877);
  --chart-5: oklch(0.857 0.054 149.393);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0 0 0);
  --foreground: oklch(1 0 180);
  --muted: oklch(0.256 0.012 330.854);
  --muted-foreground: oklch(0.73 0.009 330.398);
  --popover: oklch(0 0 0);
  --popover-foreground: oklch(1 0 180);
  --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.855 0.049 149.473);
  --primary-foreground: oklch(0.336 0.054 147.86);
  --secondary: oklch(0.823 0.05 331.006);
  --secondary-foreground: oklch(0.3 0.057 332.513);
  --accent: oklch(0.823 0.05 331.006);
  --accent-foreground: oklch(0.3 0.057 332.513);
  --destructive: oklch(0.62 0.21 28.103);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.855 0.049 149.473);
  --chart-1: oklch(0.855 0.049 149.473);
  --chart-2: oklch(0.823 0.05 331.006);
  --chart-3: oklch(0.823 0.05 331.006);
  --chart-4: oklch(0.849 0.043 330.877);
  --chart-5: oklch(0.857 0.054 149.393);
}