Flippant for shadcn/ui

Flippant is a shadcn/ui theme built around a light pink primary color (#e8d3dd) with light teal accents (#d3e8df). The light mode uses a neutral background (#fcf8fa). Dark mode keeps the light pink primary (#e8d3dd) on a pink-tinted background (#0c0407).

Color palette

TokenLightDark
Background
#fcf8fasnow
#0c0407black
Foreground
#15040cblack
#fbf8fasnow
Card
#fbf4f7lavenderblush
#10050ablack
Card foreground
#11040ablack
#fdfcfcsnow
Popover
#fbf4f7lavenderblush
#10050ablack
Popover foreground
#11040ablack
#fdfcfcsnow
Primary
#e8d3ddgainsboro
#e8d3ddgainsboro
Primary foreground
#5b2f43darkslategray
#5b2f43darkslategray
Secondary
#d3e8dfgainsboro
#d3e8dfgainsboro
Secondary foreground
#2f5b47darkslategray
#2f5b47darkslategray
Muted
#d8eee4gainsboro
#11271dblack
Muted foreground
#4d5b55darkslategray
#a4b2acdarkgray
Accent
#d3e8dfgainsboro
#d3e8dfgainsboro
Accent foreground
#2f5b47darkslategray
#2f5b47darkslategray
Destructive
#9c2f07saddlebrown
#ef480borangered
Destructive foreground
#fde2d8mistyrose
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#e8d3ddgainsboro
#e8d3ddgainsboro

Contrast

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

Light mode
Text on background18.87:1AAA
Text on card18.52:1AAA
Primary button7.67:1AAA
Secondary button6.06:1AA
Muted text5.87:1AA
Accent6.06:1AA
Destructive6.04:1AA
Dark mode
Text on background19.25:1AAA
Text on card19.59:1AAA
Primary button7.67:1AAA
Secondary button6.06:1AA
Muted text7.14:1AAA
Accent6.06:1AA
Destructive3.75: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.982 0.006 347.968);
  --foreground: oklch(0.146 0.035 351.73);
  --muted: oklch(0.93 0.027 166.98);
  --muted-foreground: oklch(0.457 0.019 166.587);
  --popover: oklch(0.973 0.008 348.048);
  --popover-foreground: oklch(0.133 0.031 349.75);
  --card: oklch(0.973 0.008 348.048);
  --card-foreground: oklch(0.133 0.031 349.75);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.888 0.027 348.617);
  --primary-foreground: oklch(0.368 0.069 352.644);
  --secondary: oklch(0.914 0.026 167.009);
  --secondary-foreground: oklch(0.433 0.06 163.077);
  --accent: oklch(0.914 0.026 167.009);
  --accent-foreground: oklch(0.433 0.06 163.077);
  --destructive: oklch(0.466 0.151 37.037);
  --destructive-foreground: oklch(0.932 0.033 41.073);
  --ring: oklch(0.888 0.027 348.617);
  --chart-1: oklch(0.888 0.027 348.617);
  --chart-2: oklch(0.914 0.026 167.009);
  --chart-3: oklch(0.914 0.026 167.009);
  --chart-4: oklch(0.934 0.02 167.214);
  --chart-5: oklch(0.887 0.029 348.692);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.122 0.022 347.758);
  --foreground: oklch(0.983 0.004 347.916);
  --muted: oklch(0.252 0.035 163.063);
  --muted-foreground: oklch(0.75 0.017 167.162);
  --popover: oklch(0.136 0.025 349.452);
  --popover-foreground: oklch(0.991 0.002 347.864);
  --card: oklch(0.136 0.025 349.452);
  --card-foreground: oklch(0.991 0.002 347.864);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.888 0.027 348.617);
  --primary-foreground: oklch(0.368 0.069 352.644);
  --secondary: oklch(0.914 0.026 167.009);
  --secondary-foreground: oklch(0.433 0.06 163.077);
  --accent: oklch(0.914 0.026 167.009);
  --accent-foreground: oklch(0.433 0.06 163.077);
  --destructive: oklch(0.636 0.212 36.376);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.888 0.027 348.617);
  --chart-1: oklch(0.888 0.027 348.617);
  --chart-2: oklch(0.914 0.026 167.009);
  --chart-3: oklch(0.914 0.026 167.009);
  --chart-4: oklch(0.934 0.02 167.214);
  --chart-5: oklch(0.887 0.029 348.692);
}