Flare for shadcn/ui

Flare is a shadcn/ui theme built around a deep green primary color (#0c1306) with deep green accents (#061307). The light mode uses a neutral background (#fafdf7). Dark mode keeps the deep green primary (#0c1306) on a green-tinted background (#070c03).

Color palette

TokenLightDark
Background
#fafdf7mintcream
#070c03black
Foreground
#0c1505black
#fafbf9snow
Card
#f7fbf3whitesmoke
#0a1004black
Card foreground
#0a1104black
#fcfdfcwhite
Popover
#fafdf7mintcream
#070c03black
Popover foreground
#0c1505black
#fafbf9snow
Primary
#0c1306black
#0c1306black
Primary foreground
#6fae37olivedrab
#6fae37olivedrab
Secondary
#131306black
#131306black
Secondary foreground
#aaae37yellowgreen
#aaae37yellowgreen
Muted
#ebebdbbeige
#242414black
Muted foreground
#58584bdarkolivegreen
#b3b4a7darkgray
Accent
#061307black
#061307black
Accent foreground
#37ae3blimegreen
#37ae3blimegreen
Destructive
#9f180ffirebrick
#d22014firebrick
Destructive foreground
#fce5e3mistyrose
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#0c1306black
#0c1306black

Contrast

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

Light mode
Text on background18.12:1AAA
Text on card18.34:1AAA
Primary button6.98:1AA
Secondary button7.83:1AAA
Muted text5.98:1AA
Accent6.57:1AA
Destructive6.69:1AA
Dark mode
Text on background19.01:1AAA
Text on card18.90:1AAA
Primary button6.98:1AA
Secondary button7.83:1AAA
Muted text7.47:1AAA
Accent6.57:1AA
Destructive5.30:1AA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.989 0.007 129.86);
  --foreground: oklch(0.181 0.035 131.024);
  --muted: oklch(0.936 0.022 108.359);
  --muted-foreground: oklch(0.456 0.021 108.749);
  --popover: oklch(0.989 0.007 129.86);
  --popover-foreground: oklch(0.181 0.035 131.024);
  --card: oklch(0.984 0.011 129.898);
  --card-foreground: oklch(0.164 0.03 129.879);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.177 0.029 130.976);
  --primary-foreground: oklch(0.685 0.164 133.316);
  --secondary: oklch(0.184 0.025 110.262);
  --secondary-foreground: oklch(0.727 0.139 111.267);
  --accent: oklch(0.171 0.033 144.818);
  --accent-foreground: oklch(0.662 0.187 143.55);
  --destructive: oklch(0.452 0.17 29.591);
  --destructive-foreground: oklch(0.94 0.026 22.544);
  --ring: oklch(0.177 0.029 130.976);
  --chart-1: oklch(0.177 0.029 130.976);
  --chart-2: oklch(0.184 0.025 110.262);
  --chart-3: oklch(0.171 0.033 144.818);
  --chart-4: oklch(0.233 0.036 110.599);
  --chart-5: oklch(0.178 0.03 130.991);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.145 0.024 128.717);
  --foreground: oklch(0.986 0.002 129.804);
  --muted: oklch(0.255 0.028 109.874);
  --muted-foreground: oklch(0.766 0.018 108.372);
  --popover: oklch(0.145 0.024 128.717);
  --popover-foreground: oklch(0.986 0.002 129.804);
  --card: oklch(0.162 0.028 129.882);
  --card-foreground: oklch(0.993 0.001 129.794);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.177 0.029 130.976);
  --primary-foreground: oklch(0.685 0.164 133.316);
  --secondary: oklch(0.184 0.025 110.262);
  --secondary-foreground: oklch(0.727 0.139 111.267);
  --accent: oklch(0.171 0.033 144.818);
  --accent-foreground: oklch(0.662 0.187 143.55);
  --destructive: oklch(0.554 0.211 29.669);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.177 0.029 130.976);
  --chart-1: oklch(0.177 0.029 130.976);
  --chart-2: oklch(0.184 0.025 110.262);
  --chart-3: oklch(0.171 0.033 144.818);
  --chart-4: oklch(0.233 0.036 110.599);
  --chart-5: oklch(0.178 0.03 130.991);
}