Package for shadcn/ui

Package is a shadcn/ui theme built around a near-black primary color (#090e01) with muted green accents (#bac2ad). The light mode uses a neutral background (#fdfdfc). Dark mode keeps the near-black primary (#090e01) on a neutral background (#000000).

Color palette

TokenLightDark
Background
#fdfdfcwhite
#000000black
Foreground
#060802black
#fdfdfcwhite
Card
#fafcf8snow
#030303black
Card foreground
#030401black
#ffffffwhite
Popover
#fdfdfcwhite
#000000black
Popover foreground
#060802black
#fdfdfcwhite
Primary
#090e01black
#090e01black
Primary foreground
#82c615yellowgreen
#82c615yellowgreen
Secondary
#cdd0c8lightgrey
#1f221cblack
Secondary foreground
#34372fdarkslategray
#b9bfb0silver
Muted
#eef1e9linen
#13160eblack
Muted foreground
#616b52dimgray
#a4ad94darkgray
Accent
#bac2adsilver
#38402bdarkslategray
Accent foreground
#20231ablack
#d1d8c5lightgrey
Destructive
#e34202orangered
#fd510dorangered
Destructive foreground
#ffffffwhite
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#090e01black
#090e01black

Contrast

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

Light mode
Text on background19.80:1AAA
Text on card19.89:1AAA
Primary button9.34:1AAA
Secondary button7.73:1AAA
Muted text4.94:1AA
Accent8.68:1AAA
Destructive4.15:1AA Large
Dark mode
Text on background20.63:1AAA
Text on card20.67:1AAA
Primary button9.34:1AAA
Secondary button8.56:1AAA
Muted text7.81:1AAA
Accent7.42:1AAA
Destructive3.31:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.994 0.003 123.677);
  --foreground: oklch(0.127 0.018 123.047);
  --muted: oklch(0.955 0.012 123.824);
  --muted-foreground: oklch(0.511 0.039 124.81);
  --popover: oklch(0.994 0.003 123.677);
  --popover-foreground: oklch(0.127 0.018 123.047);
  --card: oklch(0.988 0.005 123.715);
  --card-foreground: oklch(0.101 0.015 123.047);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.153 0.032 123.536);
  --primary-foreground: oklch(0.754 0.199 130.39);
  --secondary: oklch(0.852 0.01 123.817);
  --secondary-foreground: oklch(0.33 0.013 124.222);
  --accent: oklch(0.803 0.031 124.215);
  --accent-foreground: oklch(0.25 0.018 124.707);
  --destructive: oklch(0.61 0.206 36.458);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.153 0.032 123.536);
  --chart-1: oklch(0.153 0.032 123.536);
  --chart-2: oklch(0.852 0.01 123.817);
  --chart-3: oklch(0.803 0.031 124.215);
  --chart-4: oklch(0.875 0.009 123.785);
  --chart-5: oklch(0.154 0.033 123.566);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0 0 0);
  --foreground: oklch(0.994 0.002 123.667);
  --muted: oklch(0.194 0.017 125.017);
  --muted-foreground: oklch(0.733 0.036 124.379);
  --popover: oklch(0 0 0);
  --popover-foreground: oklch(0.994 0.002 123.667);
  --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.153 0.032 123.536);
  --primary-foreground: oklch(0.754 0.199 130.39);
  --secondary: oklch(0.246 0.012 124.363);
  --secondary-foreground: oklch(0.795 0.021 124.027);
  --accent: oklch(0.357 0.035 125.174);
  --accent-foreground: oklch(0.871 0.026 124.085);
  --destructive: oklch(0.668 0.218 37.273);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.153 0.032 123.536);
  --chart-1: oklch(0.153 0.032 123.536);
  --chart-2: oklch(0.246 0.012 124.363);
  --chart-3: oklch(0.357 0.035 125.174);
  --chart-4: oklch(0.28 0.014 124.409);
  --chart-5: oklch(0.154 0.033 123.566);
}