Nippy is a shadcn/ui theme built around a red primary color (#ca7782) with orange accents (#ca9677). The light mode uses a neutral background (#ffffff). Dark mode keeps the red primary (#ca7782) on a neutral background (#000000).
| Token | Light | Dark |
|---|---|---|
| Background | #ffffffwhite | #000000black |
| Foreground | #000000black | #f9f6f6whitesmoke |
| Card | #ffffffwhite | #000000black |
| Card foreground | #000000black | #f9f6f6whitesmoke |
| Popover | #ffffffwhite | #000000black |
| Popover foreground | #000000black | #f9f6f6whitesmoke |
| Primary | #ca7782palevioletred | #ca7782palevioletred |
| Primary foreground | #0b0405black | #0b0405black |
| Secondary | #ca77acpalevioletred | #ca77acpalevioletred |
| Secondary foreground | #0b0409black | #0b0409black |
| Muted | #f5eaf1whitesmoke | #150a11black |
| Muted foreground | #5f4e59dimgray | #b1a0abdarkgray |
| Accent | #ca9677rosybrown | #ca9677rosybrown |
| Accent foreground | #0b0704black | #0b0704black |
| Destructive | #7e1002maroon | #fc4027orangered |
| Destructive foreground | #febcb4lightpink | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #ca7782palevioletred | #ca7782palevioletred |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 21.00:1 | AAA |
| Text on card | 21.00:1 | AAA |
| Primary button | 6.27:1 | AA |
| Secondary button | 6.52:1 | AA |
| Muted text | 6.59:1 | AA |
| Accent | 7.75:1 | AAA |
| Destructive | 6.67:1 | AA |
| Text on background | 19.54:1 | AAA |
| Text on card | 19.54:1 | AAA |
| Primary button | 6.27:1 | AA |
| Secondary button | 6.52:1 | AA |
| Muted text | 7.84:1 | AAA |
| Accent | 7.75:1 | AAA |
| Destructive | 3.56:1 | AA Large |
Paste this into your globals.css to use Nippy in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(1 0 180);
--foreground: oklch(0 0 0);
--muted: oklch(0.948 0.015 339.056);
--muted-foreground: oklch(0.445 0.029 340.045);
--popover: oklch(1 0 180);
--popover-foreground: oklch(0 0 0);
--card: oklch(1 0 180);
--card-foreground: oklch(0 0 0);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.663 0.104 11.73);
--primary-foreground: oklch(0.123 0.016 8.492);
--secondary: oklch(0.676 0.122 342.316);
--secondary-foreground: oklch(0.125 0.019 339.031);
--accent: oklch(0.715 0.076 51.184);
--accent-foreground: oklch(0.132 0.011 58.791);
--destructive: oklch(0.38 0.144 31.342);
--destructive-foreground: oklch(0.854 0.077 27.306);
--ring: oklch(0.663 0.104 11.73);
--chart-1: oklch(0.663 0.104 11.73);
--chart-2: oklch(0.676 0.122 342.316);
--chart-3: oklch(0.715 0.076 51.184);
--chart-4: oklch(0.701 0.112 341.896);
--chart-5: oklch(0.661 0.112 12.053);
}
.dark {
--radius: 0.5rem;
--background: oklch(0 0 0);
--foreground: oklch(0.975 0.004 7.845);
--muted: oklch(0.163 0.023 341.579);
--muted-foreground: oklch(0.723 0.025 339.455);
--popover: oklch(0 0 0);
--popover-foreground: oklch(0.975 0.004 7.845);
--card: oklch(0 0 0);
--card-foreground: oklch(0.975 0.004 7.845);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.663 0.104 11.73);
--primary-foreground: oklch(0.123 0.016 8.492);
--secondary: oklch(0.676 0.122 342.316);
--secondary-foreground: oklch(0.125 0.019 339.031);
--accent: oklch(0.715 0.076 51.184);
--accent-foreground: oklch(0.132 0.011 58.791);
--destructive: oklch(0.652 0.227 31.024);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.663 0.104 11.73);
--chart-1: oklch(0.663 0.104 11.73);
--chart-2: oklch(0.676 0.122 342.316);
--chart-3: oklch(0.715 0.076 51.184);
--chart-4: oklch(0.701 0.112 341.896);
--chart-5: oklch(0.661 0.112 12.053);
}