Unlucky for shadcn/ui

Unlucky is a shadcn/ui theme built around a cyan primary color (#8dbac4) with red accents (#c4978d). The light mode uses a neutral background (#fcfdfd). Dark mode keeps the cyan primary (#8dbac4) on a neutral background (#020708).

Color palette

TokenLightDark
Background
#fcfdfdwhite
#020708black
Foreground
#051215black
#f6f8f9whitesmoke
Card
#fcfdfdwhite
#020708black
Card foreground
#051215black
#f6f8f9whitesmoke
Popover
#fcfdfdwhite
#020708black
Popover foreground
#051215black
#f6f8f9whitesmoke
Primary
#8dbac4darkgray
#8dbac4darkgray
Primary foreground
#0a1214black
#0a1214black
Secondary
#c4978drosybrown
#c4978drosybrown
Secondary foreground
#140c0ablack
#140c0ablack
Muted
#f1efeewhitesmoke
#110e0eblack
Muted foreground
#655e5ddimgray
#a29c9adarkgray
Accent
#c4978drosybrown
#c4978drosybrown
Accent foreground
#140c0ablack
#140c0ablack
Destructive
#b61102firebrick
#fd3321orangered
Destructive foreground
#ffeceblinen
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#8dbac4darkgray
#8dbac4darkgray

Contrast

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

Light mode
Text on background18.65:1AAA
Text on card18.65:1AAA
Primary button8.95:1AAA
Secondary button7.49:1AAA
Muted text5.52:1AA
Accent7.49:1AAA
Destructive6.02:1AA
Dark mode
Text on background19.01:1AAA
Text on card19.01:1AAA
Primary button8.95:1AAA
Secondary button7.49:1AAA
Muted text7.08:1AAA
Accent7.49:1AAA
Destructive3.70:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.993 0.002 212.662);
  --foreground: oklch(0.171 0.021 212.776);
  --muted: oklch(0.953 0.003 32.661);
  --muted-foreground: oklch(0.489 0.008 32.67);
  --popover: oklch(0.993 0.002 212.662);
  --popover-foreground: oklch(0.171 0.021 212.776);
  --card: oklch(0.993 0.002 212.662);
  --card-foreground: oklch(0.171 0.021 212.776);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.76 0.05 213.008);
  --primary-foreground: oklch(0.177 0.013 213.076);
  --secondary: oklch(0.715 0.057 32.904);
  --secondary-foreground: oklch(0.166 0.015 32.952);
  --accent: oklch(0.715 0.057 32.904);
  --accent-foreground: oklch(0.166 0.015 32.952);
  --destructive: oklch(0.492 0.195 30.213);
  --destructive-foreground: oklch(0.959 0.02 23.795);
  --ring: oklch(0.76 0.05 213.008);
  --chart-1: oklch(0.76 0.05 213.008);
  --chart-2: oklch(0.715 0.057 32.904);
  --chart-3: oklch(0.715 0.057 32.904);
  --chart-4: oklch(0.741 0.051 32.847);
  --chart-5: oklch(0.763 0.054 213.073);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.121 0.013 208.65);
  --foreground: oklch(0.978 0.002 212.663);
  --muted: oklch(0.168 0.004 32.68);
  --muted-foreground: oklch(0.697 0.008 32.663);
  --popover: oklch(0.121 0.013 208.65);
  --popover-foreground: oklch(0.978 0.002 212.663);
  --card: oklch(0.121 0.013 208.65);
  --card-foreground: oklch(0.978 0.002 212.663);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.76 0.05 213.008);
  --primary-foreground: oklch(0.177 0.013 213.076);
  --secondary: oklch(0.715 0.057 32.904);
  --secondary-foreground: oklch(0.166 0.015 32.952);
  --accent: oklch(0.715 0.057 32.904);
  --accent-foreground: oklch(0.166 0.015 32.952);
  --destructive: oklch(0.644 0.237 29.999);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.76 0.05 213.008);
  --chart-1: oklch(0.76 0.05 213.008);
  --chart-2: oklch(0.715 0.057 32.904);
  --chart-3: oklch(0.715 0.057 32.904);
  --chart-4: oklch(0.741 0.051 32.847);
  --chart-5: oklch(0.763 0.054 213.073);
}