Nippy is a shadcn/ui theme built around a purple primary color (#e85ebc) with cyan accents (#5ebce8). The light mode uses a neutral background (#fefbfd). Dark mode keeps the purple primary (#e85ebc) on a neutral background (#000000).
| Token | Light | Dark |
|---|---|---|
| Background | #fefbfdsnow | #000000black |
| Foreground | #040103black | #fbf9fasnow |
| Card | #fefbfdsnow | #000000black |
| Card foreground | #040103black | #fbf9fasnow |
| Popover | #fefbfdsnow | #000000black |
| Popover foreground | #040103black | #fbf9fasnow |
| Primary | #e85ebchotpink | #e85ebchotpink |
| Primary foreground | #12030dblack | #12030dblack |
| Secondary | #bce85edarkkhaki | #bce85edarkkhaki |
| Secondary foreground | #0d1203black | #0d1203black |
| Muted | #dee3d3gainsboro | #272c1cdarkslategray |
| Muted foreground | #5d6057dimgray | #a5a89fdarkgray |
| Accent | #5ebce8cornflowerblue | #5ebce8cornflowerblue |
| Accent foreground | #030d12black | #030d12black |
| Destructive | #742306maroon | #da430borangered |
| Destructive foreground | #fbc5b1lightpink | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #e85ebchotpink | #e85ebchotpink |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 20.23:1 | AAA |
| Text on card | 20.23:1 | AAA |
| Primary button | 6.48:1 | AA |
| Secondary button | 13.44:1 | AAA |
| Muted text | 4.90:1 | AA |
| Accent | 9.22:1 | AAA |
| Destructive | 6.87:1 | AA |
| Text on background | 20.03:1 | AAA |
| Text on card | 20.03:1 | AAA |
| Primary button | 6.48:1 | AA |
| Secondary button | 13.44:1 | AAA |
| Muted text | 5.98:1 | AA |
| Accent | 9.22:1 | AAA |
| Destructive | 4.39:1 | AA Large |
Paste this into your globals.css to use Nippy in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.991 0.003 336.624);
--foreground: oklch(0.085 0.018 337.033);
--muted: oklch(0.908 0.022 121.162);
--muted-foreground: oklch(0.485 0.015 121.273);
--popover: oklch(0.991 0.003 336.624);
--popover-foreground: oklch(0.085 0.018 337.033);
--card: oklch(0.991 0.003 336.624);
--card-foreground: oklch(0.085 0.018 337.033);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.687 0.199 341.893);
--primary-foreground: oklch(0.134 0.04 339.447);
--secondary: oklch(0.873 0.171 124.678);
--secondary-foreground: oklch(0.171 0.033 122.557);
--accent: oklch(0.756 0.109 230.618);
--accent-foreground: oklch(0.15 0.021 224.693);
--destructive: oklch(0.381 0.119 37.765);
--destructive-foreground: oklch(0.866 0.068 40.909);
--ring: oklch(0.687 0.199 341.893);
--chart-1: oklch(0.687 0.199 341.893);
--chart-2: oklch(0.873 0.171 124.678);
--chart-3: oklch(0.756 0.109 230.618);
--chart-4: oklch(0.883 0.16 124.247);
--chart-5: oklch(0.688 0.205 342.094);
}
.dark {
--radius: 0.5rem;
--background: oklch(0 0 0);
--foreground: oklch(0.984 0.002 336.596);
--muted: oklch(0.281 0.028 122.493);
--muted-foreground: oklch(0.726 0.013 121.073);
--popover: oklch(0 0 0);
--popover-foreground: oklch(0.984 0.002 336.596);
--card: oklch(0 0 0);
--card-foreground: oklch(0.984 0.002 336.596);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.687 0.199 341.893);
--primary-foreground: oklch(0.134 0.04 339.447);
--secondary: oklch(0.873 0.171 124.678);
--secondary-foreground: oklch(0.171 0.033 122.557);
--accent: oklch(0.756 0.109 230.618);
--accent-foreground: oklch(0.15 0.021 224.693);
--destructive: oklch(0.596 0.196 36.624);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.687 0.199 341.893);
--chart-1: oklch(0.687 0.199 341.893);
--chart-2: oklch(0.873 0.171 124.678);
--chart-3: oklch(0.756 0.109 230.618);
--chart-4: oklch(0.883 0.16 124.247);
--chart-5: oklch(0.688 0.205 342.094);
}