Fluffy for shadcn/ui

Fluffy is a shadcn/ui theme built around a vivid deep green primary color (#3f570a) with vivid deep purple accents (#570a3f). The light mode uses a neutral background (#ffffff). Dark mode keeps the vivid deep green primary (#3f570a) on a neutral background (#000000).

Color palette

TokenLightDark
Background
#ffffffwhite
#000000black
Foreground
#070901black
#ffffffwhite
Card
#fcfcfcsnow
#030303black
Card foreground
#030401black
#ffffffwhite
Popover
#fcfcfcsnow
#030303black
Popover foreground
#030401black
#ffffffwhite
Primary
#3f570adarkolivegreen
#3f570adarkolivegreen
Primary foreground
#d9f49fpalegoldenrod
#d9f49fpalegoldenrod
Secondary
#0a3f57darkslategray
#0a3f57darkslategray
Secondary foreground
#9fd9f4lightblue
#9fd9f4lightblue
Muted
#e3e6e8gainsboro
#171a1cblack
Muted foreground
#58686fdimgray
#90a0a7darkgray
Accent
#570a3findigo
#570a3findigo
Accent foreground
#f49fd9plum
#f49fd9plum
Destructive
#901209darkred
#f13527crimson
Destructive foreground
#fcd2cfpink
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#3f570adarkolivegreen
#3f570adarkolivegreen

Contrast

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

Light mode
Text on background20.02:1AAA
Text on card20.11:1AAA
Primary button6.73:1AA
Secondary button7.39:1AAA
Muted text4.63:1AA
Accent7.10:1AAA
Destructive6.70:1AA
Dark mode
Text on background21.00:1AAA
Text on card20.67:1AAA
Primary button6.73:1AA
Secondary button7.39:1AAA
Muted text6.45:1AA
Accent7.10:1AAA
Destructive3.97:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(1 0 180);
  --foreground: oklch(0.132 0.025 120.466);
  --muted: oklch(0.924 0.004 226.909);
  --muted-foreground: oklch(0.506 0.023 227.521);
  --popover: oklch(0.992 0 161.565);
  --popover-foreground: oklch(0.105 0.02 120.466);
  --card: oklch(0.992 0 161.565);
  --card-foreground: oklch(0.105 0.02 120.466);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.422 0.103 126.752);
  --primary-foreground: oklch(0.929 0.113 122.9);
  --secondary: oklch(0.346 0.067 234.561);
  --secondary-foreground: oklch(0.855 0.071 228.318);
  --accent: oklch(0.312 0.121 344.878);
  --accent-foreground: oklch(0.804 0.125 339.372);
  --destructive: oklch(0.418 0.16 29.683);
  --destructive-foreground: oklch(0.899 0.047 22.878);
  --ring: oklch(0.422 0.103 126.752);
  --chart-1: oklch(0.422 0.103 126.752);
  --chart-2: oklch(0.346 0.067 234.561);
  --chart-3: oklch(0.312 0.121 344.878);
  --chart-4: oklch(0.382 0.075 234.937);
  --chart-5: oklch(0.427 0.105 126.951);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0 0 0);
  --foreground: oklch(1 0 180);
  --muted: oklch(0.217 0.006 227.197);
  --muted-foreground: oklch(0.695 0.022 227.277);
  --popover: oklch(0.092 0 180);
  --popover-foreground: oklch(1 0 180);
  --card: oklch(0.092 0 180);
  --card-foreground: oklch(1 0 180);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.422 0.103 126.752);
  --primary-foreground: oklch(0.929 0.113 122.9);
  --secondary: oklch(0.346 0.067 234.561);
  --secondary-foreground: oklch(0.855 0.071 228.318);
  --accent: oklch(0.312 0.121 344.878);
  --accent-foreground: oklch(0.804 0.125 339.372);
  --destructive: oklch(0.625 0.225 29.297);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.422 0.103 126.752);
  --chart-1: oklch(0.422 0.103 126.752);
  --chart-2: oklch(0.346 0.067 234.561);
  --chart-3: oklch(0.312 0.121 344.878);
  --chart-4: oklch(0.382 0.075 234.937);
  --chart-5: oklch(0.427 0.105 126.951);
}