Drag for shadcn/ui

Drag is a shadcn/ui theme built around a vivid teal primary color (#60ebe4) with vivid yellow accents (#ebe460). The light mode uses a neutral background (#fbfefe). Dark mode keeps the vivid teal primary (#60ebe4) on a neutral background (#020808).

Color palette

TokenLightDark
Background
#fbfefewhite
#020808black
Foreground
#000000black
#fcfdfdwhite
Card
#fbfefewhite
#020808black
Card foreground
#000000black
#fcfdfdwhite
Popover
#fbfefewhite
#020808black
Popover foreground
#000000black
#fcfdfdwhite
Primary
#60ebe4turquoise
#60ebe4turquoise
Primary foreground
#031716black
#031716black
Secondary
#e460eborchid
#e460eborchid
Secondary foreground
#160317black
#160317black
Muted
#e1d5e2gainsboro
#291d2adarkslategray
Muted foreground
#534653darkslategray
#b9acb9silver
Accent
#ebe460khaki
#ebe460khaki
Accent foreground
#171603black
#171603black
Destructive
#8b2f04saddlebrown
#f96824tomato
Destructive foreground
#fdd6c3peachpuff
#000000black
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#60ebe4turquoise
#60ebe4turquoise

Contrast

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

Light mode
Text on background20.69:1AAA
Text on card20.69:1AAA
Primary button12.78:1AAA
Secondary button6.78:1AA
Muted text6.24:1AA
Accent13.75:1AAA
Destructive6.22:1AA
Dark mode
Text on background19.80:1AAA
Text on card19.80:1AAA
Primary button12.78:1AAA
Secondary button6.78:1AA
Muted text7.38:1AAA
Accent13.75:1AAA
Destructive7.03:1AAA

CSS variables

Paste this into your globals.css to use Drag in your shadcn/ui project.

:root {
  --radius: 0.5rem;
  --background: oklch(0.995 0.003 193.546);
  --foreground: oklch(0 0 0);
  --muted: oklch(0.886 0.022 324.272);
  --muted-foreground: oklch(0.411 0.028 324.517);
  --popover: oklch(0.995 0.003 193.546);
  --popover-foreground: oklch(0 0 0);
  --card: oklch(0.995 0.003 193.546);
  --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.864 0.12 190.572);
  --primary-foreground: oklch(0.186 0.027 190.835);
  --secondary: oklch(0.706 0.229 325.66);
  --secondary-foreground: oklch(0.149 0.053 326.008);
  --accent: oklch(0.901 0.152 106.25);
  --accent-foreground: oklch(0.194 0.035 106.691);
  --destructive: oklch(0.436 0.134 39.939);
  --destructive-foreground: oklch(0.904 0.051 46.303);
  --ring: oklch(0.864 0.12 190.572);
  --chart-1: oklch(0.864 0.12 190.572);
  --chart-2: oklch(0.706 0.229 325.66);
  --chart-3: oklch(0.901 0.152 106.25);
  --chart-4: oklch(0.726 0.212 325.551);
  --chart-5: oklch(0.87 0.123 190.49);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.125 0.013 192.468);
  --foreground: oklch(0.993 0.001 193.588);
  --muted: oklch(0.252 0.03 324.774);
  --muted-foreground: oklch(0.758 0.024 324.314);
  --popover: oklch(0.125 0.013 192.468);
  --popover-foreground: oklch(0.993 0.001 193.588);
  --card: oklch(0.125 0.013 192.468);
  --card-foreground: oklch(0.993 0.001 193.588);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.864 0.12 190.572);
  --primary-foreground: oklch(0.186 0.027 190.835);
  --secondary: oklch(0.706 0.229 325.66);
  --secondary-foreground: oklch(0.149 0.053 326.008);
  --accent: oklch(0.901 0.152 106.25);
  --accent-foreground: oklch(0.194 0.035 106.691);
  --destructive: oklch(0.691 0.193 41.71);
  --destructive-foreground: oklch(0 0 0);
  --ring: oklch(0.864 0.12 190.572);
  --chart-1: oklch(0.864 0.12 190.572);
  --chart-2: oklch(0.706 0.229 325.66);
  --chart-3: oklch(0.901 0.152 106.25);
  --chart-4: oklch(0.726 0.212 325.551);
  --chart-5: oklch(0.87 0.123 190.49);
}