Informal Cocktail Onion is a shadcn/ui theme built around a light green primary color (#dde3ab) with light green accents (#c1e3ab). The light mode uses a neutral background (#fbfcf8). Dark mode keeps the light green primary (#dde3ab) on a green-tinted background (#0e1005).
| Token | Light | Dark |
|---|---|---|
| Background | #fbfcf8snow | #0e1005black |
| Foreground | #101103black | #f9f9f5whitesmoke |
| Card | #fbfcf8snow | #0e1005black |
| Card foreground | #101103black | #f9f9f5whitesmoke |
| Popover | #fbfcf8snow | #0e1005black |
| Popover foreground | #101103black | #f9f9f5whitesmoke |
| Primary | #dde3abpalegoldenrod | #dde3abpalegoldenrod |
| Primary foreground | #404517darkolivegreen | #404517darkolivegreen |
| Secondary | #e3cdabwheat | #e3cdabwheat |
| Secondary foreground | #453217darkolivegreen | #453217darkolivegreen |
| Muted | #f3eee7linen | #18130cblack |
| Muted foreground | #68625adimgray | #a59f97darkgray |
| Accent | #c1e3absilver | #c1e3absilver |
| Accent foreground | #294517darkgreen | #294517darkgreen |
| Destructive | #8f2800saddlebrown | #ff4800orangered |
| Destructive foreground | #ffd3c2peachpuff | #ffffffwhite |
| Border | #ecece9linen | #1b1b18black |
| Input | #ecece9linen | #1b1b18black |
| Ring | #dde3abpalegoldenrod | #dde3abpalegoldenrod |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 18.43:1 | AAA |
| Text on card | 18.43:1 | AAA |
| Primary button | 7.52:1 | AAA |
| Secondary button | 7.86:1 | AAA |
| Muted text | 5.23:1 | AA |
| Accent | 7.58:1 | AAA |
| Destructive | 6.20:1 | AA |
| Text on background | 18.20:1 | AAA |
| Text on card | 18.20:1 | AAA |
| Primary button | 7.52:1 | AAA |
| Secondary button | 7.86:1 | AAA |
| Muted text | 7.04:1 | AAA |
| Accent | 7.58:1 | AAA |
| Destructive | 3.39:1 | AA Large |
Paste this into your globals.css to use Informal Cocktail Onion in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.989 0.004 111.098);
--foreground: oklch(0.172 0.029 113.537);
--muted: oklch(0.952 0.01 78.276);
--muted-foreground: oklch(0.5 0.014 78.19);
--popover: oklch(0.989 0.004 111.098);
--popover-foreground: oklch(0.172 0.029 113.537);
--card: oklch(0.989 0.004 111.098);
--card-foreground: oklch(0.172 0.029 113.537);
--border: oklch(0.942 0.003 111.079);
--input: oklch(0.942 0.003 111.079);
--primary: oklch(0.898 0.073 112.523);
--primary-foreground: oklch(0.375 0.067 114.456);
--secondary: oklch(0.857 0.051 77.94);
--secondary-foreground: oklch(0.333 0.049 75.77);
--accent: oklch(0.877 0.083 133.123);
--accent-foreground: oklch(0.356 0.079 134.712);
--destructive: oklch(0.435 0.144 37.515);
--destructive-foreground: oklch(0.9 0.055 42.701);
--ring: oklch(0.898 0.073 112.523);
--chart-1: oklch(0.898 0.073 112.523);
--chart-2: oklch(0.857 0.051 77.94);
--chart-3: oklch(0.877 0.083 133.123);
--chart-4: oklch(0.876 0.044 78.032);
--chart-5: oklch(0.902 0.078 112.6);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.166 0.022 113.075);
--foreground: oklch(0.982 0.005 111.118);
--muted: oklch(0.19 0.015 77.695);
--muted-foreground: oklch(0.706 0.013 78.243);
--popover: oklch(0.166 0.022 113.075);
--popover-foreground: oklch(0.982 0.005 111.118);
--card: oklch(0.166 0.022 113.075);
--card-foreground: oklch(0.982 0.005 111.118);
--border: oklch(0.221 0.006 111.506);
--input: oklch(0.221 0.006 111.506);
--primary: oklch(0.898 0.073 112.523);
--primary-foreground: oklch(0.375 0.067 114.456);
--secondary: oklch(0.857 0.051 77.94);
--secondary-foreground: oklch(0.333 0.049 75.77);
--accent: oklch(0.877 0.083 133.123);
--accent-foreground: oklch(0.356 0.079 134.712);
--destructive: oklch(0.663 0.227 36.019);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.898 0.073 112.523);
--chart-1: oklch(0.898 0.073 112.523);
--chart-2: oklch(0.857 0.051 77.94);
--chart-3: oklch(0.877 0.083 133.123);
--chart-4: oklch(0.876 0.044 78.032);
--chart-5: oklch(0.902 0.078 112.6);
}