Second is a shadcn/ui theme built around a pink primary color (#ed91bc) with red accents (#ed9491). The light mode uses a neutral background (#ffffff). Dark mode keeps the pink primary (#ed91bc) on a pink-tinted background (#0e060a).
| Token | Light | Dark |
|---|---|---|
| Background | #ffffffwhite | #0e060ablack |
| Foreground | #13060cblack | #faf4f7whitesmoke |
| Card | #ffffffwhite | #0e060ablack |
| Card foreground | #13060cblack | #faf4f7whitesmoke |
| Popover | #ffffffwhite | #0e060ablack |
| Popover foreground | #13060cblack | #faf4f7whitesmoke |
| Primary | #ed91bcplum | #ed91bcplum |
| Primary foreground | #420b24maroon | #420b24maroon |
| Secondary | #ed91eaviolet | #ed91eaviolet |
| Secondary foreground | #420b40midnightblue | #420b40midnightblue |
| Muted | #f6eaf5lavenderblush | #150915black |
| Muted foreground | #6e596edimgray | #a691a6darkgray |
| Accent | #ed9491darksalmon | #ed9491darksalmon |
| Accent foreground | #420d0bmaroon | #420d0bmaroon |
| Destructive | #cb2601firebrick | #e92c01orangered |
| Destructive foreground | #ffffffwhite | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #ed91bcplum | #ed91bcplum |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.82:1 | AAA |
| Text on card | 19.82:1 | AAA |
| Primary button | 7.20:1 | AAA |
| Secondary button | 7.28:1 | AAA |
| Muted text | 5.41:1 | AA |
| Accent | 7.17:1 | AAA |
| Destructive | 5.50:1 | AA |
| Text on background | 18.43:1 | AAA |
| Text on card | 18.43:1 | AAA |
| Primary button | 7.20:1 | AAA |
| Secondary button | 7.28:1 | AAA |
| Muted text | 6.66:1 | AA |
| Accent | 7.17:1 | AAA |
| Destructive | 4.34:1 | AA Large |
Paste this into your globals.css to use Second in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(1 0 180);
--foreground: oklch(0.148 0.028 350.363);
--muted: oklch(0.949 0.02 326.726);
--muted-foreground: oklch(0.492 0.043 327.265);
--popover: oklch(1 0 180);
--popover-foreground: oklch(0.148 0.028 350.363);
--card: oklch(1 0 180);
--card-foreground: oklch(0.148 0.028 350.363);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.765 0.122 350.91);
--primary-foreground: oklch(0.259 0.087 356.83);
--secondary: oklch(0.782 0.157 328.124);
--secondary-foreground: oklch(0.274 0.107 329.495);
--accent: oklch(0.758 0.108 22.051);
--accent-foreground: oklch(0.254 0.082 26.823);
--destructive: oklch(0.544 0.203 32.462);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.765 0.122 350.91);
--chart-1: oklch(0.765 0.122 350.91);
--chart-2: oklch(0.782 0.157 328.124);
--chart-3: oklch(0.758 0.108 22.051);
--chart-4: oklch(0.806 0.138 327.909);
--chart-5: oklch(0.764 0.127 351.08);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.138 0.019 348.279);
--foreground: oklch(0.974 0.007 347.11);
--muted: oklch(0.165 0.031 328.031);
--muted-foreground: oklch(0.682 0.04 327.03);
--popover: oklch(0.138 0.019 348.279);
--popover-foreground: oklch(0.974 0.007 347.11);
--card: oklch(0.138 0.019 348.279);
--card-foreground: oklch(0.974 0.007 347.11);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.765 0.122 350.91);
--primary-foreground: oklch(0.259 0.087 356.83);
--secondary: oklch(0.782 0.157 328.124);
--secondary-foreground: oklch(0.274 0.107 329.495);
--accent: oklch(0.758 0.108 22.051);
--accent-foreground: oklch(0.254 0.082 26.823);
--destructive: oklch(0.603 0.226 32.262);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.765 0.122 350.91);
--chart-1: oklch(0.765 0.122 350.91);
--chart-2: oklch(0.782 0.157 328.124);
--chart-3: oklch(0.758 0.108 22.051);
--chart-4: oklch(0.806 0.138 327.909);
--chart-5: oklch(0.764 0.127 351.08);
}