Flimsy for shadcn/ui

Flimsy is a shadcn/ui theme built around a muted green primary color (#b1cdb9) with muted purple accents (#cdb1c5). The light mode uses a neutral background (#f7fdf9). Dark mode keeps the muted green primary (#b1cdb9) on a neutral background (#000000).

Color palette

TokenLightDark
Background
#f7fdf9mintcream
#000000black
Foreground
#06140ablack
#f8fbf9mintcream
Card
#f3fcf6mintcream
#030303black
Card foreground
#051008black
#fcfdfcwhite
Popover
#f7fdf9mintcream
#000000black
Popover foreground
#06140ablack
#f8fbf9mintcream
Primary
#b1cdb9silver
#b1cdb9silver
Primary foreground
#1e2f23darkslategray
#1e2f23darkslategray
Secondary
#cdb1c5silver
#cdb1c5silver
Secondary foreground
#2f1e2adarkslategray
#2f1e2adarkslategray
Muted
#dcd6dagainsboro
#292328darkslategray
Muted foreground
#473943darkslategray
#c6b8c2silver
Accent
#cdb1c5silver
#cdb1c5silver
Accent foreground
#2f1e2adarkslategray
#2f1e2adarkslategray
Destructive
#cd280efirebrick
#e52c10orangered
Destructive foreground
#ffffffwhite
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#b1cdb9silver
#b1cdb9silver

Contrast

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

Light mode
Text on background18.28:1AAA
Text on card18.45:1AAA
Primary button8.30:1AAA
Secondary button7.99:1AAA
Muted text7.56:1AAA
Accent7.99:1AAA
Destructive5.38:1AA
Dark mode
Text on background20.15:1AAA
Text on card20.28:1AAA
Primary button8.30:1AAA
Secondary button7.99:1AAA
Muted text8.06:1AAA
Accent7.99:1AAA
Destructive4.46:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.988 0.008 155.044);
  --foreground: oklch(0.173 0.029 152.528);
  --muted: oklch(0.881 0.009 335.374);
  --muted-foreground: oklch(0.362 0.026 336.423);
  --popover: oklch(0.988 0.008 155.044);
  --popover-foreground: oklch(0.173 0.029 152.528);
  --card: oklch(0.982 0.012 154.968);
  --card-foreground: oklch(0.157 0.025 153.634);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.823 0.041 154.24);
  --primary-foreground: oklch(0.285 0.031 152.947);
  --secondary: oklch(0.791 0.042 336.128);
  --secondary-foreground: oklch(0.26 0.033 337.364);
  --accent: oklch(0.791 0.042 336.128);
  --accent-foreground: oklch(0.26 0.033 337.364);
  --destructive: oklch(0.549 0.203 31.425);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.823 0.041 154.24);
  --chart-1: oklch(0.823 0.041 154.24);
  --chart-2: oklch(0.791 0.042 336.128);
  --chart-3: oklch(0.791 0.042 336.128);
  --chart-4: oklch(0.817 0.037 335.987);
  --chart-5: oklch(0.825 0.047 154.11);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0 0 0);
  --foreground: oklch(0.986 0.004 155.111);
  --muted: oklch(0.266 0.012 335.995);
  --muted-foreground: oklch(0.798 0.021 335.662);
  --popover: oklch(0 0 0);
  --popover-foreground: oklch(0.986 0.004 155.111);
  --card: oklch(0.092 0 180);
  --card-foreground: oklch(0.993 0.002 155.151);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.823 0.041 154.24);
  --primary-foreground: oklch(0.285 0.031 152.947);
  --secondary: oklch(0.791 0.042 336.128);
  --secondary-foreground: oklch(0.26 0.033 337.364);
  --accent: oklch(0.791 0.042 336.128);
  --accent-foreground: oklch(0.26 0.033 337.364);
  --destructive: oklch(0.596 0.221 31.386);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.823 0.041 154.24);
  --chart-1: oklch(0.823 0.041 154.24);
  --chart-2: oklch(0.791 0.042 336.128);
  --chart-3: oklch(0.791 0.042 336.128);
  --chart-4: oklch(0.817 0.037 335.987);
  --chart-5: oklch(0.825 0.047 154.11);
}