Idle for shadcn/ui

Idle is a shadcn/ui theme built around a deep orange primary color (#513c15) with deep violet accents (#3c1551). The light mode uses a neutral background (#fdfbf7). Dark mode keeps the deep orange primary (#513c15) on a neutral background (#030302).

Color palette

TokenLightDark
Background
#fdfbf7snow
#030302black
Foreground
#0c0903black
#fdfdfcwhite
Card
#fdfbf7snow
#030302black
Card foreground
#0c0903black
#fdfdfcwhite
Popover
#fdfbf7snow
#030302black
Popover foreground
#0c0903black
#fdfdfcwhite
Primary
#513c15darkolivegreen
#513c15darkolivegreen
Primary foreground
#ead5aewheat
#ead5aewheat
Secondary
#15513cdarkslategray
#15513cdarkslategray
Secondary foreground
#aeead5powderblue
#aeead5powderblue
Muted
#d2e4degainsboro
#1b2d26darkslategray
Muted foreground
#4d665ddimgray
#99b2a9darkgray
Accent
#3c1551midnightblue
#3c1551midnightblue
Accent foreground
#d5aeeaplum
#d5aeeaplum
Destructive
#de4c02orangered
#fd7835tomato
Destructive foreground
#ffffffwhite
#000000black
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#513c15darkolivegreen
#513c15darkolivegreen

Contrast

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

Light mode
Text on background19.22:1AAA
Text on card19.22:1AAA
Primary button7.28:1AAA
Secondary button6.82:1AA
Muted text4.72:1AA
Accent7.80:1AAA
Destructive4.09:1AA Large
Dark mode
Text on background20.28:1AAA
Text on card20.28:1AAA
Primary button7.28:1AAA
Secondary button6.82:1AA
Muted text6.43:1AA
Accent7.80:1AAA
Destructive7.89:1AAA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.988 0.006 83.061);
  --foreground: oklch(0.142 0.018 89.068);
  --muted: oklch(0.904 0.021 172.89);
  --muted-foreground: oklch(0.486 0.033 171.426);
  --popover: oklch(0.988 0.006 83.061);
  --popover-foreground: oklch(0.142 0.018 89.068);
  --card: oklch(0.988 0.006 83.061);
  --card-foreground: oklch(0.142 0.018 89.068);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.371 0.062 80.118);
  --primary-foreground: oklch(0.881 0.057 82.911);
  --secondary: oklch(0.391 0.071 165.541);
  --secondary-foreground: oklch(0.891 0.068 171.127);
  --accent: oklch(0.289 0.108 311.299);
  --accent-foreground: oklch(0.805 0.093 313.578);
  --destructive: oklch(0.612 0.194 39.384);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.371 0.062 80.118);
  --chart-1: oklch(0.371 0.062 80.118);
  --chart-2: oklch(0.391 0.071 165.541);
  --chart-3: oklch(0.289 0.108 311.299);
  --chart-4: oklch(0.43 0.079 165.319);
  --chart-5: oklch(0.374 0.064 79.766);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.095 0.006 86.764);
  --foreground: oklch(0.993 0.001 83.055);
  --muted: oklch(0.278 0.026 170.399);
  --muted-foreground: oklch(0.743 0.03 172.335);
  --popover: oklch(0.095 0.006 86.764);
  --popover-foreground: oklch(0.993 0.001 83.055);
  --card: oklch(0.095 0.006 86.764);
  --card-foreground: oklch(0.993 0.001 83.055);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.371 0.062 80.118);
  --primary-foreground: oklch(0.881 0.057 82.911);
  --secondary: oklch(0.391 0.071 165.541);
  --secondary-foreground: oklch(0.891 0.068 171.127);
  --accent: oklch(0.289 0.108 311.299);
  --accent-foreground: oklch(0.805 0.093 313.578);
  --destructive: oklch(0.719 0.18 44.267);
  --destructive-foreground: oklch(0 0 0);
  --ring: oklch(0.371 0.062 80.118);
  --chart-1: oklch(0.371 0.062 80.118);
  --chart-2: oklch(0.391 0.071 165.541);
  --chart-3: oklch(0.289 0.108 311.299);
  --chart-4: oklch(0.43 0.079 165.319);
  --chart-5: oklch(0.374 0.064 79.766);
}