Flimsy for shadcn/ui

Flimsy is a shadcn/ui theme built around a violet primary color (#5e4d8f) with muted violet accents (#b8afcf). The light mode uses a neutral background (#fcfbfe). Dark mode keeps the violet primary (#5e4d8f) on a neutral background (#020104).

Color palette

TokenLightDark
Background
#fcfbfewhite
#020104black
Foreground
#080317black
#f9f8fcghostwhite
Card
#f8f7fdghostwhite
#040208black
Card foreground
#060212black
#fcfcfdwhite
Popover
#f8f7fdghostwhite
#040208black
Popover foreground
#060212black
#fcfcfdwhite
Primary
#5e4d8fdarkslateblue
#5e4d8fdarkslateblue
Primary foreground
#ffffffwhite
#ffffffwhite
Secondary
#c8c3d5thistle
#19191ablack
Secondary foreground
#2f2a3cdarkslategray
#b2b1b4darkgray
Muted
#e0dfe2gainsboro
#1e1d20black
Muted foreground
#585365dimgray
#9f9aacdarkgray
Accent
#b8afcfsilver
#292631darkslategray
Accent foreground
#221d30darkslategray
#c1bdcbsilver
Destructive
#7b240amaroon
#d43f11chocolate
Destructive foreground
#facbbdpeachpuff
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#5e4d8fdarkslateblue
#5e4d8fdarkslateblue

Contrast

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

Light mode
Text on background19.64:1AAA
Text on card19.21:1AAA
Primary button7.17:1AAA
Secondary button8.04:1AAA
Muted text5.55:1AA
Accent7.84:1AAA
Destructive6.83:1AA
Dark mode
Text on background19.67:1AAA
Text on card20.09:1AAA
Primary button7.17:1AAA
Secondary button8.22:1AAA
Muted text6.15:1AA
Accent8.05:1AAA
Destructive4.64:1AA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.989 0.004 298.491);
  --foreground: oklch(0.125 0.048 294.571);
  --muted: oklch(0.904 0.005 298.469);
  --muted-foreground: oklch(0.452 0.03 297.39);
  --popover: oklch(0.978 0.009 298.414);
  --popover-foreground: oklch(0.115 0.042 296.283);
  --card: oklch(0.978 0.009 298.414);
  --card-foreground: oklch(0.115 0.042 296.283);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.468 0.105 294.265);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.826 0.026 298.017);
  --secondary-foreground: oklch(0.298 0.033 296.553);
  --accent: oklch(0.772 0.046 297.522);
  --accent-foreground: oklch(0.245 0.036 295.849);
  --destructive: oklch(0.394 0.125 36.128);
  --destructive-foreground: oklch(0.879 0.057 37.592);
  --ring: oklch(0.468 0.105 294.265);
  --chart-1: oklch(0.468 0.105 294.265);
  --chart-2: oklch(0.826 0.026 298.017);
  --chart-3: oklch(0.772 0.046 297.522);
  --chart-4: oklch(0.853 0.022 298.118);
  --chart-5: oklch(0.462 0.115 293.7);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.079 0.016 298.437);
  --foreground: oklch(0.982 0.004 298.488);
  --muted: oklch(0.232 0.007 298.03);
  --muted-foreground: oklch(0.696 0.027 297.885);
  --popover: oklch(0.1 0.02 298.437);
  --popover-foreground: oklch(0.991 0.002 298.528);
  --card: oklch(0.1 0.02 298.437);
  --card-foreground: oklch(0.991 0.002 298.528);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.468 0.105 294.265);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.214 0.002 298.402);
  --secondary-foreground: oklch(0.762 0.004 298.466);
  --accent: oklch(0.277 0.019 297.333);
  --accent-foreground: oklch(0.807 0.02 298.133);
  --destructive: oklch(0.582 0.193 35.515);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.468 0.105 294.265);
  --chart-1: oklch(0.468 0.105 294.265);
  --chart-2: oklch(0.214 0.002 298.402);
  --chart-3: oklch(0.277 0.019 297.333);
  --chart-4: oklch(0.247 0.003 298.387);
  --chart-5: oklch(0.462 0.115 293.7);
}