Ethyl is a shadcn/ui theme built around a vivid deep yellow primary color (#282700) with vivid deep purple accents (#270028). The light mode uses a neutral background (#fefdfb). Dark mode keeps the vivid deep yellow primary (#282700) on a neutral background (#080802).
| Token | Light | Dark |
|---|---|---|
| Background | #fefdfbsnow | #080802black |
| Foreground | #171603black | #fafaf4floralwhite |
| Card | #fcfcf8snow | #0c0c03black |
| Card foreground | #121202black | #fcfcf8snow |
| Popover | #fefdfbsnow | #080802black |
| Popover foreground | #171603black | #fafaf4floralwhite |
| Primary | #282700black | #282700black |
| Primary foreground | #f2ea02gold | #f2ea02gold |
| Secondary | #002827black | #002827black |
| Secondary foreground | #02f2eaaqua | #02f2eaaqua |
| Muted | #eceeeewhitesmoke | #111313black |
| Muted foreground | #4b5858darkslategray | #a7b4b3darkgray |
| Accent | #270028black | #270028black |
| Accent foreground | #f85dfdviolet | #f85dfdviolet |
| Destructive | #6b1d06maroon | #f46034tomato |
| Destructive foreground | #fabba8lightpink | #000000black |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #282700black | #282700black |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 17.96:1 | AAA |
| Text on card | 18.34:1 | AAA |
| Primary button | 11.96:1 | AAA |
| Secondary button | 11.12:1 | AAA |
| Muted text | 6.37:1 | AA |
| Accent | 7.12:1 | AAA |
| Destructive | 7.07:1 | AAA |
| Text on background | 19.17:1 | AAA |
| Text on card | 19.10:1 | AAA |
| Primary button | 11.96:1 | AAA |
| Secondary button | 11.12:1 | AAA |
| Muted text | 8.72:1 | AAA |
| Accent | 7.12:1 | AAA |
| Destructive | 6.59:1 | AA |
Paste this into your globals.css to use Ethyl in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.995 0.003 104.858);
--foreground: oklch(0.196 0.036 107.622);
--muted: oklch(0.948 0.003 194.737);
--muted-foreground: oklch(0.449 0.016 194.12);
--popover: oklch(0.995 0.003 104.858);
--popover-foreground: oklch(0.196 0.036 107.622);
--card: oklch(0.99 0.006 104.909);
--card-foreground: oklch(0.176 0.032 107.712);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.266 0.057 107.726);
--primary-foreground: oklch(0.915 0.196 107.192);
--secondary: oklch(0.252 0.043 191.416);
--secondary-foreground: oklch(0.869 0.15 190.514);
--accent: oklch(0.193 0.088 326.896);
--accent-foreground: oklch(0.738 0.257 326.428);
--destructive: oklch(0.355 0.114 36.132);
--destructive-foreground: oklch(0.845 0.079 37.608);
--ring: oklch(0.266 0.057 107.726);
--chart-1: oklch(0.266 0.057 107.726);
--chart-2: oklch(0.252 0.043 191.416);
--chart-3: oklch(0.193 0.088 326.896);
--chart-4: oklch(0.306 0.052 191.165);
--chart-5: oklch(0.268 0.058 107.754);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.131 0.018 107.395);
--foreground: oklch(0.984 0.008 104.946);
--muted: oklch(0.184 0.004 194.391);
--muted-foreground: oklch(0.759 0.015 194.434);
--popover: oklch(0.131 0.018 107.395);
--popover-foreground: oklch(0.984 0.008 104.946);
--card: oklch(0.15 0.021 107.275);
--card-foreground: oklch(0.989 0.005 104.9);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.266 0.057 107.726);
--primary-foreground: oklch(0.915 0.196 107.192);
--secondary: oklch(0.252 0.043 191.416);
--secondary-foreground: oklch(0.869 0.15 190.514);
--accent: oklch(0.193 0.088 326.896);
--accent-foreground: oklch(0.738 0.257 326.428);
--destructive: oklch(0.675 0.191 37.026);
--destructive-foreground: oklch(0 0 0);
--ring: oklch(0.266 0.057 107.726);
--chart-1: oklch(0.266 0.057 107.726);
--chart-2: oklch(0.252 0.043 191.416);
--chart-3: oklch(0.193 0.088 326.896);
--chart-4: oklch(0.306 0.052 191.165);
--chart-5: oklch(0.268 0.058 107.754);
}