Casino for shadcn/ui

Casino is a shadcn/ui theme built around a deep purple primary color (#411a42) with muted light purple accents (#dbc7db). The light mode uses a neutral background (#fefbfe). Dark mode keeps the deep purple primary (#411a42) on a neutral background (#000000).

Color palette

TokenLightDark
Background
#fefbfewhite
#000000black
Foreground
#040104black
#fdfcfdwhite
Card
#fefbfewhite
#000000black
Card foreground
#040104black
#fdfcfdwhite
Popover
#fefbfewhite
#000000black
Popover foreground
#040104black
#fdfcfdwhite
Primary
#411a42darkslategray
#411a42darkslategray
Primary foreground
#dfaee0plum
#dfaee0plum
Secondary
#e9e2e9lavender
#1a141ablack
Secondary foreground
#574257darkslategray
#bba4bcdarkgray
Muted
#f6eef6whitesmoke
#100911black
Muted foreground
#5f535fdimgray
#aca0acdarkgray
Accent
#dbc7dbthistle
#2e1e2edarkslategray
Accent foreground
#442c44darkslategray
#ccb2cdthistle
Destructive
#6a1d0bmaroon
#eb5d3dtomato
Destructive foreground
#f7bdb1lightpink
#000000black
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#411a42darkslategray
#411a42darkslategray

Contrast

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

Light mode
Text on background20.18:1AAA
Text on card20.18:1AAA
Primary button7.76:1AAA
Secondary button7.11:1AAA
Muted text6.41:1AA
Accent7.81:1AAA
Destructive7.18:1AAA
Dark mode
Text on background20.51:1AAA
Text on card20.51:1AAA
Primary button7.76:1AAA
Secondary button7.91:1AAA
Muted text7.83:1AAA
Accent8.04:1AAA
Destructive6.15:1AA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.991 0.006 325.142);
  --foreground: oklch(0.085 0.023 326.924);
  --muted: oklch(0.958 0.013 325.194);
  --muted-foreground: oklch(0.459 0.025 325.475);
  --popover: oklch(0.991 0.006 325.142);
  --popover-foreground: oklch(0.085 0.023 326.924);
  --card: oklch(0.991 0.006 325.142);
  --card-foreground: oklch(0.085 0.023 326.924);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.294 0.086 326.848);
  --primary-foreground: oklch(0.811 0.086 325.804);
  --secondary: oklch(0.92 0.012 325.192);
  --secondary-foreground: oklch(0.409 0.044 325.818);
  --accent: oklch(0.852 0.035 325.382);
  --accent-foreground: oklch(0.332 0.053 326.136);
  --destructive: oklch(0.354 0.113 33.9);
  --destructive-foreground: oklch(0.848 0.069 32.915);
  --ring: oklch(0.294 0.086 326.848);
  --chart-1: oklch(0.294 0.086 326.848);
  --chart-2: oklch(0.92 0.012 325.192);
  --chart-3: oklch(0.852 0.035 325.382);
  --chart-4: oklch(0.944 0.008 325.163);
  --chart-5: oklch(0.294 0.091 326.926);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0 0 0);
  --foreground: oklch(0.992 0.003 325.119);
  --muted: oklch(0.154 0.02 325.963);
  --muted-foreground: oklch(0.718 0.023 325.317);
  --popover: oklch(0 0 0);
  --popover-foreground: oklch(0.992 0.003 325.119);
  --card: oklch(0 0 0);
  --card-foreground: oklch(0.992 0.003 325.119);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.294 0.086 326.848);
  --primary-foreground: oklch(0.811 0.086 325.804);
  --secondary: oklch(0.201 0.017 325.671);
  --secondary-foreground: oklch(0.747 0.043 325.486);
  --accent: oklch(0.263 0.037 326.016);
  --accent-foreground: oklch(0.794 0.047 325.503);
  --destructive: oklch(0.657 0.182 34.153);
  --destructive-foreground: oklch(0 0 0);
  --ring: oklch(0.294 0.086 326.848);
  --chart-1: oklch(0.294 0.086 326.848);
  --chart-2: oklch(0.201 0.017 325.671);
  --chart-3: oklch(0.263 0.037 326.016);
  --chart-4: oklch(0.233 0.022 325.728);
  --chart-5: oklch(0.294 0.091 326.926);
}