Impractical for shadcn/ui

Impractical is a shadcn/ui theme built around a green primary color (#60d246) with muted light green accents (#dee5dc). The light mode uses a neutral background (#ffffff). Dark mode keeps the green primary (#60d246) on a neutral background (#000000).

Color palette

TokenLightDark
Background
#ffffffwhite
#000000black
Foreground
#000000black
#ffffffwhite
Card
#ffffffwhite
#000000black
Card foreground
#000000black
#ffffffwhite
Popover
#ffffffwhite
#000000black
Popover foreground
#000000black
#ffffffwhite
Primary
#60d246limegreen
#60d246limegreen
Primary foreground
#173e0fdarkgreen
#173e0fdarkgreen
Secondary
#dee5dcgainsboro
#1b2419black
Secondary foreground
#41513ddarkslategray
#afc4absilver
Muted
#e9ede8linen
#131712black
Muted foreground
#5f6a5cdimgray
#97a395darkseagreen
Accent
#dee5dcgainsboro
#1b2419black
Accent foreground
#41513ddarkslategray
#afc4absilver
Destructive
#8a390asaddlebrown
#f17832tomato
Destructive foreground
#fbdccbbisque
#000000black
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#60d246limegreen
#60d246limegreen

Contrast

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

Light mode
Text on background21.00:1AAA
Text on card21.00:1AAA
Primary button6.25:1AA
Secondary button6.60:1AA
Muted text4.79:1AA
Accent6.60:1AA
Destructive6.06:1AA
Dark mode
Text on background21.00:1AAA
Text on card21.00:1AAA
Primary button6.25:1AA
Secondary button8.60:1AAA
Muted text6.89:1AA
Accent8.60:1AAA
Destructive7.45:1AAA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(1 0 180);
  --foreground: oklch(0 0 0);
  --muted: oklch(0.942 0.008 139.983);
  --muted-foreground: oklch(0.512 0.026 139.947);
  --popover: oklch(1 0 180);
  --popover-foreground: oklch(0 0 0);
  --card: oklch(1 0 180);
  --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.77 0.206 140.243);
  --primary-foreground: oklch(0.323 0.086 140.226);
  --secondary: oklch(0.913 0.014 139.978);
  --secondary-foreground: oklch(0.416 0.038 139.919);
  --accent: oklch(0.913 0.014 139.978);
  --accent-foreground: oklch(0.416 0.038 139.919);
  --destructive: oklch(0.449 0.123 44.584);
  --destructive-foreground: oklch(0.917 0.042 51.992);
  --ring: oklch(0.77 0.206 140.243);
  --chart-1: oklch(0.77 0.206 140.243);
  --chart-2: oklch(0.913 0.014 139.978);
  --chart-3: oklch(0.913 0.014 139.978);
  --chart-4: oklch(0.935 0.01 139.981);
  --chart-5: oklch(0.777 0.213 140.298);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0 0 0);
  --foreground: oklch(1 0 180);
  --muted: oklch(0.198 0.012 139.938);
  --muted-foreground: oklch(0.701 0.024 139.961);
  --popover: oklch(0 0 0);
  --popover-foreground: oklch(1 0 180);
  --card: oklch(0 0 0);
  --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.77 0.206 140.243);
  --primary-foreground: oklch(0.323 0.086 140.226);
  --secondary: oklch(0.248 0.024 139.917);
  --secondary-foreground: oklch(0.799 0.042 139.945);
  --accent: oklch(0.248 0.024 139.917);
  --accent-foreground: oklch(0.799 0.042 139.945);
  --destructive: oklch(0.702 0.169 47.122);
  --destructive-foreground: oklch(0 0 0);
  --ring: oklch(0.77 0.206 140.243);
  --chart-1: oklch(0.77 0.206 140.243);
  --chart-2: oklch(0.248 0.024 139.917);
  --chart-3: oklch(0.248 0.024 139.917);
  --chart-4: oklch(0.283 0.029 139.914);
  --chart-5: oklch(0.777 0.213 140.298);
}