Flowery for shadcn/ui

Flowery is a shadcn/ui theme built around a muted deep green primary color (#252717) with muted deep indigo accents (#181727). The light mode uses a neutral background (#ffffff). Dark mode keeps the muted deep green primary (#252717) on a neutral background (#000000).

Color palette

TokenLightDark
Background
#ffffffwhite
#000000black
Foreground
#080802black
#ffffffwhite
Card
#ffffffwhite
#000000black
Card foreground
#080802black
#ffffffwhite
Popover
#ffffffwhite
#000000black
Popover foreground
#080802black
#ffffffwhite
Primary
#252717black
#252717black
Primary foreground
#c6caa5silver
#c6caa5silver
Secondary
#181727black
#181727black
Secondary foreground
#a9a5cadarkgray
#a9a5cadarkgray
Muted
#d0cee4lightgrey
#1d1b31darkslategray
Muted foreground
#555558dimgray
#a7a7aadarkgray
Accent
#181727black
#181727black
Accent foreground
#a9a5cadarkgray
#a9a5cadarkgray
Destructive
#660605maroon
#f41410red
Destructive foreground
#fba4a2lightpink
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#252717black
#252717black

Contrast

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

Light mode
Text on background20.07:1AAA
Text on card20.07:1AAA
Primary button9.01:1AAA
Secondary button7.51:1AAA
Muted text4.80:1AA
Accent7.51:1AAA
Destructive6.84:1AA
Dark mode
Text on background21.00:1AAA
Text on card21.00:1AAA
Primary button9.01:1AAA
Secondary button7.51:1AAA
Muted text6.96:1AA
Accent7.51:1AAA
Destructive4.24:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(1 0 180);
  --foreground: oklch(0.131 0.019 112.436);
  --muted: oklch(0.859 0.031 290.334);
  --muted-foreground: oklch(0.451 0.006 290.779);
  --popover: oklch(1 0 180);
  --popover-foreground: oklch(0.131 0.019 112.436);
  --card: oklch(1 0 180);
  --card-foreground: oklch(0.131 0.019 112.436);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.264 0.028 112.957);
  --primary-foreground: oklch(0.827 0.05 112.136);
  --secondary: oklch(0.213 0.031 288.041);
  --secondary-foreground: oklch(0.738 0.053 289.608);
  --accent: oklch(0.213 0.031 288.041);
  --accent-foreground: oklch(0.738 0.053 289.608);
  --destructive: oklch(0.326 0.127 28.765);
  --destructive-foreground: oklch(0.804 0.103 20.662);
  --ring: oklch(0.264 0.028 112.957);
  --chart-1: oklch(0.264 0.028 112.957);
  --chart-2: oklch(0.213 0.031 288.041);
  --chart-3: oklch(0.213 0.031 288.041);
  --chart-4: oklch(0.24 0.038 287.792);
  --chart-5: oklch(0.267 0.031 113.136);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0 0 0);
  --foreground: oklch(1 0 180);
  --muted: oklch(0.237 0.042 287.316);
  --muted-foreground: oklch(0.728 0.005 290.886);
  --popover: oklch(0 0 0);
  --popover-foreground: oklch(1 0 180);
  --card: oklch(0 0 0);
  --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.264 0.028 112.957);
  --primary-foreground: oklch(0.827 0.05 112.136);
  --secondary: oklch(0.213 0.031 288.041);
  --secondary-foreground: oklch(0.738 0.053 289.608);
  --accent: oklch(0.213 0.031 288.041);
  --accent-foreground: oklch(0.738 0.053 289.608);
  --destructive: oklch(0.612 0.244 28.959);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.264 0.028 112.957);
  --chart-1: oklch(0.264 0.028 112.957);
  --chart-2: oklch(0.213 0.031 288.041);
  --chart-3: oklch(0.213 0.031 288.041);
  --chart-4: oklch(0.24 0.038 287.792);
  --chart-5: oklch(0.267 0.031 113.136);
}