Oily for shadcn/ui

Oily is a shadcn/ui theme built around a deep indigo primary color (#0f0f3e) with deep green accents (#0f3e0f). The light mode uses a neutral background (#f8f8fc). Dark mode keeps the deep indigo primary (#0f0f3e) on an indigo-tinted background (#05060f).

Color palette

TokenLightDark
Background
#f8f8fcghostwhite
#05060fblack
Foreground
#050515black
#f6f6f8whitesmoke
Card
#f5f5fawhitesmoke
#070713black
Card foreground
#040411black
#f9f9fbghostwhite
Popover
#f8f8fcghostwhite
#05060fblack
Popover foreground
#050515black
#f6f6f8whitesmoke
Primary
#0f0f3emidnightblue
#0f0f3emidnightblue
Primary foreground
#9899e7mediumpurple
#9899e7mediumpurple
Secondary
#3e0f0fblack
#3e0f0fblack
Secondary foreground
#e79899darksalmon
#e79899darksalmon
Muted
#f4f0f0whitesmoke
#0f0b0bblack
Muted foreground
#4b4444darkslategray
#bbb4b4silver
Accent
#0f3e0fdarkgreen
#0f3e0fdarkgreen
Accent foreground
#47d345limegreen
#47d345limegreen
Destructive
#6e1b0cmaroon
#e95035tomato
Destructive foreground
#f7bfb6lightpink
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#0f0f3emidnightblue
#0f0f3emidnightblue

Contrast

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

Light mode
Text on background19.09:1AAA
Text on card18.70:1AAA
Primary button6.94:1AA
Secondary button7.31:1AAA
Muted text8.42:1AAA
Accent6.21:1AA
Destructive7.16:1AAA
Dark mode
Text on background18.74:1AAA
Text on card19.05:1AAA
Primary button6.94:1AA
Secondary button7.31:1AAA
Muted text9.61:1AAA
Accent6.21:1AA
Destructive3.71: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.98 0.005 285.53);
  --foreground: oklch(0.127 0.037 278.726);
  --muted: oklch(0.959 0.004 16.054);
  --muted-foreground: oklch(0.393 0.01 16.416);
  --popover: oklch(0.98 0.005 285.53);
  --popover-foreground: oklch(0.127 0.037 278.726);
  --card: oklch(0.971 0.007 285.484);
  --card-foreground: oklch(0.117 0.032 279.092);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.207 0.087 275.021);
  --primary-foreground: oklch(0.713 0.113 282.408);
  --secondary: oklch(0.249 0.074 23.373);
  --secondary-foreground: oklch(0.758 0.095 18.452);
  --accent: oklch(0.321 0.091 142.873);
  --accent-foreground: oklch(0.765 0.218 142.854);
  --destructive: oklch(0.359 0.119 32.364);
  --destructive-foreground: oklch(0.853 0.066 29.942);
  --ring: oklch(0.207 0.087 275.021);
  --chart-1: oklch(0.207 0.087 275.021);
  --chart-2: oklch(0.249 0.074 23.373);
  --chart-3: oklch(0.321 0.091 142.873);
  --chart-4: oklch(0.279 0.086 23.799);
  --chart-5: oklch(0.205 0.09 274.271);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.125 0.023 281.614);
  --foreground: oklch(0.974 0.003 285.562);
  --muted: oklch(0.154 0.007 16.819);
  --muted-foreground: oklch(0.776 0.008 16.159);
  --popover: oklch(0.125 0.023 281.614);
  --popover-foreground: oklch(0.974 0.003 285.562);
  --card: oklch(0.136 0.026 281.369);
  --card-foreground: oklch(0.983 0.002 285.581);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.207 0.087 275.021);
  --primary-foreground: oklch(0.713 0.113 282.408);
  --secondary: oklch(0.249 0.074 23.373);
  --secondary-foreground: oklch(0.758 0.095 18.452);
  --accent: oklch(0.321 0.091 142.873);
  --accent-foreground: oklch(0.765 0.218 142.854);
  --destructive: oklch(0.637 0.193 32.341);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.207 0.087 275.021);
  --chart-1: oklch(0.207 0.087 275.021);
  --chart-2: oklch(0.249 0.074 23.373);
  --chart-3: oklch(0.321 0.091 142.873);
  --chart-4: oklch(0.279 0.086 23.799);
  --chart-5: oklch(0.205 0.09 274.271);
}