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).
| Token | Light | Dark |
|---|---|---|
| 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 |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 20.23:1 | AAA |
| Text on card | 20.23:1 | AAA |
| Primary button | 13.64:1 | AAA |
| Secondary button | 6.84:1 | AA |
| Muted text | 6.64:1 | AA |
| Accent | 6.84:1 | AA |
| Destructive | 6.81:1 | AA |
| Text on background | 20.59:1 | AAA |
| Text on card | 20.59:1 | AAA |
| Primary button | 13.64:1 | AAA |
| Secondary button | 6.84:1 | AA |
| Muted text | 7.97:1 | AAA |
| Accent | 6.84:1 | AA |
| Destructive | 5.33:1 | AA |
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);
}