Gambling for shadcn/ui

Gambling is a shadcn/ui theme built around a deep pink primary color (#5b2940) with deep teal accents (#295b45). The light mode uses a neutral background (#fefbfc). Dark mode keeps the deep pink primary (#5b2940) on a pink-tinted background (#0b0407).

Color palette

TokenLightDark
Background
#fefbfcsnow
#0b0407black
Foreground
#15040cblack
#fdfcfcsnow
Card
#fefbfcsnow
#0b0407black
Card foreground
#15040cblack
#fdfcfcsnow
Popover
#fefbfcsnow
#0b0407black
Popover foreground
#15040cblack
#fdfcfcsnow
Primary
#5b2940darkslategray
#5b2940darkslategray
Primary foreground
#e9cedagainsboro
#e9cedagainsboro
Secondary
#295b45darkslategray
#295b45darkslategray
Secondary foreground
#cee9ddgainsboro
#cee9ddgainsboro
Muted
#d9e7e1gainsboro
#18261fblack
Muted foreground
#54635ddimgray
#9caba4darkgray
Accent
#295b45darkslategray
#295b45darkslategray
Accent foreground
#cee9ddgainsboro
#cee9ddgainsboro
Destructive
#8e0e0bdarkred
#f04542tomato
Destructive foreground
#fbd1d0pink
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#5b2940darkslategray
#5b2940darkslategray

Contrast

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

Light mode
Text on background19.34:1AAA
Text on card19.34:1AAA
Primary button7.76:1AAA
Secondary button6.06:1AA
Muted text4.97:1AA
Accent6.06:1AA
Destructive6.85:1AA
Dark mode
Text on background19.81:1AAA
Text on card19.81:1AAA
Primary button7.76:1AAA
Secondary button6.06:1AA
Muted text6.59:1AA
Accent6.06:1AA
Destructive3.73:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.99 0.004 347.927);
  --foreground: oklch(0.146 0.036 351.763);
  --muted: oklch(0.917 0.017 167.285);
  --muted-foreground: oklch(0.486 0.021 166.573);
  --popover: oklch(0.99 0.004 347.927);
  --popover-foreground: oklch(0.146 0.036 351.763);
  --card: oklch(0.99 0.004 347.927);
  --card-foreground: oklch(0.146 0.036 351.763);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.358 0.079 353.553);
  --primary-foreground: oklch(0.877 0.034 348.853);
  --secondary: oklch(0.431 0.067 162.237);
  --secondary-foreground: oklch(0.91 0.033 166.774);
  --accent: oklch(0.431 0.067 162.237);
  --accent-foreground: oklch(0.91 0.033 166.774);
  --destructive: oklch(0.412 0.16 28.528);
  --destructive-foreground: oklch(0.896 0.048 19.234);
  --ring: oklch(0.358 0.079 353.553);
  --chart-1: oklch(0.358 0.079 353.553);
  --chart-2: oklch(0.431 0.067 162.237);
  --chart-3: oklch(0.431 0.067 162.237);
  --chart-4: oklch(0.465 0.073 162.137);
  --chart-5: oklch(0.358 0.085 354.032);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.123 0.019 347.707);
  --foreground: oklch(0.992 0.002 347.855);
  --muted: oklch(0.252 0.023 164.997);
  --muted-foreground: oklch(0.726 0.019 167.072);
  --popover: oklch(0.123 0.019 347.707);
  --popover-foreground: oklch(0.992 0.002 347.855);
  --card: oklch(0.123 0.019 347.707);
  --card-foreground: oklch(0.992 0.002 347.855);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.358 0.079 353.553);
  --primary-foreground: oklch(0.877 0.034 348.853);
  --secondary: oklch(0.431 0.067 162.237);
  --secondary-foreground: oklch(0.91 0.033 166.774);
  --accent: oklch(0.431 0.067 162.237);
  --accent-foreground: oklch(0.91 0.033 166.774);
  --destructive: oklch(0.639 0.208 26.082);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.358 0.079 353.553);
  --chart-1: oklch(0.358 0.079 353.553);
  --chart-2: oklch(0.431 0.067 162.237);
  --chart-3: oklch(0.431 0.067 162.237);
  --chart-4: oklch(0.465 0.073 162.137);
  --chart-5: oklch(0.358 0.085 354.032);
}