Possible for shadcn/ui

Possible is a shadcn/ui theme built around a deep green primary color (#495e1c) with deep purple accents (#5e1c49). The light mode uses a neutral background (#fdfefb). Dark mode keeps the deep green primary (#495e1c) on a neutral background (#000000).

Color palette

TokenLightDark
Background
#fdfefbwhite
#000000black
Foreground
#000000black
#f8faf4whitesmoke
Card
#fbfdf7snow
#030303black
Card foreground
#000000black
#fbfcf8snow
Popover
#fdfefbwhite
#000000black
Popover foreground
#000000black
#f8faf4whitesmoke
Primary
#495e1cdarkolivegreen
#495e1cdarkolivegreen
Primary foreground
#ffffffwhite
#ffffffwhite
Secondary
#1c495edarkslategray
#1c495edarkslategray
Secondary foreground
#c0deecpowderblue
#c0deecpowderblue
Muted
#d3dee3gainsboro
#1c272cdarkslategray
Muted foreground
#4c5e67dimgray
#98abb3darkgray
Accent
#5e1c49indigo
#5e1c49indigo
Accent foreground
#ecc0dethistle
#ecc0dethistle
Destructive
#922802saddlebrown
#e74004orangered
Destructive foreground
#fed6c8bisque
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#495e1cdarkolivegreen
#495e1cdarkolivegreen

Contrast

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

Light mode
Text on background20.71:1AAA
Text on card20.43:1AAA
Primary button7.21:1AAA
Secondary button6.85:1AA
Muted text4.94:1AA
Accent7.55:1AAA
Destructive6.19:1AA
Dark mode
Text on background19.97:1AAA
Text on card20.07:1AAA
Primary button7.21:1AAA
Secondary button6.85:1AA
Muted text6.43:1AA
Accent7.55:1AAA
Destructive4.08:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.995 0.004 120.827);
  --foreground: oklch(0 0 0);
  --muted: oklch(0.894 0.013 227.047);
  --muted-foreground: oklch(0.47 0.026 227.709);
  --popover: oklch(0.995 0.004 120.827);
  --popover-foreground: oklch(0 0 0);
  --card: oklch(0.99 0.007 120.887);
  --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.451 0.095 125.138);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.385 0.06 231.388);
  --secondary-foreground: oklch(0.884 0.037 227.458);
  --accent: oklch(0.348 0.111 342.55);
  --accent-foreground: oklch(0.856 0.064 337.947);
  --destructive: oklch(0.441 0.147 36.736);
  --destructive-foreground: oklch(0.907 0.049 40.99);
  --ring: oklch(0.451 0.095 125.138);
  --chart-1: oklch(0.451 0.095 125.138);
  --chart-2: oklch(0.385 0.06 231.388);
  --chart-3: oklch(0.348 0.111 342.55);
  --chart-4: oklch(0.417 0.066 231.535);
  --chart-5: oklch(0.456 0.098 125.358);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0 0 0);
  --foreground: oklch(0.983 0.008 120.907);
  --muted: oklch(0.263 0.018 227.944);
  --muted-foreground: oklch(0.729 0.024 227.304);
  --popover: oklch(0 0 0);
  --popover-foreground: oklch(0.983 0.008 120.907);
  --card: oklch(0.092 0 180);
  --card-foreground: oklch(0.989 0.006 120.86);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.451 0.095 125.138);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.385 0.06 231.388);
  --secondary-foreground: oklch(0.884 0.037 227.458);
  --accent: oklch(0.348 0.111 342.55);
  --accent-foreground: oklch(0.856 0.064 337.947);
  --destructive: oklch(0.615 0.211 35.7);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.451 0.095 125.138);
  --chart-1: oklch(0.451 0.095 125.138);
  --chart-2: oklch(0.385 0.06 231.388);
  --chart-3: oklch(0.348 0.111 342.55);
  --chart-4: oklch(0.417 0.066 231.535);
  --chart-5: oklch(0.456 0.098 125.358);
}