Oily for shadcn/ui

Oily is a shadcn/ui theme built around a vivid light green primary color (#cdf9e0) with vivid light pink accents (#f9cde6). The light mode uses a neutral background (#f8fbfa). Dark mode keeps the vivid light green primary (#cdf9e0) on a neutral background (#000000).

Color palette

TokenLightDark
Background
#f8fbfamintcream
#000000black
Foreground
#000000black
#fcfdfcwhite
Card
#f8fbfamintcream
#000000black
Card foreground
#000000black
#fcfdfcwhite
Popover
#f8fbfamintcream
#000000black
Popover foreground
#000000black
#fcfdfcwhite
Primary
#cdf9e0gainsboro
#cdf9e0gainsboro
Primary foreground
#052915black
#052915black
Secondary
#f9cde6mistyrose
#f9cde6mistyrose
Secondary foreground
#841052purple
#841052purple
Muted
#e7e4e6gainsboro
#1b181ablack
Muted foreground
#524c4fdarkslategray
#b3adb0darkgray
Accent
#f9cde6mistyrose
#f9cde6mistyrose
Accent foreground
#841052purple
#841052purple
Destructive
#a11412firebrick
#d31b17firebrick
Destructive foreground
#fce8e8linen
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#cdf9e0gainsboro
#cdf9e0gainsboro

Contrast

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

Light mode
Text on background20.23:1AAA
Text on card20.23:1AAA
Primary button13.64:1AAA
Secondary button6.84:1AA
Muted text6.64:1AA
Accent6.84:1AA
Destructive6.81:1AA
Dark mode
Text on background20.59:1AAA
Text on card20.59:1AAA
Primary button13.64:1AAA
Secondary button6.84:1AA
Muted text7.97:1AAA
Accent6.84:1AA
Destructive5.33:1AA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.987 0.004 161.708);
  --foreground: oklch(0 0 0);
  --muted: oklch(0.922 0.003 341.895);
  --muted-foreground: oklch(0.424 0.01 342.372);
  --popover: oklch(0.987 0.004 161.708);
  --popover-foreground: oklch(0 0 0);
  --card: oklch(0.987 0.004 161.708);
  --card-foreground: oklch(0 0 0);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.944 0.056 160.29);
  --primary-foreground: oklch(0.249 0.056 154.239);
  --secondary: oklch(0.893 0.059 343.311);
  --secondary-foreground: oklch(0.409 0.157 352.823);
  --accent: oklch(0.893 0.059 343.311);
  --accent-foreground: oklch(0.409 0.157 352.823);
  --destructive: oklch(0.453 0.174 28.303);
  --destructive-foreground: oklch(0.948 0.022 18.723);
  --ring: oklch(0.944 0.056 160.29);
  --chart-1: oklch(0.944 0.056 160.29);
  --chart-2: oklch(0.893 0.059 343.311);
  --chart-3: oklch(0.893 0.059 343.311);
  --chart-4: oklch(0.922 0.042 342.869);
  --chart-5: oklch(0.945 0.058 160.231);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0 0 0);
  --foreground: oklch(0.993 0.001 161.792);
  --muted: oklch(0.214 0.005 342.344);
  --muted-foreground: oklch(0.753 0.009 342.085);
  --popover: oklch(0 0 0);
  --popover-foreground: oklch(0.993 0.001 161.792);
  --card: oklch(0 0 0);
  --card-foreground: oklch(0.993 0.001 161.792);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.944 0.056 160.29);
  --primary-foreground: oklch(0.249 0.056 154.239);
  --secondary: oklch(0.893 0.059 343.311);
  --secondary-foreground: oklch(0.409 0.157 352.823);
  --accent: oklch(0.893 0.059 343.311);
  --accent-foreground: oklch(0.409 0.157 352.823);
  --destructive: oklch(0.554 0.215 28.499);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.944 0.056 160.29);
  --chart-1: oklch(0.944 0.056 160.29);
  --chart-2: oklch(0.893 0.059 343.311);
  --chart-3: oklch(0.893 0.059 343.311);
  --chart-4: oklch(0.922 0.042 342.869);
  --chart-5: oklch(0.945 0.058 160.231);
}