Idle for shadcn/ui

Idle is a shadcn/ui theme built around a vivid green primary color (#64e105) with muted light green accents (#d0dcc7). The light mode uses a neutral background (#f9fdf7). Dark mode keeps the vivid green primary (#64e105) on a neutral background (#020401).

Color palette

TokenLightDark
Background
#f9fdf7mintcream
#020401black
Foreground
#070d03black
#f7f8f6whitesmoke
Card
#f7fcf2whitesmoke
#050802black
Card foreground
#050802black
#fafbf9snow
Popover
#f9fdf7mintcream
#020401black
Popover foreground
#070d03black
#f7f8f6whitesmoke
Primary
#64e105lawngreen
#64e105lawngreen
Primary foreground
#0b1901black
#0b1901black
Secondary
#eaede8linen
#171816black
Secondary foreground
#1e231bblack
#b0b3addarkgray
Muted
#eff2edwhitesmoke
#0f120dblack
Muted foreground
#3f453adarkslategray
#bec5basilver
Accent
#d0dcc7lightgrey
#2b2f27darkslategray
Accent foreground
#36452bdarkslategray
#c4cabfsilver
Destructive
#74110bmaroon
#ed4e45tomato
Destructive foreground
#f8bdb9lightpink
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#64e105lawngreen
#64e105lawngreen

Contrast

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

Light mode
Text on background19.16:1AAA
Text on card19.38:1AAA
Primary button10.66:1AAA
Secondary button13.58:1AAA
Muted text8.76:1AAA
Accent7.19:1AAA
Destructive7.10:1AAA
Dark mode
Text on background19.31:1AAA
Text on card19.43:1AAA
Primary button10.66:1AAA
Secondary button8.40:1AAA
Muted text10.70:1AAA
Accent8.13:1AAA
Destructive3.64:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.99 0.01 131.17);
  --foreground: oklch(0.146 0.026 129.833);
  --muted: oklch(0.958 0.007 131.145);
  --muted-foreground: oklch(0.382 0.021 131.577);
  --popover: oklch(0.99 0.01 131.17);
  --popover-foreground: oklch(0.146 0.026 129.833);
  --card: oklch(0.985 0.015 131.215);
  --card-foreground: oklch(0.127 0.023 129.558);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.805 0.245 137.406);
  --primary-foreground: oklch(0.193 0.052 132.047);
  --secondary: oklch(0.943 0.008 131.156);
  --secondary-foreground: oklch(0.247 0.016 131.678);
  --accent: oklch(0.879 0.031 131.401);
  --accent-foreground: oklch(0.37 0.046 132.308);
  --destructive: oklch(0.362 0.134 28.936);
  --destructive-foreground: oklch(0.85 0.069 22.077);
  --ring: oklch(0.805 0.245 137.406);
  --chart-1: oklch(0.805 0.245 137.406);
  --chart-2: oklch(0.943 0.008 131.156);
  --chart-3: oklch(0.879 0.031 131.401);
  --chart-4: oklch(0.965 0.005 131.128);
  --chart-5: oklch(0.814 0.249 137.588);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.1 0.015 129.819);
  --foreground: oklch(0.979 0.003 131.112);
  --muted: oklch(0.176 0.01 131.606);
  --muted-foreground: oklch(0.815 0.017 131.272);
  --popover: oklch(0.1 0.015 129.819);
  --popover-foreground: oklch(0.979 0.003 131.112);
  --card: oklch(0.125 0.019 129.819);
  --card-foreground: oklch(0.986 0.002 131.103);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.805 0.245 137.406);
  --primary-foreground: oklch(0.193 0.052 132.047);
  --secondary: oklch(0.207 0.004 131.251);
  --secondary-foreground: oklch(0.762 0.01 131.197);
  --accent: oklch(0.299 0.015 131.538);
  --accent-foreground: oklch(0.83 0.016 131.253);
  --destructive: oklch(0.643 0.197 27.133);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.805 0.245 137.406);
  --chart-1: oklch(0.805 0.245 137.406);
  --chart-2: oklch(0.207 0.004 131.251);
  --chart-3: oklch(0.299 0.015 131.538);
  --chart-4: oklch(0.24 0.005 131.269);
  --chart-5: oklch(0.814 0.249 137.588);
}