Cigarette for shadcn/ui

Cigarette is a shadcn/ui theme built around a blue primary color (#515dc2) with neutral gray accents (#cbccd2). The light mode uses a neutral background (#f7f8fd). Dark mode keeps the blue primary (#515dc2) on a neutral background (#020203).

Color palette

TokenLightDark
Background
#f7f8fdghostwhite
#020203black
Foreground
#000000black
#f8f9fbghostwhite
Card
#f3f4fbwhitesmoke
#030407black
Card foreground
#000000black
#fcfcfdwhite
Popover
#f7f8fdghostwhite
#020203black
Popover foreground
#000000black
#f8f9fbghostwhite
Primary
#515dc2slateblue
#515dc2slateblue
Primary foreground
#ffffffwhite
#ffffffwhite
Secondary
#cbccd2lightgrey
#2e2e2edarkslategray
Secondary foreground
#323339darkslategray
#c7c7c7silver
Muted
#efeff6whitesmoke
#100909black
Muted foreground
#505158darkslategray
#afa7a7darkgray
Accent
#cbccd2lightgrey
#2e2e2edarkslategray
Accent foreground
#323339darkslategray
#c7c7c7silver
Destructive
#631608maroon
#ef5034tomato
Destructive foreground
#f8b2a5lightpink
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#515dc2slateblue
#515dc2slateblue

Contrast

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

Light mode
Text on background19.78:1AAA
Text on card19.19:1AAA
Primary button5.69:1AA
Secondary button7.84:1AAA
Muted text6.91:1AA
Accent7.84:1AAA
Destructive7.22:1AAA
Dark mode
Text on background19.69:1AAA
Text on card20.00:1AAA
Primary button5.69:1AA
Secondary button8.04:1AAA
Muted text8.34:1AAA
Accent8.04:1AAA
Destructive3.58:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.98 0.006 281.184);
  --foreground: oklch(0 0 0);
  --muted: oklch(0.955 0.008 281.146);
  --muted-foreground: oklch(0.436 0.012 280.814);
  --popover: oklch(0.98 0.006 281.184);
  --popover-foreground: oklch(0 0 0);
  --card: oklch(0.969 0.009 281.13);
  --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.522 0.157 274.822);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.846 0.008 281.125);
  --secondary-foreground: oklch(0.321 0.012 280.662);
  --accent: oklch(0.846 0.008 281.125);
  --accent-foreground: oklch(0.321 0.012 280.662);
  --destructive: oklch(0.332 0.112 32.373);
  --destructive-foreground: oklch(0.825 0.084 30.178);
  --ring: oklch(0.522 0.157 274.822);
  --chart-1: oklch(0.522 0.157 274.822);
  --chart-2: oklch(0.846 0.008 281.125);
  --chart-3: oklch(0.846 0.008 281.125);
  --chart-4: oklch(0.871 0.007 281.156);
  --chart-5: oklch(0.517 0.166 274.252);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.085 0.008 278.47);
  --foreground: oklch(0.982 0.004 281.227);
  --muted: oklch(0.151 0.012 18.612);
  --muted-foreground: oklch(0.734 0.01 17.378);
  --popover: oklch(0.085 0.008 278.47);
  --popover-foreground: oklch(0.982 0.004 281.227);
  --card: oklch(0.107 0.01 278.47);
  --card-foreground: oklch(0.991 0.002 281.257);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.522 0.157 274.822);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.301 0 189.462);
  --secondary-foreground: oklch(0.829 0 180);
  --accent: oklch(0.301 0 189.462);
  --accent-foreground: oklch(0.829 0 180);
  --destructive: oklch(0.647 0.199 32.36);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.522 0.157 274.822);
  --chart-1: oklch(0.522 0.157 274.822);
  --chart-2: oklch(0.301 0 189.462);
  --chart-3: oklch(0.301 0 189.462);
  --chart-4: oklch(0.331 0 180);
  --chart-5: oklch(0.517 0.166 274.252);
}