Semantic Gentian Flower for shadcn/ui

Semantic Gentian Flower is a shadcn/ui theme built around a vivid blue primary color (#3867ff) with vivid orange accents (#ff8338). The light mode uses a neutral background (#fbfcfe). Dark mode keeps the vivid blue primary (#3867ff) on a blue-tinted background (#0f1014).

Color palette

TokenLightDark
Background
#fbfcfewhite
#0f1014black
Foreground
#000000black
#f9f9fbghostwhite
Card
#f8f9fcghostwhite
#15171cblack
Card foreground
#000000black
#fcfcfdwhite
Popover
#fbfcfewhite
#15171cblack
Popover foreground
#000000black
#f9f9fbghostwhite
Primary
#3867ffroyalblue
#3867ffroyalblue
Primary foreground
#ffffffwhite
#ffffffwhite
Secondary
#f1d302gold
#ffd138gold
Secondary foreground
#050400black
#15171cblack
Muted
#ece9dfbeige
#201d13black
Muted foreground
#595854dimgray
#9fa5a9darkgray
Accent
#ff8338coral
#ff8338coral
Accent foreground
#050400black
#15171cblack
Destructive
#c90a03firebrick
#fb160ered
Destructive foreground
#ffffffwhite
#ffffffwhite
Border
#eeeff2whitesmoke
#1d1f25black
Input
#eeeff2whitesmoke
#1d1f25black
Ring
#3867ffroyalblue
#3867ffroyalblue

Contrast

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

Light mode
Text on background20.44:1AAA
Text on card19.90:1AAA
Primary button4.63:1AA
Secondary button13.73:1AAA
Muted text5.85:1AA
Accent8.36:1AAA
Destructive5.95:1AA
Dark mode
Text on background18.08:1AAA
Text on card17.48:1AAA
Primary button4.63:1AA
Secondary button12.28:1AAA
Muted text6.77:1AA
Accent7.30:1AAA
Destructive4.01:1AA Large

CSS variables

Paste this into your globals.css to use Semantic Gentian Flower in your shadcn/ui project.

:root {
  --radius: 0.5rem;
  --background: oklch(0.991 0.002 272.633);
  --foreground: oklch(0 0 0);
  --muted: oklch(0.933 0.013 92.789);
  --muted-foreground: oklch(0.461 0.007 92.792);
  --popover: oklch(0.991 0.002 272.633);
  --popover-foreground: oklch(0 0 0);
  --card: oklch(0.981 0.005 272.609);
  --card-foreground: oklch(0 0 0);
  --border: oklch(0.951 0.004 272.615);
  --input: oklch(0.951 0.004 272.615);
  --primary: oklch(0.575 0.232 266.062);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.866 0.179 98.797);
  --secondary-foreground: oklch(0.105 0.022 100.181);
  --accent: oklch(0.739 0.173 48.295);
  --accent-foreground: oklch(0.105 0.022 100.181);
  --destructive: oklch(0.527 0.213 29.449);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.575 0.232 266.062);
  --chart-1: oklch(0.575 0.232 266.062);
  --chart-2: oklch(0.866 0.179 98.797);
  --chart-3: oklch(0.739 0.173 48.295);
  --chart-4: oklch(0.899 0.186 98.905);
  --chart-5: oklch(0.574 0.238 265.865);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.174 0.008 274.386);
  --foreground: oklch(0.983 0.003 272.629);
  --muted: oklch(0.23 0.018 93.16);
  --muted-foreground: oklch(0.717 0.009 240.527);
  --popover: oklch(0.205 0.01 268.177);
  --popover-foreground: oklch(0.983 0.003 272.629);
  --card: oklch(0.205 0.01 268.177);
  --card-foreground: oklch(0.991 0.001 272.643);
  --border: oklch(0.24 0.012 272.076);
  --input: oklch(0.24 0.012 272.076);
  --primary: oklch(0.575 0.232 266.062);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.876 0.164 90.694);
  --secondary-foreground: oklch(0.205 0.01 268.177);
  --accent: oklch(0.739 0.173 48.24);
  --accent-foreground: oklch(0.205 0.01 268.177);
  --destructive: oklch(0.626 0.25 29.246);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.575 0.232 266.062);
  --chart-1: oklch(0.575 0.232 266.062);
  --chart-2: oklch(0.876 0.164 90.694);
  --chart-3: oklch(0.739 0.173 48.24);
  --chart-4: oklch(0.884 0.158 91.429);
  --chart-5: oklch(0.574 0.238 265.865);
}