Shortage is a shadcn/ui theme built around a vivid light pink primary color (#fcdeee) with vivid light red accents (#fcdedf). The light mode uses a neutral background (#fdf7fa). Dark mode keeps the vivid light pink primary (#fcdeee) on a neutral background (#000000).
| Token | Light | Dark |
|---|---|---|
| Background | #fdf7fasnow | #000000black |
| Foreground | #16030dblack | #fdfcfcsnow |
| Card | #fdf7fasnow | #000000black |
| Card foreground | #16030dblack | #fdfcfcsnow |
| Popover | #fdf7fasnow | #000000black |
| Popover foreground | #16030dblack | #fdfcfcsnow |
| Primary | #fcdeeemistyrose | #fcdeeemistyrose |
| Primary foreground | #9a0e56purple | #9a0e56purple |
| Secondary | #fbdefclavenderblush | #fbdefclavenderblush |
| Secondary foreground | #3c063dmidnightblue | #3c063dmidnightblue |
| Muted | #e6dbe6gainsboro | #241924black |
| Muted foreground | #665766dimgray | #a899a8darkgray |
| Accent | #fcdedfmistyrose | #fcdedfmistyrose |
| Accent foreground | #9a0e11darkred | #9a0e11darkred |
| Destructive | #c1300bfirebrick | #f3532btomato |
| Destructive foreground | #ffffffwhite | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #fcdeeemistyrose | #fcdeeemistyrose |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 18.81:1 | AAA |
| Text on card | 18.81:1 | AAA |
| Primary button | 6.55:1 | AA |
| Secondary button | 13.23:1 | AAA |
| Muted text | 4.99:1 | AA |
| Accent | 6.82:1 | AA |
| Destructive | 5.70:1 | AA |
| Text on background | 20.50:1 | AAA |
| Text on card | 20.50:1 | AAA |
| Primary button | 6.55:1 | AA |
| Secondary button | 13.23:1 | AAA |
| Muted text | 6.28:1 | AA |
| Accent | 6.82:1 | AA |
| Destructive | 3.46:1 | AA Large |
Paste this into your globals.css to use Shortage in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.981 0.008 344.507);
--foreground: oklch(0.145 0.043 348.612);
--muted: oklch(0.903 0.02 325.252);
--muted-foreground: oklch(0.476 0.03 325.53);
--popover: oklch(0.981 0.008 344.507);
--popover-foreground: oklch(0.145 0.043 348.612);
--card: oklch(0.981 0.008 344.507);
--card-foreground: oklch(0.145 0.043 348.612);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.93 0.038 345.305);
--primary-foreground: oklch(0.452 0.176 357.35);
--secondary: oklch(0.934 0.05 325.466);
--secondary-foreground: oklch(0.256 0.107 327.412);
--accent: oklch(0.926 0.033 16.613);
--accent-foreground: oklch(0.437 0.17 27.68);
--destructive: oklch(0.533 0.187 33.732);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.93 0.038 345.305);
--chart-1: oklch(0.93 0.038 345.305);
--chart-2: oklch(0.934 0.05 325.466);
--chart-3: oklch(0.926 0.033 16.613);
--chart-4: oklch(0.962 0.029 325.304);
--chart-5: oklch(0.93 0.04 345.342);
}
.dark {
--radius: 0.5rem;
--background: oklch(0 0 0);
--foreground: oklch(0.992 0.002 344.329);
--muted: oklch(0.232 0.028 325.886);
--muted-foreground: oklch(0.701 0.028 325.369);
--popover: oklch(0 0 0);
--popover-foreground: oklch(0.992 0.002 344.329);
--card: oklch(0 0 0);
--card-foreground: oklch(0.992 0.002 344.329);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.93 0.038 345.305);
--primary-foreground: oklch(0.452 0.176 357.35);
--secondary: oklch(0.934 0.05 325.466);
--secondary-foreground: oklch(0.256 0.107 327.412);
--accent: oklch(0.926 0.033 16.613);
--accent-foreground: oklch(0.437 0.17 27.68);
--destructive: oklch(0.655 0.203 34.835);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.93 0.038 345.305);
--chart-1: oklch(0.93 0.038 345.305);
--chart-2: oklch(0.934 0.05 325.466);
--chart-3: oklch(0.926 0.033 16.613);
--chart-4: oklch(0.962 0.029 325.304);
--chart-5: oklch(0.93 0.04 345.342);
}