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).
| Token | Light | Dark |
|---|---|---|
| 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 |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.36:1 | AAA |
| Text on card | 19.51:1 | AAA |
| Primary button | 7.28:1 | AAA |
| Secondary button | 7.07:1 | AAA |
| Muted text | 7.36:1 | AAA |
| Accent | 7.07:1 | AAA |
| Destructive | 6.14:1 | AA |
| Text on background | 19.79:1 | AAA |
| Text on card | 19.35:1 | AAA |
| Primary button | 7.28:1 | AAA |
| Secondary button | 7.07:1 | AAA |
| Muted text | 8.66:1 | AAA |
| Accent | 7.07:1 | AAA |
| Destructive | 3.64:1 | AA Large |
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);
}