Ethyl is a shadcn/ui theme built around a vivid light red primary color (#ff99aa) with vivid light blue accents (#99aaff). The light mode uses a neutral background (#fefbfb). Dark mode keeps the vivid light red primary (#ff99aa) on a red-tinted background (#0a0506).
| Token | Light | Dark |
|---|---|---|
| Background | #fefbfbsnow | #0a0506black |
| Foreground | #040101black | #f8f6f7whitesmoke |
| Card | #fdf6f8snow | #0d0708black |
| Card foreground | #000000black | #fbf9f9snow |
| Popover | #fefbfbsnow | #0a0506black |
| Popover foreground | #040101black | #f8f6f7whitesmoke |
| Primary | #ff99aalightpink | #ff99aalightpink |
| Primary foreground | #660011maroon | #660011maroon |
| Secondary | #aaff99palegreen | #aaff99palegreen |
| Secondary foreground | #000000black | #000000black |
| Muted | #daead6gainsboro | #182915black |
| Muted foreground | #404c3edarkslategray | #b6c1b3silver |
| Accent | #99aafflightskyblue | #99aafflightskyblue |
| Accent foreground | #001166midnightblue | #001166midnightblue |
| Destructive | #c80404firebrick | #f50505red |
| Destructive foreground | #ffffffwhite | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #ff99aalightpink | #ff99aalightpink |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 20.17:1 | AAA |
| Text on card | 19.76:1 | AAA |
| Primary button | 6.60:1 | AA |
| Secondary button | 17.47:1 | AAA |
| Muted text | 7.22:1 | AAA |
| Accent | 7.50:1 | AAA |
| Destructive | 6.04:1 | AA |
| Text on background | 18.78:1 | AAA |
| Text on card | 19.02:1 | AAA |
| Primary button | 6.60:1 | AA |
| Secondary button | 17.47:1 | AAA |
| Muted text | 8.27:1 | AAA |
| Accent | 7.50:1 | AAA |
| Destructive | 4.28:1 | AA Large |
Paste this into your globals.css to use Ethyl in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.99 0.004 5.55);
--foreground: oklch(0.079 0.021 6.372);
--muted: oklch(0.92 0.032 140.477);
--muted-foreground: oklch(0.401 0.027 140.43);
--popover: oklch(0.99 0.004 5.55);
--popover-foreground: oklch(0.079 0.021 6.372);
--card: oklch(0.98 0.008 5.655);
--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.793 0.123 9.508);
--primary-foreground: oklch(0.322 0.13 22.206);
--secondary: oklch(0.922 0.157 140.339);
--secondary-foreground: oklch(0 0 0);
--accent: oklch(0.759 0.124 274.458);
--accent-foreground: oklch(0.252 0.146 263.995);
--destructive: oklch(0.524 0.213 29.059);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.793 0.123 9.508);
--chart-1: oklch(0.793 0.123 9.508);
--chart-2: oklch(0.922 0.157 140.339);
--chart-3: oklch(0.759 0.124 274.458);
--chart-4: oklch(0.932 0.135 140.347);
--chart-5: oklch(0.792 0.127 9.649);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.126 0.01 5.711);
--foreground: oklch(0.976 0.002 5.515);
--muted: oklch(0.258 0.043 140.339);
--muted-foreground: oklch(0.798 0.023 140.487);
--popover: oklch(0.126 0.01 5.711);
--popover-foreground: oklch(0.976 0.002 5.515);
--card: oklch(0.139 0.012 6.31);
--card-foreground: oklch(0.984 0.002 5.493);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.793 0.123 9.508);
--primary-foreground: oklch(0.322 0.13 22.206);
--secondary: oklch(0.922 0.157 140.339);
--secondary-foreground: oklch(0 0 0);
--accent: oklch(0.759 0.124 274.458);
--accent-foreground: oklch(0.252 0.146 263.995);
--destructive: oklch(0.61 0.249 29.098);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.793 0.123 9.508);
--chart-1: oklch(0.793 0.123 9.508);
--chart-2: oklch(0.922 0.157 140.339);
--chart-3: oklch(0.759 0.124 274.458);
--chart-4: oklch(0.932 0.135 140.347);
--chart-5: oklch(0.792 0.127 9.649);
}