Wrap is a shadcn/ui theme built around a vivid deep red primary color (#411001) with muted red accents (#c2bab7). The light mode uses a neutral background (#ffffff). Dark mode keeps the vivid deep red primary (#411001) on a neutral background (#080402).
| Token | Light | Dark |
|---|---|---|
| Background | #ffffffwhite | #080402black |
| Foreground | #040201black | #fdfcfbsnow |
| Card | #ffffffwhite | #080402black |
| Card foreground | #040201black | #fdfcfbsnow |
| Popover | #ffffffwhite | #080402black |
| Popover foreground | #040201black | #fdfcfbsnow |
| Primary | #411001maroon | #411001maroon |
| Primary foreground | #fc9778lightsalmon | #fc9778lightsalmon |
| Secondary | #d0cecelightgrey | #251f1dblack |
| Secondary foreground | #373534darkslategray | #c3b5b1silver |
| Muted | #f5edeblinen | #140d0ablack |
| Muted foreground | #5b4c48darkolivegreen | #b7a8a4darkgray |
| Accent | #c2bab7silver | #44322cdarkslategray |
| Accent foreground | #272221black | #dbccc7lightgrey |
| Destructive | #b71e10firebrick | #eb2614orangered |
| Destructive foreground | #fffbfasnow | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #411001maroon | #411001maroon |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 20.70:1 | AAA |
| Text on card | 20.70:1 | AAA |
| Primary button | 7.56:1 | AAA |
| Secondary button | 7.77:1 | AAA |
| Muted text | 7.06:1 | AAA |
| Accent | 8.22:1 | AAA |
| Destructive | 6.37:1 | AA |
| Text on background | 19.95:1 | AAA |
| Text on card | 19.95:1 | AAA |
| Primary button | 7.56:1 | AAA |
| Secondary button | 8.17:1 | AAA |
| Muted text | 8.39:1 | AAA |
| Accent | 7.76:1 | AAA |
| Destructive | 4.36:1 | AA Large |
Paste this into your globals.css to use Wrap in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(1 0 180);
--foreground: oklch(0.088 0.011 45.113);
--muted: oklch(0.952 0.009 37.698);
--muted-foreground: oklch(0.432 0.022 37.598);
--popover: oklch(1 0 180);
--popover-foreground: oklch(0.088 0.011 45.113);
--card: oklch(1 0 180);
--card-foreground: oklch(0.088 0.011 45.113);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.255 0.08 38.431);
--primary-foreground: oklch(0.775 0.13 37.709);
--secondary: oklch(0.853 0.002 37.732);
--secondary-foreground: oklch(0.33 0.002 37.706);
--accent: oklch(0.794 0.01 37.685);
--accent-foreground: oklch(0.257 0.007 37.636);
--destructive: oklch(0.502 0.189 30.07);
--destructive-foreground: oklch(0.99 0.004 23.622);
--ring: oklch(0.255 0.08 38.431);
--chart-1: oklch(0.255 0.08 38.431);
--chart-2: oklch(0.853 0.002 37.732);
--chart-3: oklch(0.794 0.01 37.685);
--chart-4: oklch(0.876 0.001 37.734);
--chart-5: oklch(0.257 0.082 38.663);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.112 0.013 44.611);
--foreground: oklch(0.992 0.002 37.733);
--muted: oklch(0.167 0.014 37.595);
--muted-foreground: oklch(0.744 0.019 37.642);
--popover: oklch(0.112 0.013 44.611);
--popover-foreground: oklch(0.992 0.002 37.733);
--card: oklch(0.112 0.013 44.611);
--card-foreground: oklch(0.992 0.002 37.733);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.255 0.08 38.431);
--primary-foreground: oklch(0.775 0.13 37.709);
--secondary: oklch(0.246 0.011 37.604);
--secondary-foreground: oklch(0.785 0.017 37.653);
--accent: oklch(0.335 0.028 37.6);
--accent-foreground: oklch(0.856 0.018 37.656);
--destructive: oklch(0.603 0.229 30.089);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.255 0.08 38.431);
--chart-1: oklch(0.255 0.08 38.431);
--chart-2: oklch(0.246 0.011 37.604);
--chart-3: oklch(0.335 0.028 37.6);
--chart-4: oklch(0.277 0.013 37.601);
--chart-5: oklch(0.257 0.082 38.663);
}