Flare for shadcn/ui

Flare is a shadcn/ui theme built around a deep green primary color (#656c23) with deep green accents (#406c23). The light mode uses a neutral background (#fefefb). Dark mode keeps the deep green primary (#656c23) on a neutral background (#000000).

Color palette

TokenLightDark
Background
#fefefbwhite
#000000black
Foreground
#0f1104black
#fdfdfcwhite
Card
#fdfdf6snow
#030303black
Card foreground
#0c0c03black
#ffffffwhite
Popover
#fdfdf6snow
#030303black
Popover foreground
#0c0c03black
#ffffffwhite
Primary
#656c23darkolivegreen
#656c23darkolivegreen
Primary foreground
#ffffffwhite
#ffffffwhite
Secondary
#6c4f23saddlebrown
#6c4f23saddlebrown
Secondary foreground
#ffffffwhite
#ffffffwhite
Muted
#f1eadfantiquewhite
#20190eblack
Muted foreground
#645b4fdimgray
#b0a89bdarkgray
Accent
#406c23darkolivegreen
#406c23darkolivegreen
Accent foreground
#ffffffwhite
#ffffffwhite
Destructive
#cb3a01firebrick
#fe6225tomato
Destructive foreground
#ffffffwhite
#000000black
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#656c23darkolivegreen
#656c23darkolivegreen

Contrast

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

Light mode
Text on background18.86:1AAA
Text on card19.25:1AAA
Primary button5.66:1AA
Secondary button7.58:1AAA
Muted text5.57:1AA
Accent6.21:1AA
Destructive5.06:1AA
Dark mode
Text on background20.63:1AAA
Text on card20.67:1AAA
Primary button5.66:1AA
Secondary button7.58:1AAA
Muted text7.40:1AAA
Accent6.21:1AA
Destructive6.99:1AA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.996 0.005 111.1);
  --foreground: oklch(0.17 0.027 113.399);
  --muted: oklch(0.939 0.016 78.249);
  --muted-foreground: oklch(0.477 0.023 78.055);
  --popover: oklch(0.993 0.009 111.186);
  --popover-foreground: oklch(0.151 0.023 112.853);
  --card: oklch(0.993 0.009 111.186);
  --card-foreground: oklch(0.151 0.023 112.853);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.509 0.096 114.712);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.448 0.071 75.16);
  --secondary-foreground: oklch(1 0 180);
  --accent: oklch(0.482 0.114 135.014);
  --accent-foreground: oklch(1 0 180);
  --destructive: oklch(0.561 0.189 36.593);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.509 0.096 114.712);
  --chart-1: oklch(0.509 0.096 114.712);
  --chart-2: oklch(0.448 0.071 75.16);
  --chart-3: oklch(0.482 0.114 135.014);
  --chart-4: oklch(0.481 0.078 75.056);
  --chart-5: oklch(0.516 0.1 114.853);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0 0 0);
  --foreground: oklch(0.994 0.001 111.042);
  --muted: oklch(0.218 0.022 77.259);
  --muted-foreground: oklch(0.735 0.021 78.194);
  --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.509 0.096 114.712);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.448 0.071 75.16);
  --secondary-foreground: oklch(1 0 180);
  --accent: oklch(0.482 0.114 135.014);
  --accent-foreground: oklch(1 0 180);
  --destructive: oklch(0.691 0.202 39.374);
  --destructive-foreground: oklch(0 0 0);
  --ring: oklch(0.509 0.096 114.712);
  --chart-1: oklch(0.509 0.096 114.712);
  --chart-2: oklch(0.448 0.071 75.16);
  --chart-3: oklch(0.482 0.114 135.014);
  --chart-4: oklch(0.481 0.078 75.056);
  --chart-5: oklch(0.516 0.1 114.853);
}