Idle for shadcn/ui

Idle is a shadcn/ui theme built around a light blue primary color (#c4cff2) with light green accents (#cff2c4). The light mode uses a neutral background (#ffffff). Dark mode keeps the light blue primary (#c4cff2) on a neutral background (#020204).

Color palette

TokenLightDark
Background
#ffffffwhite
#020204black
Foreground
#020612black
#f5f6fawhitesmoke
Card
#ffffffwhite
#020204black
Card foreground
#020612black
#f5f6fawhitesmoke
Popover
#ffffffwhite
#020204black
Popover foreground
#020612black
#f5f6fawhitesmoke
Primary
#c4cff2lightblue
#c4cff2lightblue
Primary foreground
#182c6dmidnightblue
#182c6dmidnightblue
Secondary
#f2c4cfpink
#f2c4cfpink
Secondary foreground
#6d182cmaroon
#6d182cmaroon
Muted
#f1dfe3mistyrose
#200e12black
Muted foreground
#554448darkslategray
#bbaaaedarkgray
Accent
#cff2c4lightgrey
#cff2c4lightgrey
Accent foreground
#0a1906black
#0a1906black
Destructive
#a84105saddlebrown
#f25e07orangered
Destructive foreground
#ffffffwhite
#000000black
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#c4cff2lightblue
#c4cff2lightblue

Contrast

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

Light mode
Text on background20.24:1AAA
Text on card20.24:1AAA
Primary button8.38:1AAA
Secondary button7.49:1AAA
Muted text7.11:1AAA
Accent14.87:1AAA
Destructive6.12:1AA
Dark mode
Text on background19.21:1AAA
Text on card19.21:1AAA
Primary button8.38:1AAA
Secondary button7.49:1AAA
Muted text8.36:1AAA
Accent14.87:1AAA
Destructive6.38:1AA

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.125 0.03 263.001);
  --muted: oklch(0.92 0.02 1.572);
  --muted-foreground: oklch(0.406 0.024 2.556);
  --popover: oklch(1 0 180);
  --popover-foreground: oklch(0.125 0.03 263.001);
  --card: oklch(1 0 180);
  --card-foreground: oklch(0.125 0.03 263.001);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.858 0.05 271.964);
  --primary-foreground: oklch(0.32 0.116 266.763);
  --secondary: oklch(0.865 0.054 2.644);
  --secondary-foreground: oklch(0.359 0.118 12.2);
  --accent: oklch(0.925 0.071 138.422);
  --accent-foreground: oklch(0.194 0.043 138.203);
  --destructive: oklch(0.51 0.149 42.992);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.858 0.05 271.964);
  --chart-1: oklch(0.858 0.05 271.964);
  --chart-2: oklch(0.865 0.054 2.644);
  --chart-3: oklch(0.925 0.071 138.422);
  --chart-4: oklch(0.893 0.042 2.23);
  --chart-5: oklch(0.856 0.053 271.925);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.085 0.009 267.729);
  --foreground: oklch(0.973 0.006 272.595);
  --muted: oklch(0.192 0.031 5.404);
  --muted-foreground: oklch(0.754 0.02 1.697);
  --popover: oklch(0.085 0.009 267.729);
  --popover-foreground: oklch(0.973 0.006 272.595);
  --card: oklch(0.085 0.009 267.729);
  --card-foreground: oklch(0.973 0.006 272.595);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.858 0.05 271.964);
  --primary-foreground: oklch(0.32 0.116 266.763);
  --secondary: oklch(0.865 0.054 2.644);
  --secondary-foreground: oklch(0.359 0.118 12.2);
  --accent: oklch(0.925 0.071 138.422);
  --accent-foreground: oklch(0.194 0.043 138.203);
  --destructive: oklch(0.666 0.198 42.115);
  --destructive-foreground: oklch(0 0 0);
  --ring: oklch(0.858 0.05 271.964);
  --chart-1: oklch(0.858 0.05 271.964);
  --chart-2: oklch(0.865 0.054 2.644);
  --chart-3: oklch(0.925 0.071 138.422);
  --chart-4: oklch(0.893 0.042 2.23);
  --chart-5: oklch(0.856 0.053 271.925);
}