Flimsy for shadcn/ui

Flimsy is a shadcn/ui theme built around a purple primary color (#d392c6) with green accents (#92d39f). The light mode uses a neutral background (#fdf7fc). Dark mode keeps the purple primary (#d392c6) on a neutral background (#000000).

Color palette

TokenLightDark
Background
#fdf7fcsnow
#000000black
Foreground
#080207black
#fdfcfdwhite
Card
#fdf7fcsnow
#000000black
Card foreground
#080207black
#fdfcfdwhite
Popover
#fdf7fcsnow
#000000black
Popover foreground
#080207black
#fdfcfdwhite
Primary
#d392c6plum
#d392c6plum
Primary foreground
#240f20black
#240f20black
Secondary
#92d39fdarkseagreen
#92d39fdarkseagreen
Secondary foreground
#0f2413black
#0f2413black
Muted
#dee8e0gainsboro
#172119black
Muted foreground
#4f5951darkslategray
#a6b0a8darkgray
Accent
#92d39fdarkseagreen
#92d39fdarkseagreen
Accent foreground
#0f2413black
#0f2413black
Destructive
#8f110adarkred
#f13b32crimson
Destructive foreground
#fcd2cfpink
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#d392c6plum
#d392c6plum

Contrast

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

Light mode
Text on background19.45:1AAA
Text on card19.45:1AAA
Primary button7.46:1AAA
Secondary button9.41:1AAA
Muted text5.81:1AA
Accent9.41:1AAA
Destructive6.77:1AA
Dark mode
Text on background20.51:1AAA
Text on card20.51:1AAA
Primary button7.46:1AAA
Secondary button9.41:1AAA
Muted text7.39:1AAA
Accent9.41:1AAA
Destructive3.87: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.982 0.008 332.132);
  --foreground: oklch(0.107 0.026 333.037);
  --muted: oklch(0.921 0.016 151.742);
  --muted-foreground: oklch(0.453 0.018 151.39);
  --popover: oklch(0.982 0.008 332.132);
  --popover-foreground: oklch(0.107 0.026 333.037);
  --card: oklch(0.982 0.008 332.132);
  --card-foreground: oklch(0.107 0.026 333.037);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.74 0.105 333.972);
  --primary-foreground: oklch(0.207 0.047 335.098);
  --secondary: oklch(0.81 0.1 149.962);
  --secondary-foreground: oklch(0.238 0.044 148.732);
  --accent: oklch(0.81 0.1 149.962);
  --accent-foreground: oklch(0.238 0.044 148.732);
  --destructive: oklch(0.416 0.16 29.285);
  --destructive-foreground: oklch(0.898 0.048 21.625);
  --ring: oklch(0.74 0.105 333.972);
  --chart-1: oklch(0.74 0.105 333.972);
  --chart-2: oklch(0.81 0.1 149.962);
  --chart-3: oklch(0.81 0.1 149.962);
  --chart-4: oklch(0.828 0.09 150.234);
  --chart-5: oklch(0.739 0.112 334.102);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0 0 0);
  --foreground: oklch(0.991 0.003 332.048);
  --muted: oklch(0.236 0.022 150.488);
  --muted-foreground: oklch(0.747 0.016 151.679);
  --popover: oklch(0 0 0);
  --popover-foreground: oklch(0.991 0.003 332.048);
  --card: oklch(0 0 0);
  --card-foreground: oklch(0.991 0.003 332.048);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.74 0.105 333.972);
  --primary-foreground: oklch(0.207 0.047 335.098);
  --secondary: oklch(0.81 0.1 149.962);
  --secondary-foreground: oklch(0.238 0.044 148.732);
  --accent: oklch(0.81 0.1 149.962);
  --accent-foreground: oklch(0.238 0.044 148.732);
  --destructive: oklch(0.63 0.219 28.304);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.74 0.105 333.972);
  --chart-1: oklch(0.74 0.105 333.972);
  --chart-2: oklch(0.81 0.1 149.962);
  --chart-3: oklch(0.81 0.1 149.962);
  --chart-4: oklch(0.828 0.09 150.234);
  --chart-5: oklch(0.739 0.112 334.102);
}