Genuine for shadcn/ui

Genuine is a shadcn/ui theme built around a deep blue primary color (#141a52) with deep yellow accents (#524c14). The light mode uses a neutral background (#fbfbfe). Dark mode keeps the deep blue primary (#141a52) on a neutral background (#020308).

Color palette

TokenLightDark
Background
#fbfbfeghostwhite
#020308black
Foreground
#040616black
#fcfcfdwhite
Card
#f7f8fcghostwhite
#04040cblack
Card foreground
#030511black
#ffffffwhite
Popover
#f7f8fcghostwhite
#04040cblack
Popover foreground
#030511black
#ffffffwhite
Primary
#141a52midnightblue
#141a52midnightblue
Primary foreground
#adb3eblightsteelblue
#adb3eblightsteelblue
Secondary
#524c14darkolivegreen
#524c14darkolivegreen
Secondary foreground
#ebe5adpalegoldenrod
#ebe5adpalegoldenrod
Muted
#e8e5c9bisque
#363217darkslategray
Muted foreground
#4c4a38darkolivegreen
#c7c5b3silver
Accent
#524c14darkolivegreen
#524c14darkolivegreen
Accent foreground
#ebe5adpalegoldenrod
#ebe5adpalegoldenrod
Destructive
#9f1b04darkred
#f93715orangered
Destructive foreground
#feddd7mistyrose
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#141a52midnightblue
#141a52midnightblue

Contrast

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

Light mode
Text on background19.55:1AAA
Text on card19.14:1AAA
Primary button8.01:1AAA
Secondary button6.80:1AA
Muted text7.03:1AAA
Accent6.80:1AA
Destructive6.26:1AA
Dark mode
Text on background20.09:1AAA
Text on card20.40:1AAA
Primary button8.01:1AAA
Secondary button6.80:1AA
Muted text7.39:1AAA
Accent6.80:1AA
Destructive3.75:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.99 0.003 281.237);
  --foreground: oklch(0.129 0.037 273.199);
  --muted: oklch(0.917 0.037 101.889);
  --muted-foreground: oklch(0.407 0.029 102.294);
  --popover: oklch(0.98 0.006 281.186);
  --popover-foreground: oklch(0.119 0.032 273.094);
  --card: oklch(0.98 0.006 281.186);
  --card-foreground: oklch(0.119 0.032 273.094);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.254 0.101 272.091);
  --primary-foreground: oklch(0.782 0.08 279.442);
  --secondary: oklch(0.411 0.075 102.893);
  --secondary-foreground: oklch(0.913 0.073 102.405);
  --accent: oklch(0.411 0.075 102.893);
  --accent-foreground: oklch(0.913 0.073 102.405);
  --destructive: oklch(0.454 0.169 31.878);
  --destructive-foreground: oklch(0.923 0.038 29.664);
  --ring: oklch(0.254 0.101 272.091);
  --chart-1: oklch(0.254 0.101 272.091);
  --chart-2: oklch(0.411 0.075 102.893);
  --chart-3: oklch(0.411 0.075 102.893);
  --chart-4: oklch(0.452 0.083 102.866);
  --chart-5: oklch(0.252 0.106 271.474);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.1 0.017 275.933);
  --foreground: oklch(0.992 0.001 281.273);
  --muted: oklch(0.315 0.044 102.935);
  --muted-foreground: oklch(0.819 0.025 101.747);
  --popover: oklch(0.114 0.02 275.96);
  --popover-foreground: oklch(1 0 180);
  --card: oklch(0.114 0.02 275.96);
  --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.254 0.101 272.091);
  --primary-foreground: oklch(0.782 0.08 279.442);
  --secondary: oklch(0.411 0.075 102.893);
  --secondary-foreground: oklch(0.913 0.073 102.405);
  --accent: oklch(0.411 0.075 102.893);
  --accent-foreground: oklch(0.913 0.073 102.405);
  --destructive: oklch(0.64 0.232 31.999);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.254 0.101 272.091);
  --chart-1: oklch(0.254 0.101 272.091);
  --chart-2: oklch(0.411 0.075 102.893);
  --chart-3: oklch(0.411 0.075 102.893);
  --chart-4: oklch(0.452 0.083 102.866);
  --chart-5: oklch(0.252 0.106 271.474);
}