Idle for shadcn/ui

Idle is a shadcn/ui theme built around a near-black primary color (#010005) with muted indigo accents (#bab6c8). The light mode uses a neutral background (#ffffff). Dark mode keeps the near-black primary (#010005) on a neutral background (#000000).

Color palette

TokenLightDark
Background
#ffffffwhite
#000000black
Foreground
#010105black
#f9f8fcghostwhite
Card
#fcfcfcsnow
#030303black
Card foreground
#000000black
#fcfcfdwhite
Popover
#fcfcfcsnow
#030303black
Popover foreground
#000000black
#fcfcfdwhite
Primary
#010005black
#010005black
Primary foreground
#b09ffelightsteelblue
#b09ffelightsteelblue
Secondary
#cccbd2lightgrey
#19181bblack
Secondary foreground
#33313adarkslategray
#b0aeb7darkgray
Muted
#dbd7eagainsboro
#191528black
Muted foreground
#3f3e41darkslategray
#bebec1silver
Accent
#bab6c8silver
#272532darkslategray
Accent foreground
#23212cdarkslategray
#bfbccdsilver
Destructive
#751e0bmaroon
#eb4c28chocolate
Destructive foreground
#f8c5b9lightpink
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#010005black
#010005black

Contrast

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

Light mode
Text on background20.83:1AAA
Text on card20.54:1AAA
Primary button9.20:1AAA
Secondary button7.93:1AAA
Muted text7.55:1AAA
Accent8.02:1AAA
Destructive7.03:1AAA
Dark mode
Text on background19.86:1AAA
Text on card20.16:1AAA
Primary button9.20:1AAA
Secondary button8.07:1AAA
Muted text9.58:1AAA
Accent8.08:1AAA
Destructive3.74:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(1 0 180);
  --foreground: oklch(0.07 0.024 292.673);
  --muted: oklch(0.888 0.025 294.295);
  --muted-foreground: oklch(0.367 0.004 294.603);
  --popover: oklch(0.992 0 161.565);
  --popover-foreground: oklch(0 0 0);
  --card: oklch(0.992 0 161.565);
  --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.061 0.033 291.089);
  --primary-foreground: oklch(0.755 0.135 291.234);
  --secondary: oklch(0.845 0.011 294.587);
  --secondary-foreground: oklch(0.319 0.015 293.93);
  --accent: oklch(0.786 0.025 294.223);
  --accent-foreground: oklch(0.254 0.02 293.319);
  --destructive: oklch(0.376 0.124 33.773);
  --destructive-foreground: oklch(0.865 0.062 32.86);
  --ring: oklch(0.061 0.033 291.089);
  --chart-1: oklch(0.061 0.033 291.089);
  --chart-2: oklch(0.845 0.011 294.587);
  --chart-3: oklch(0.786 0.025 294.223);
  --chart-4: oklch(0.87 0.009 294.632);
  --chart-5: oklch(0.06 0.034 290.746);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0 0 0);
  --foreground: oklch(0.981 0.005 294.733);
  --muted: oklch(0.211 0.036 291.431);
  --muted-foreground: oklch(0.803 0.004 294.741);
  --popover: oklch(0.092 0 180);
  --popover-foreground: oklch(0.99 0.002 294.779);
  --card: oklch(0.092 0 180);
  --card-foreground: oklch(0.99 0.002 294.779);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.061 0.033 291.089);
  --primary-foreground: oklch(0.755 0.135 291.234);
  --secondary: oklch(0.211 0.006 294.292);
  --secondary-foreground: oklch(0.755 0.013 294.501);
  --accent: oklch(0.272 0.024 293.139);
  --accent-foreground: oklch(0.802 0.025 294.247);
  --destructive: oklch(0.635 0.201 33.949);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.061 0.033 291.089);
  --chart-1: oklch(0.061 0.033 291.089);
  --chart-2: oklch(0.211 0.006 294.292);
  --chart-3: oklch(0.272 0.024 293.139);
  --chart-4: oklch(0.242 0.008 294.242);
  --chart-5: oklch(0.06 0.034 290.746);
}