Flamboyant for shadcn/ui

Flamboyant is a shadcn/ui theme built around a yellow primary color (#c6aa58) with purple accents (#aa58c6). The light mode uses a neutral background (#ffffff). Dark mode keeps the yellow primary (#c6aa58) on a neutral background (#070603).

Color palette

TokenLightDark
Background
#ffffffwhite
#070603black
Foreground
#141105black
#fcfbf8snow
Card
#fcfcfcsnow
#0b0905black
Card foreground
#100d04black
#fdfdfcwhite
Popover
#fcfcfcsnow
#0b0905black
Popover foreground
#100d04black
#fdfdfcwhite
Primary
#c6aa58darkkhaki
#c6aa58darkkhaki
Primary foreground
#000000black
#000000black
Secondary
#58c6aamediumaquamarine
#58c6aamediumaquamarine
Secondary foreground
#000000black
#000000black
Muted
#eef7f4whitesmoke
#08110fblack
Muted foreground
#52605ddimgray
#9fada9darkgray
Accent
#aa58c6mediumorchid
#aa58c6mediumorchid
Accent foreground
#ffffffwhite
#ffffffwhite
Destructive
#d81f0efirebrick
#d81f0efirebrick
Destructive foreground
#ffffffwhite
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#c6aa58darkkhaki
#c6aa58darkkhaki

Contrast

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

Light mode
Text on background18.88:1AAA
Text on card19.00:1AAA
Primary button9.30:1AAA
Secondary button10.05:1AAA
Muted text6.02:1AA
Accent4.26:1AA Large
Destructive5.10:1AA
Dark mode
Text on background19.56:1AAA
Text on card19.54:1AAA
Primary button9.30:1AAA
Secondary button10.05:1AAA
Muted text8.21:1AAA
Accent4.26:1AA Large
Destructive5.10:1AA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(1 0 180);
  --foreground: oklch(0.176 0.023 92.733);
  --muted: oklch(0.968 0.01 179.573);
  --muted-foreground: oklch(0.477 0.018 178.718);
  --popover: oklch(0.992 0 161.565);
  --popover-foreground: oklch(0.16 0.02 93.908);
  --card: oklch(0.992 0 161.565);
  --card-foreground: oklch(0.16 0.02 93.908);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.746 0.107 91.238);
  --primary-foreground: oklch(0 0 0);
  --secondary: oklch(0.754 0.109 174.304);
  --secondary-foreground: oklch(0 0 0);
  --accent: oklch(0.602 0.178 316.989);
  --accent-foreground: oklch(1 0 180);
  --destructive: oklch(0.564 0.217 30.09);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.746 0.107 91.238);
  --chart-1: oklch(0.746 0.107 91.238);
  --chart-2: oklch(0.754 0.109 174.304);
  --chart-3: oklch(0.602 0.178 316.989);
  --chart-4: oklch(0.769 0.104 174.901);
  --chart-5: oklch(0.752 0.112 91.1);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.123 0.011 95.065);
  --foreground: oklch(0.987 0.003 91.44);
  --muted: oklch(0.169 0.014 177.3);
  --muted-foreground: oklch(0.735 0.017 179.202);
  --popover: oklch(0.141 0.012 94.976);
  --popover-foreground: oklch(0.994 0.002 91.424);
  --card: oklch(0.141 0.012 94.976);
  --card-foreground: oklch(0.994 0.002 91.424);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.746 0.107 91.238);
  --primary-foreground: oklch(0 0 0);
  --secondary: oklch(0.754 0.109 174.304);
  --secondary-foreground: oklch(0 0 0);
  --accent: oklch(0.602 0.178 316.989);
  --accent-foreground: oklch(1 0 180);
  --destructive: oklch(0.564 0.217 30.09);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.746 0.107 91.238);
  --chart-1: oklch(0.746 0.107 91.238);
  --chart-2: oklch(0.754 0.109 174.304);
  --chart-3: oklch(0.602 0.178 316.989);
  --chart-4: oklch(0.769 0.104 174.901);
  --chart-5: oklch(0.752 0.112 91.1);
}