Oily for shadcn/ui

Oily is a shadcn/ui theme built around a deep indigo primary color (#0d0920) with muted light indigo accents (#bfbbd3). The light mode uses a neutral background (#ffffff). Dark mode keeps the deep indigo primary (#0d0920) on an indigo-tinted background (#060410).

Color palette

TokenLightDark
Background
#ffffffwhite
#060410black
Foreground
#050312black
#ffffffwhite
Card
#ffffffwhite
#060410black
Card foreground
#050312black
#ffffffwhite
Popover
#ffffffwhite
#060410black
Popover foreground
#050312black
#ffffffwhite
Primary
#0d0920black
#0d0920black
Primary foreground
#d5cff2gainsboro
#d5cff2gainsboro
Secondary
#d3d1dclightgrey
#181721black
Secondary foreground
#383545darkslategray
#aca7c3darkgray
Muted
#f0f0f5whitesmoke
#0b0a0fblack
Muted foreground
#545167dimgray
#9c98aedarkgray
Accent
#bfbbd3silver
#2a2640darkslategray
Accent foreground
#272438darkslategray
#c3bfd9lightsteelblue
Destructive
#611e0amaroon
#e34616orangered
Destructive foreground
#f6b9a7lightpink
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#0d0920black
#0d0920black

Contrast

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

Light mode
Text on background20.42:1AAA
Text on card20.42:1AAA
Primary button13.05:1AAA
Secondary button7.88:1AAA
Muted text6.71:1AA
Accent8.07:1AAA
Destructive7.28:1AAA
Dark mode
Text on background20.29:1AAA
Text on card20.29:1AAA
Primary button13.05:1AAA
Secondary button7.66:1AAA
Muted text7.05:1AAA
Accent8.09:1AAA
Destructive4.05:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(1 0 180);
  --foreground: oklch(0.114 0.039 290.176);
  --muted: oklch(0.956 0.007 293.926);
  --muted-foreground: oklch(0.446 0.036 292.52);
  --popover: oklch(1 0 180);
  --popover-foreground: oklch(0.114 0.039 290.176);
  --card: oklch(1 0 180);
  --card-foreground: oklch(0.114 0.039 290.176);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.16 0.047 287.528);
  --primary-foreground: oklch(0.87 0.048 293.016);
  --secondary: oklch(0.865 0.015 293.75);
  --secondary-foreground: oklch(0.339 0.028 292.493);
  --accent: oklch(0.803 0.033 293.287);
  --accent-foreground: oklch(0.274 0.035 291.518);
  --destructive: oklch(0.339 0.102 36.614);
  --destructive-foreground: oklch(0.838 0.076 37.606);
  --ring: oklch(0.16 0.047 287.528);
  --chart-1: oklch(0.16 0.047 287.528);
  --chart-2: oklch(0.865 0.015 293.75);
  --chart-3: oklch(0.803 0.033 293.287);
  --chart-4: oklch(0.891 0.012 293.819);
  --chart-5: oklch(0.158 0.05 287.104);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.123 0.029 291.514);
  --foreground: oklch(1 0 180);
  --muted: oklch(0.149 0.011 292.571);
  --muted-foreground: oklch(0.691 0.032 293.185);
  --popover: oklch(0.123 0.029 291.514);
  --popover-foreground: oklch(1 0 180);
  --card: oklch(0.123 0.029 291.514);
  --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.16 0.047 287.528);
  --primary-foreground: oklch(0.87 0.048 293.016);
  --secondary: oklch(0.211 0.021 292.137);
  --secondary-foreground: oklch(0.741 0.04 293.034);
  --accent: oklch(0.287 0.046 290.83);
  --accent-foreground: oklch(0.817 0.036 293.24);
  --destructive: oklch(0.616 0.201 35.746);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.16 0.047 287.528);
  --chart-1: oklch(0.16 0.047 287.528);
  --chart-2: oklch(0.211 0.021 292.137);
  --chart-3: oklch(0.287 0.046 290.83);
  --chart-4: oklch(0.239 0.026 291.965);
  --chart-5: oklch(0.158 0.05 287.104);
}