Offering for shadcn/ui

Offering is a shadcn/ui theme built around a light green primary color (#dff6e6) with muted light green accents (#cfd8d2). The light mode uses a neutral background (#f7fdf9). Dark mode keeps the light green primary (#dff6e6) on a neutral background (#000000).

Color palette

TokenLightDark
Background
#f7fdf9mintcream
#000000black
Foreground
#010402black
#ffffffwhite
Card
#f3fbf6mintcream
#030303black
Card foreground
#000000black
#ffffffwhite
Popover
#f3fbf6mintcream
#030303black
Popover foreground
#000000black
#ffffffwhite
Primary
#dff6e6honeydew
#dff6e6honeydew
Primary foreground
#0d3018black
#0d3018black
Secondary
#cfd8d2lightgrey
#292929darkslategray
Secondary foreground
#354138darkslategray
#c2c2c2silver
Muted
#eff5f1whitesmoke
#100a0ablack
Muted foreground
#4c4d4cdarkslategray
#b3b2b2darkgray
Accent
#cfd8d2lightgrey
#292929darkslategray
Accent foreground
#354138darkslategray
#c2c2c2silver
Destructive
#cc1714firebrick
#ea2d2acrimson
Destructive foreground
#ffffffwhite
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#dff6e6honeydew
#dff6e6honeydew

Contrast

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

Light mode
Text on background19.93:1AAA
Text on card19.99:1AAA
Primary button12.71:1AAA
Secondary button7.33:1AAA
Muted text7.69:1AAA
Accent7.33:1AAA
Destructive5.66:1AA
Dark mode
Text on background21.00:1AAA
Text on card20.67:1AAA
Primary button12.71:1AAA
Secondary button8.18:1AAA
Muted text9.28:1AAA
Accent8.18:1AAA
Destructive4.28:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.988 0.007 155.725);
  --foreground: oklch(0.098 0.016 155.351);
  --muted: oklch(0.965 0.008 155.713);
  --muted-foreground: oklch(0.419 0.003 155.748);
  --popover: oklch(0.982 0.011 155.652);
  --popover-foreground: oklch(0 0 0);
  --card: oklch(0.982 0.011 155.652);
  --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.952 0.032 155.213);
  --primary-foreground: oklch(0.276 0.059 150.5);
  --secondary: oklch(0.874 0.012 155.595);
  --secondary-foreground: oklch(0.36 0.021 154.716);
  --accent: oklch(0.874 0.012 155.595);
  --accent-foreground: oklch(0.36 0.021 154.716);
  --destructive: oklch(0.539 0.21 28.607);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.952 0.032 155.213);
  --chart-1: oklch(0.952 0.032 155.213);
  --chart-2: oklch(0.874 0.012 155.595);
  --chart-3: oklch(0.874 0.012 155.595);
  --chart-4: oklch(0.896 0.01 155.651);
  --chart-5: oklch(0.953 0.034 155.178);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0 0 0);
  --foreground: oklch(1 0 180);
  --muted: oklch(0.152 0.01 18.3);
  --muted-foreground: oklch(0.764 0.002 17.196);
  --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.952 0.032 155.213);
  --primary-foreground: oklch(0.276 0.059 150.5);
  --secondary: oklch(0.28 0 180);
  --secondary-foreground: oklch(0.813 0 165.964);
  --accent: oklch(0.28 0 180);
  --accent-foreground: oklch(0.813 0 165.964);
  --destructive: oklch(0.607 0.223 27.707);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.952 0.032 155.213);
  --chart-1: oklch(0.952 0.032 155.213);
  --chart-2: oklch(0.28 0 180);
  --chart-3: oklch(0.28 0 180);
  --chart-4: oklch(0.311 0 180);
  --chart-5: oklch(0.953 0.034 155.178);
}