Genuine for shadcn/ui

Genuine is a shadcn/ui theme built around a deep purple primary color (#390f2b) with muted purple accents (#d0a9c4). The light mode uses a neutral background (#ffffff). Dark mode keeps the deep purple primary (#390f2b) on a purple-tinted background (#0b0409).

Color palette

TokenLightDark
Background
#ffffffwhite
#0b0409black
Foreground
#150510black
#ffffffwhite
Card
#ffffffwhite
#0b0409black
Card foreground
#150510black
#ffffffwhite
Popover
#ffffffwhite
#0b0409black
Popover foreground
#150510black
#ffffffwhite
Primary
#390f2bblack
#390f2bblack
Primary foreground
#e496cbplum
#e496cbplum
Secondary
#d6c2d0thistle
#322930darkslategray
Secondary foreground
#3d2937darkslategray
#cdc1c9silver
Muted
#e5d7e0gainsboro
#281a24black
Muted foreground
#484146darkslategray
#beb7bbsilver
Accent
#d0a9c4silver
#533c4cdarkslategray
Accent foreground
#2e1927black
#e5dce2gainsboro
Destructive
#bb150cfirebrick
#f3483ftomato
Destructive foreground
#fffafasnow
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#390f2bblack
#390f2bblack

Contrast

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

Light mode
Text on background19.79:1AAA
Text on card19.79:1AAA
Primary button7.47:1AAA
Secondary button7.94:1AAA
Muted text7.12:1AAA
Accent7.92:1AAA
Destructive6.30:1AA
Dark mode
Text on background20.27:1AAA
Text on card20.27:1AAA
Primary button7.47:1AAA
Secondary button8.03:1AAA
Muted text8.44:1AAA
Accent7.40:1AAA
Destructive3.61:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(1 0 180);
  --foreground: oklch(0.149 0.037 340.017);
  --muted: oklch(0.893 0.02 336.987);
  --muted-foreground: oklch(0.385 0.012 337.161);
  --popover: oklch(1 0 180);
  --popover-foreground: oklch(0.149 0.037 340.017);
  --card: oklch(1 0 180);
  --card-foreground: oklch(0.149 0.037 340.017);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.25 0.077 342.347);
  --primary-foreground: oklch(0.766 0.116 339.292);
  --secondary: oklch(0.835 0.03 337.237);
  --secondary-foreground: oklch(0.31 0.038 338.794);
  --accent: oklch(0.779 0.057 337.923);
  --accent-foreground: oklch(0.249 0.04 339.5);
  --destructive: oklch(0.504 0.197 29.408);
  --destructive-foreground: oklch(0.99 0.005 20.948);
  --ring: oklch(0.25 0.077 342.347);
  --chart-1: oklch(0.25 0.077 342.347);
  --chart-2: oklch(0.835 0.03 337.237);
  --chart-3: oklch(0.779 0.057 337.923);
  --chart-4: oklch(0.86 0.025 337.116);
  --chart-5: oklch(0.25 0.08 342.625);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.124 0.021 337.123);
  --foreground: oklch(1 0 180);
  --muted: oklch(0.24 0.028 338.664);
  --muted-foreground: oklch(0.786 0.01 336.809);
  --popover: oklch(0.124 0.021 337.123);
  --popover-foreground: oklch(1 0 180);
  --card: oklch(0.124 0.021 337.123);
  --card-foreground: oklch(1 0 180);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.25 0.077 342.347);
  --primary-foreground: oklch(0.766 0.116 339.292);
  --secondary: oklch(0.295 0.017 337.664);
  --secondary-foreground: oklch(0.823 0.016 336.942);
  --accent: oklch(0.387 0.04 338.471);
  --accent-foreground: oklch(0.903 0.014 336.858);
  --destructive: oklch(0.646 0.209 27.61);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.25 0.077 342.347);
  --chart-1: oklch(0.25 0.077 342.347);
  --chart-2: oklch(0.295 0.017 337.664);
  --chart-3: oklch(0.387 0.04 338.471);
  --chart-4: oklch(0.324 0.02 337.701);
  --chart-5: oklch(0.25 0.08 342.625);
}