Oil for shadcn/ui

Oil is a shadcn/ui theme built around a light red primary color (#ebb2b4) with light teal accents (#b2ebe9). The light mode uses a neutral background (#ffffff). Dark mode keeps the light red primary (#ebb2b4) on a red-tinted background (#0e0606).

Color palette

TokenLightDark
Background
#ffffffwhite
#0e0606black
Foreground
#000000black
#fbf9f9snow
Card
#fcfcfcsnow
#120808black
Card foreground
#000000black
#fdfcfcsnow
Popover
#fcfcfcsnow
#120808black
Popover foreground
#000000black
#fdfcfcsnow
Primary
#ebb2b4lightpink
#ebb2b4lightpink
Primary foreground
#551619maroon
#551619maroon
Secondary
#b2ebe9paleturquoise
#b2ebe9paleturquoise
Secondary foreground
#165553darkslategray
#165553darkslategray
Muted
#d6eaeagainsboro
#152928darkslategray
Muted foreground
#535f5fdimgray
#a0acacdarkgray
Accent
#b2ebe9paleturquoise
#b2ebe9paleturquoise
Accent foreground
#165553darkslategray
#165553darkslategray
Destructive
#cd100afirebrick
#f63e37tomato
Destructive foreground
#ffffffwhite
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#ebb2b4lightpink
#ebb2b4lightpink

Contrast

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

Light mode
Text on background21.00:1AAA
Text on card20.54:1AAA
Primary button7.64:1AAA
Secondary button6.47:1AA
Muted text5.32:1AA
Accent6.47:1AA
Destructive5.73:1AA
Dark mode
Text on background19.09:1AAA
Text on card19.30:1AAA
Primary button7.64:1AAA
Secondary button6.47:1AA
Muted text6.54:1AA
Accent6.47:1AA
Destructive3.72:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(1 0 180);
  --foreground: oklch(0 0 0);
  --muted: oklch(0.923 0.021 194.361);
  --muted-foreground: oklch(0.476 0.015 194.19);
  --popover: oklch(0.992 0 161.565);
  --popover-foreground: oklch(0 0 0);
  --card: oklch(0.992 0 161.565);
  --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.817 0.066 16.375);
  --primary-foreground: oklch(0.306 0.092 22.578);
  --secondary: oklch(0.9 0.057 193.624);
  --secondary-foreground: oklch(0.409 0.061 191.795);
  --accent: oklch(0.9 0.057 193.624);
  --accent-foreground: oklch(0.409 0.061 191.795);
  --destructive: oklch(0.536 0.214 29.233);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.817 0.066 16.375);
  --chart-1: oklch(0.817 0.066 16.375);
  --chart-2: oklch(0.9 0.057 193.624);
  --chart-3: oklch(0.9 0.057 193.624);
  --chart-4: oklch(0.915 0.049 193.814);
  --chart-5: oklch(0.815 0.069 16.47);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.136 0.016 16.704);
  --foreground: oklch(0.984 0.001 14.817);
  --muted: oklch(0.262 0.026 192.937);
  --muted-foreground: oklch(0.734 0.014 194.435);
  --popover: oklch(0.148 0.019 17.116);
  --popover-foreground: oklch(0.992 0.001 14.803);
  --card: oklch(0.148 0.019 17.116);
  --card-foreground: oklch(0.992 0.001 14.803);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.817 0.066 16.375);
  --primary-foreground: oklch(0.306 0.092 22.578);
  --secondary: oklch(0.9 0.057 193.624);
  --secondary-foreground: oklch(0.409 0.061 191.795);
  --accent: oklch(0.9 0.057 193.624);
  --accent-foreground: oklch(0.409 0.061 191.795);
  --destructive: oklch(0.641 0.221 27.521);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.817 0.066 16.375);
  --chart-1: oklch(0.817 0.066 16.375);
  --chart-2: oklch(0.9 0.057 193.624);
  --chart-3: oklch(0.9 0.057 193.624);
  --chart-4: oklch(0.915 0.049 193.814);
  --chart-5: oklch(0.815 0.069 16.47);
}