Oily is a shadcn/ui theme built around a neutral gray primary color (#beb9b7) with neutral gray accents (#bebcb7). The light mode uses a neutral background (#fefcfb). Dark mode keeps the neutral gray primary (#beb9b7) on a neutral background (#070403).
| Token | Light | Dark |
|---|---|---|
| Background | #fefcfbsnow | #070403black |
| Foreground | #0d0502black | #fcf9f8snow |
| Card | #fefcfbsnow | #070403black |
| Card foreground | #0d0502black | #fcf9f8snow |
| Popover | #fefcfbsnow | #070403black |
| Popover foreground | #0d0502black | #fcf9f8snow |
| Primary | #beb9b7silver | #beb9b7silver |
| Primary foreground | #23201fblack | #23201fblack |
| Secondary | #beb7b8silver | #beb7b8silver |
| Secondary foreground | #231f20black | #231f20black |
| Muted | #eddee2gainsboro | #211216black |
| Muted foreground | #654e53dimgray | #b19aa0darkgray |
| Accent | #bebcb7silver | #bebcb7silver |
| Accent foreground | #23221fblack | #23221fblack |
| Destructive | #cb2415firebrick | #e93f2fcrimson |
| Destructive foreground | #ffffffwhite | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #beb9b7silver | #beb9b7silver |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.72:1 | AAA |
| Text on card | 19.72:1 | AAA |
| Primary button | 8.29:1 | AAA |
| Secondary button | 8.24:1 | AAA |
| Muted text | 5.84:1 | AA |
| Accent | 8.37:1 | AAA |
| Destructive | 5.51:1 | AA |
| Text on background | 19.48:1 | AAA |
| Text on card | 19.48:1 | AAA |
| Primary button | 8.29:1 | AAA |
| Secondary button | 8.24:1 | AAA |
| Muted text | 6.87:1 | AA |
| Accent | 8.37:1 | AAA |
| Destructive | 4.02:1 | AA Large |
Paste this into your globals.css to use Oily in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.992 0.002 41.287);
--foreground: oklch(0.128 0.021 51.762);
--muted: oklch(0.914 0.016 1.452);
--muted-foreground: oklch(0.449 0.032 2.904);
--popover: oklch(0.992 0.002 41.287);
--popover-foreground: oklch(0.128 0.021 51.762);
--card: oklch(0.992 0.002 41.287);
--card-foreground: oklch(0.128 0.021 51.762);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.788 0.006 41.242);
--primary-foreground: oklch(0.247 0.004 41.183);
--secondary: oklch(0.785 0.008 1.248);
--secondary-foreground: oklch(0.245 0.005 1.551);
--accent: oklch(0.795 0.008 92.749);
--accent-foreground: oklch(0.252 0.005 92.836);
--destructive: oklch(0.544 0.203 30.043);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.788 0.006 41.242);
--chart-1: oklch(0.788 0.006 41.242);
--chart-2: oklch(0.785 0.008 1.248);
--chart-3: oklch(0.795 0.008 92.749);
--chart-4: oklch(0.809 0.007 1.206);
--chart-5: oklch(0.787 0.01 41.207);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.114 0.009 45.925);
--foreground: oklch(0.984 0.003 41.28);
--muted: oklch(0.205 0.024 4.179);
--muted-foreground: oklch(0.709 0.028 2.056);
--popover: oklch(0.114 0.009 45.925);
--popover-foreground: oklch(0.984 0.003 41.28);
--card: oklch(0.114 0.009 45.925);
--card-foreground: oklch(0.984 0.003 41.28);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.788 0.006 41.242);
--primary-foreground: oklch(0.247 0.004 41.183);
--secondary: oklch(0.785 0.008 1.248);
--secondary-foreground: oklch(0.245 0.005 1.551);
--accent: oklch(0.795 0.008 92.749);
--accent-foreground: oklch(0.252 0.005 92.836);
--destructive: oklch(0.62 0.209 29.524);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.788 0.006 41.242);
--chart-1: oklch(0.788 0.006 41.242);
--chart-2: oklch(0.785 0.008 1.248);
--chart-3: oklch(0.795 0.008 92.749);
--chart-4: oklch(0.809 0.007 1.206);
--chart-5: oklch(0.787 0.01 41.207);
}