Packaging for shadcn/ui

Packaging is a shadcn/ui theme built around a deep teal primary color (#0c322d) with deep red accents (#320c10). The light mode uses a neutral background (#fbfdfd). Dark mode keeps the deep teal primary (#0c322d) on a teal-tinted background (#040c0b).

Color palette

TokenLightDark
Background
#fbfdfdwhite
#040c0bblack
Foreground
#030d0bblack
#ffffffwhite
Card
#f8fcfcmintcream
#05100eblack
Card foreground
#020808black
#ffffffwhite
Popover
#f8fcfcmintcream
#05100eblack
Popover foreground
#020808black
#ffffffwhite
Primary
#0c322ddarkslategray
#0c322ddarkslategray
Primary foreground
#39d0bfmediumturquoise
#39d0bfmediumturquoise
Secondary
#320c10black
#320c10black
Secondary foreground
#e48b96lightcoral
#e48b96lightcoral
Muted
#ebe5e6linen
#1a1414black
Muted foreground
#4e4647darkslategray
#b9b1b2darkgray
Accent
#320c10black
#320c10black
Accent foreground
#e48b96lightcoral
#e48b96lightcoral
Destructive
#b82e00firebrick
#fa3e00orangered
Destructive foreground
#ffffffwhite
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#0c322ddarkslategray
#0c322ddarkslategray

Contrast

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

Light mode
Text on background19.36:1AAA
Text on card19.51:1AAA
Primary button7.28:1AAA
Secondary button7.07:1AAA
Muted text7.36:1AAA
Accent7.07:1AAA
Destructive6.14:1AA
Dark mode
Text on background19.79:1AAA
Text on card19.35:1AAA
Primary button7.28:1AAA
Secondary button7.07:1AAA
Muted text8.66:1AAA
Accent7.07:1AAA
Destructive3.64:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.994 0.002 188.857);
  --foreground: oklch(0.145 0.018 187.512);
  --muted: oklch(0.927 0.007 9.09);
  --muted-foreground: oklch(0.403 0.01 9.501);
  --popover: oklch(0.988 0.004 188.803);
  --popover-foreground: oklch(0.126 0.016 188.204);
  --card: oklch(0.988 0.004 188.803);
  --card-foreground: oklch(0.126 0.016 188.204);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.288 0.043 184.253);
  --primary-foreground: oklch(0.778 0.126 183.408);
  --secondary: oklch(0.22 0.061 16.903);
  --secondary-foreground: oklch(0.733 0.108 12.54);
  --accent: oklch(0.22 0.061 16.903);
  --accent-foreground: oklch(0.733 0.108 12.54);
  --destructive: oklch(0.515 0.18 35.139);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.288 0.043 184.253);
  --chart-1: oklch(0.288 0.043 184.253);
  --chart-2: oklch(0.22 0.061 16.903);
  --chart-3: oklch(0.22 0.061 16.903);
  --chart-4: oklch(0.25 0.074 17.589);
  --chart-5: oklch(0.29 0.044 184.062);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.143 0.015 187.818);
  --foreground: oklch(1 0 180);
  --muted: oklch(0.198 0.011 10.173);
  --muted-foreground: oklch(0.768 0.009 9.172);
  --popover: oklch(0.16 0.018 186.801);
  --popover-foreground: oklch(1 0 180);
  --card: oklch(0.16 0.018 186.801);
  --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.288 0.043 184.253);
  --primary-foreground: oklch(0.778 0.126 183.408);
  --secondary: oklch(0.22 0.061 16.903);
  --secondary-foreground: oklch(0.733 0.108 12.54);
  --accent: oklch(0.22 0.061 16.903);
  --accent-foreground: oklch(0.733 0.108 12.54);
  --destructive: oklch(0.646 0.229 34.517);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.288 0.043 184.253);
  --chart-1: oklch(0.288 0.043 184.253);
  --chart-2: oklch(0.22 0.061 16.903);
  --chart-3: oklch(0.22 0.061 16.903);
  --chart-4: oklch(0.25 0.074 17.589);
  --chart-5: oklch(0.29 0.044 184.062);
}