Cocktail is a shadcn/ui theme built around a teal primary color (#95dfcd) with muted light teal accents (#dee8e5). The light mode uses a neutral background (#ffffff). Dark mode keeps the teal primary (#95dfcd) on a teal-tinted background (#050a09).
| Token | Light | Dark |
|---|---|---|
| Background | #ffffffwhite | #050a09black |
| Foreground | #020d0ablack | #fcfdfdwhite |
| Card | #ffffffwhite | #050a09black |
| Card foreground | #020d0ablack | #fcfdfdwhite |
| Popover | #ffffffwhite | #050a09black |
| Popover foreground | #020d0ablack | #fcfdfdwhite |
| Primary | #95dfcdlightblue | #95dfcdlightblue |
| Primary foreground | #0f332adarkslategray | #0f332adarkslategray |
| Secondary | #dee8e5gainsboro | #252827darkslategray |
| Secondary foreground | #3d5751darkslategray | #bdc2c1silver |
| Muted | #dce0dfgainsboro | #1f2322black |
| Muted foreground | #404544darkslategray | #babfbesilver |
| Accent | #dee8e5gainsboro | #252827darkslategray |
| Accent foreground | #3d5751darkslategray | #bdc2c1silver |
| Destructive | #951009darkred | #f4473etomato |
| Destructive foreground | #fcd6d4mistyrose | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #95dfcdlightblue | #95dfcdlightblue |
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 | 9.00:1 | AAA |
| Secondary button | 6.26:1 | AA |
| Muted text | 7.32:1 | AAA |
| Accent | 6.26:1 | AA |
| Destructive | 6.65:1 | AA |
| Text on background | 19.53:1 | AAA |
| Text on card | 19.53:1 | AAA |
| Primary button | 9.00:1 | AAA |
| Secondary button | 8.27:1 | AAA |
| Muted text | 8.50:1 | AAA |
| Accent | 8.27:1 | AAA |
| Destructive | 3.60:1 | AA Large |
Paste this into your globals.css to use Cocktail in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(1 0 180);
--foreground: oklch(0.146 0.021 178.694);
--muted: oklch(0.903 0.005 179.7);
--muted-foreground: oklch(0.385 0.007 179.313);
--popover: oklch(1 0 180);
--popover-foreground: oklch(0.146 0.021 178.694);
--card: oklch(1 0 180);
--card-foreground: oklch(0.146 0.021 178.694);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.851 0.079 176.852);
--primary-foreground: oklch(0.292 0.044 173.866);
--secondary: oklch(0.923 0.011 179.514);
--secondary-foreground: oklch(0.434 0.034 177.396);
--accent: oklch(0.923 0.011 179.514);
--accent-foreground: oklch(0.434 0.034 177.396);
--destructive: oklch(0.428 0.166 29.371);
--destructive-foreground: oklch(0.907 0.044 21.55);
--ring: oklch(0.851 0.079 176.852);
--chart-1: oklch(0.851 0.079 176.852);
--chart-2: oklch(0.923 0.011 179.514);
--chart-3: oklch(0.923 0.011 179.514);
--chart-4: oklch(0.944 0.008 179.617);
--chart-5: oklch(0.854 0.082 176.69);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.139 0.01 179.897);
--foreground: oklch(0.994 0.002 179.813);
--muted: oklch(0.253 0.007 179.046);
--muted-foreground: oklch(0.801 0.006 179.646);
--popover: oklch(0.139 0.01 179.897);
--popover-foreground: oklch(0.994 0.002 179.813);
--card: oklch(0.139 0.01 179.897);
--card-foreground: oklch(0.994 0.002 179.813);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.851 0.079 176.852);
--primary-foreground: oklch(0.292 0.044 173.866);
--secondary: oklch(0.273 0.005 179.375);
--secondary-foreground: oklch(0.809 0.006 179.657);
--accent: oklch(0.273 0.005 179.375);
--accent-foreground: oklch(0.809 0.006 179.657);
--destructive: oklch(0.647 0.21 27.685);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.851 0.079 176.852);
--chart-1: oklch(0.851 0.079 176.852);
--chart-2: oklch(0.273 0.005 179.375);
--chart-3: oklch(0.273 0.005 179.375);
--chart-4: oklch(0.304 0.005 179.353);
--chart-5: oklch(0.854 0.082 176.69);
}