Conifer for shadcn/ui

Conifer is a shadcn/ui theme built around a deep pink primary color (#281521) with deep blue accents (#152128). The light mode uses a neutral background (#fefbfd). Dark mode keeps the deep pink primary (#281521) on a neutral background (#000000).

Color palette

TokenLightDark
Background
#fefbfdsnow
#000000black
Foreground
#000000black
#fdfcfdwhite
Card
#fefbfdsnow
#000000black
Card foreground
#000000black
#fdfcfdwhite
Popover
#fefbfdsnow
#000000black
Popover foreground
#000000black
#fdfcfdwhite
Primary
#281521black
#281521black
Primary foreground
#cea1besilver
#cea1besilver
Secondary
#212815black
#212815black
Secondary foreground
#becea1silver
#becea1silver
Muted
#dadcd6gainsboro
#272923darkslategray
Muted foreground
#53584bdarkolivegreen
#afb4a7darkgray
Accent
#152128black
#152128black
Accent foreground
#a1becelightsteelblue
#a1becelightsteelblue
Destructive
#ba2a03firebrick
#ec3604orangered
Destructive foreground
#ffffffwhite
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#281521black
#281521black

Contrast

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

Light mode
Text on background20.41:1AAA
Text on card20.41:1AAA
Primary button7.75:1AAA
Secondary button9.07:1AAA
Muted text5.28:1AA
Accent8.40:1AAA
Destructive6.13:1AA
Dark mode
Text on background20.51:1AAA
Text on card20.51:1AAA
Primary button7.75:1AAA
Secondary button9.07:1AAA
Muted text6.91:1AA
Accent8.40:1AAA
Destructive4.11:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.991 0.004 338.812);
  --foreground: oklch(0 0 0);
  --muted: oklch(0.89 0.009 123.076);
  --muted-foreground: oklch(0.452 0.022 123.666);
  --popover: oklch(0.991 0.004 338.812);
  --popover-foreground: oklch(0 0 0);
  --card: oklch(0.991 0.004 338.812);
  --card-foreground: oklch(0 0 0);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.227 0.037 341.946);
  --primary-foreground: oklch(0.76 0.064 340.439);
  --secondary: oklch(0.264 0.035 125.094);
  --secondary-foreground: oklch(0.827 0.062 124.114);
  --accent: oklch(0.24 0.021 234.242);
  --accent-foreground: oklch(0.784 0.038 233.355);
  --destructive: oklch(0.516 0.184 33.887);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.227 0.037 341.946);
  --chart-1: oklch(0.227 0.037 341.946);
  --chart-2: oklch(0.264 0.035 125.094);
  --chart-3: oklch(0.24 0.021 234.242);
  --chart-4: oklch(0.302 0.042 125.229);
  --chart-5: oklch(0.227 0.04 342.25);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0 0 0);
  --foreground: oklch(0.992 0.001 338.743);
  --muted: oklch(0.278 0.011 123.564);
  --muted-foreground: oklch(0.762 0.019 123.312);
  --popover: oklch(0 0 0);
  --popover-foreground: oklch(0.992 0.001 338.743);
  --card: oklch(0 0 0);
  --card-foreground: oklch(0.992 0.001 338.743);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.227 0.037 341.946);
  --primary-foreground: oklch(0.76 0.064 340.439);
  --secondary: oklch(0.264 0.035 125.094);
  --secondary-foreground: oklch(0.827 0.062 124.114);
  --accent: oklch(0.24 0.021 234.242);
  --accent-foreground: oklch(0.784 0.038 233.355);
  --destructive: oklch(0.615 0.222 33.511);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.227 0.037 341.946);
  --chart-1: oklch(0.227 0.037 341.946);
  --chart-2: oklch(0.264 0.035 125.094);
  --chart-3: oklch(0.24 0.021 234.242);
  --chart-4: oklch(0.302 0.042 125.229);
  --chart-5: oklch(0.227 0.04 342.25);
}