Oily for shadcn/ui

Oily is a shadcn/ui theme built around a neutral gray primary color (#beb9b7) with neutral gray accents (#bebcb7). The light mode uses a neutral background (#fefcfb). Dark mode keeps the neutral gray primary (#beb9b7) on a neutral background (#070403).

Color palette

TokenLightDark
Background
#fefcfbsnow
#070403black
Foreground
#0d0502black
#fcf9f8snow
Card
#fefcfbsnow
#070403black
Card foreground
#0d0502black
#fcf9f8snow
Popover
#fefcfbsnow
#070403black
Popover foreground
#0d0502black
#fcf9f8snow
Primary
#beb9b7silver
#beb9b7silver
Primary foreground
#23201fblack
#23201fblack
Secondary
#beb7b8silver
#beb7b8silver
Secondary foreground
#231f20black
#231f20black
Muted
#eddee2gainsboro
#211216black
Muted foreground
#654e53dimgray
#b19aa0darkgray
Accent
#bebcb7silver
#bebcb7silver
Accent foreground
#23221fblack
#23221fblack
Destructive
#cb2415firebrick
#e93f2fcrimson
Destructive foreground
#ffffffwhite
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#beb9b7silver
#beb9b7silver

Contrast

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

Light mode
Text on background19.72:1AAA
Text on card19.72:1AAA
Primary button8.29:1AAA
Secondary button8.24:1AAA
Muted text5.84:1AA
Accent8.37:1AAA
Destructive5.51:1AA
Dark mode
Text on background19.48:1AAA
Text on card19.48:1AAA
Primary button8.29:1AAA
Secondary button8.24:1AAA
Muted text6.87:1AA
Accent8.37:1AAA
Destructive4.02:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.992 0.002 41.287);
  --foreground: oklch(0.128 0.021 51.762);
  --muted: oklch(0.914 0.016 1.452);
  --muted-foreground: oklch(0.449 0.032 2.904);
  --popover: oklch(0.992 0.002 41.287);
  --popover-foreground: oklch(0.128 0.021 51.762);
  --card: oklch(0.992 0.002 41.287);
  --card-foreground: oklch(0.128 0.021 51.762);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.788 0.006 41.242);
  --primary-foreground: oklch(0.247 0.004 41.183);
  --secondary: oklch(0.785 0.008 1.248);
  --secondary-foreground: oklch(0.245 0.005 1.551);
  --accent: oklch(0.795 0.008 92.749);
  --accent-foreground: oklch(0.252 0.005 92.836);
  --destructive: oklch(0.544 0.203 30.043);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.788 0.006 41.242);
  --chart-1: oklch(0.788 0.006 41.242);
  --chart-2: oklch(0.785 0.008 1.248);
  --chart-3: oklch(0.795 0.008 92.749);
  --chart-4: oklch(0.809 0.007 1.206);
  --chart-5: oklch(0.787 0.01 41.207);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.114 0.009 45.925);
  --foreground: oklch(0.984 0.003 41.28);
  --muted: oklch(0.205 0.024 4.179);
  --muted-foreground: oklch(0.709 0.028 2.056);
  --popover: oklch(0.114 0.009 45.925);
  --popover-foreground: oklch(0.984 0.003 41.28);
  --card: oklch(0.114 0.009 45.925);
  --card-foreground: oklch(0.984 0.003 41.28);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.788 0.006 41.242);
  --primary-foreground: oklch(0.247 0.004 41.183);
  --secondary: oklch(0.785 0.008 1.248);
  --secondary-foreground: oklch(0.245 0.005 1.551);
  --accent: oklch(0.795 0.008 92.749);
  --accent-foreground: oklch(0.252 0.005 92.836);
  --destructive: oklch(0.62 0.209 29.524);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.788 0.006 41.242);
  --chart-1: oklch(0.788 0.006 41.242);
  --chart-2: oklch(0.785 0.008 1.248);
  --chart-3: oklch(0.795 0.008 92.749);
  --chart-4: oklch(0.809 0.007 1.206);
  --chart-5: oklch(0.787 0.01 41.207);
}