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).
| Token | Light | Dark |
|---|---|---|
| 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 |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 21.00:1 | AAA |
| Text on card | 20.54:1 | AAA |
| Primary button | 7.64:1 | AAA |
| Secondary button | 6.47:1 | AA |
| Muted text | 5.32:1 | AA |
| Accent | 6.47:1 | AA |
| Destructive | 5.73:1 | AA |
| Text on background | 19.09:1 | AAA |
| Text on card | 19.30:1 | AAA |
| Primary button | 7.64:1 | AAA |
| Secondary button | 6.47:1 | AA |
| Muted text | 6.54:1 | AA |
| Accent | 6.47:1 | AA |
| Destructive | 3.72:1 | AA Large |
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);
}