Cocktail for shadcn/ui

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).

Color palette

TokenLightDark
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

Contrast

WCAG 2 contrast ratios between each background and its foreground color.

Light mode
Text on background19.72:1AAA
Text on card19.72:1AAA
Primary button9.00:1AAA
Secondary button6.26:1AA
Muted text7.32:1AAA
Accent6.26:1AA
Destructive6.65:1AA
Dark mode
Text on background19.53:1AAA
Text on card19.53:1AAA
Primary button9.00:1AAA
Secondary button8.27:1AAA
Muted text8.50:1AAA
Accent8.27:1AAA
Destructive3.60:1AA Large

CSS variables

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);
}