Flippant for shadcn/ui

Flippant is a shadcn/ui theme built around a deep yellow primary color (#6f6325) with deep purple accents (#63256f). The light mode uses a neutral background (#fefdfb). Dark mode keeps the deep yellow primary (#6f6325) on a neutral background (#080702).

Color palette

TokenLightDark
Background
#fefdfbsnow
#080702black
Foreground
#100e04black
#faf9f5whitesmoke
Card
#fefdfbsnow
#080702black
Card foreground
#100e04black
#faf9f5whitesmoke
Popover
#fefdfbsnow
#080702black
Popover foreground
#100e04black
#faf9f5whitesmoke
Primary
#6f6325darkolivegreen
#6f6325darkolivegreen
Primary foreground
#ffffffwhite
#ffffffwhite
Secondary
#256f63seagreen
#256f63seagreen
Secondary foreground
#ffffffwhite
#ffffffwhite
Muted
#e6eaealavender
#151918black
Muted foreground
#3b4543darkslategray
#bac4c3silver
Accent
#63256frebeccapurple
#63256frebeccapurple
Accent foreground
#ecd5f1lavender
#ecd5f1lavender
Destructive
#762304maroon
#f64809orangered
Destructive foreground
#fcc4b0lightpink
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#6f6325darkolivegreen
#6f6325darkolivegreen

Contrast

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

Light mode
Text on background19.03:1AAA
Text on card19.03:1AAA
Primary button6.04:1AA
Secondary button5.95:1AA
Muted text8.18:1AAA
Accent7.60:1AAA
Destructive6.79:1AA
Dark mode
Text on background19.12:1AAA
Text on card19.12:1AAA
Primary button6.04:1AA
Secondary button5.95:1AA
Muted text9.92:1AAA
Accent7.60:1AAA
Destructive3.58:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.995 0.003 97.295);
  --foreground: oklch(0.164 0.022 99.634);
  --muted: oklch(0.934 0.005 185.309);
  --muted-foreground: oklch(0.38 0.014 184.489);
  --popover: oklch(0.995 0.003 97.295);
  --popover-foreground: oklch(0.164 0.022 99.634);
  --card: oklch(0.995 0.003 97.295);
  --card-foreground: oklch(0.164 0.022 99.634);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.497 0.082 97.972);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.492 0.075 179.948);
  --secondary-foreground: oklch(1 0 180);
  --accent: oklch(0.388 0.133 320.605);
  --accent-foreground: oklch(0.9 0.045 320.608);
  --destructive: oklch(0.383 0.122 37.562);
  --destructive-foreground: oklch(0.866 0.07 40.901);
  --ring: oklch(0.497 0.082 97.972);
  --chart-1: oklch(0.497 0.082 97.972);
  --chart-2: oklch(0.492 0.075 179.948);
  --chart-3: oklch(0.388 0.133 320.605);
  --chart-4: oklch(0.528 0.081 179.872);
  --chart-5: oklch(0.503 0.086 97.865);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.128 0.017 101.311);
  --foreground: oklch(0.982 0.006 97.338);
  --muted: oklch(0.209 0.007 184.539);
  --muted-foreground: oklch(0.813 0.011 185.078);
  --popover: oklch(0.128 0.017 101.311);
  --popover-foreground: oklch(0.982 0.006 97.338);
  --card: oklch(0.128 0.017 101.311);
  --card-foreground: oklch(0.982 0.006 97.338);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.497 0.082 97.972);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.492 0.075 179.948);
  --secondary-foreground: oklch(1 0 180);
  --accent: oklch(0.388 0.133 320.605);
  --accent-foreground: oklch(0.9 0.045 320.608);
  --destructive: oklch(0.648 0.218 36.072);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.497 0.082 97.972);
  --chart-1: oklch(0.497 0.082 97.972);
  --chart-2: oklch(0.492 0.075 179.948);
  --chart-3: oklch(0.388 0.133 320.605);
  --chart-4: oklch(0.528 0.081 179.872);
  --chart-5: oklch(0.503 0.086 97.865);
}