2nd is a shadcn/ui theme built around a light pink primary color (#ebd6e2) with muted light pink accents (#d2bcc9). The light mode uses a neutral background (#fefbfd). Dark mode keeps the light pink primary (#ebd6e2) on a neutral background (#070305).
| Token | Light | Dark |
|---|---|---|
| Background | #fefbfdsnow | #070305black |
| Foreground | #040103black | #fbf9fasnow |
| Card | #fefbfdsnow | #070305black |
| Card foreground | #040103black | #fbf9fasnow |
| Popover | #fefbfdsnow | #070305black |
| Popover foreground | #040103black | #fbf9fasnow |
| Primary | #ebd6e2gainsboro | #ebd6e2gainsboro |
| Primary foreground | #602e4cdarkslategray | #602e4cdarkslategray |
| Secondary | #e5dce1gainsboro | #292427darkslategray |
| Secondary foreground | #513d49darkslategray | #c4bbc0silver |
| Muted | #e3dee1gainsboro | #211c1fblack |
| Muted foreground | #54454edarkslategray | #baabb4darkgray |
| Accent | #d2bcc9thistle | #3e2d37darkslategray |
| Accent foreground | #37252fdarkslategray | #d6c7d0thistle |
| Destructive | #7b1809maroon | #ee3317orangered |
| Destructive foreground | #fac5bdpink | #ffffffwhite |
| Border | #f0eff0whitesmoke | #1b181ablack |
| Input | #f0eff0whitesmoke | #1b181ablack |
| Ring | #ebd6e2gainsboro | #ebd6e2gainsboro |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 20.18:1 | AAA |
| Text on card | 20.18:1 | AAA |
| Primary button | 7.64:1 | AAA |
| Secondary button | 7.40:1 | AAA |
| Muted text | 6.76:1 | AA |
| Accent | 8.00:1 | AAA |
| Destructive | 6.94:1 | AA |
| Text on background | 19.52:1 | AAA |
| Text on card | 19.52:1 | AAA |
| Primary button | 7.64:1 | AAA |
| Secondary button | 8.18:1 | AAA |
| Muted text | 7.63:1 | AAA |
| Accent | 7.91:1 | AAA |
| Destructive | 4.11:1 | AA Large |
Paste this into your globals.css to use 2nd in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.991 0.004 341.113);
--foreground: oklch(0.085 0.016 341.091);
--muted: oklch(0.905 0.006 341.16);
--muted-foreground: oklch(0.409 0.025 342.39);
--popover: oklch(0.991 0.004 341.113);
--popover-foreground: oklch(0.085 0.016 341.091);
--card: oklch(0.991 0.004 341.113);
--card-foreground: oklch(0.085 0.016 341.091);
--border: oklch(0.954 0.002 341.052);
--input: oklch(0.954 0.002 341.052);
--primary: oklch(0.896 0.029 341.747);
--primary-foreground: oklch(0.379 0.082 345.717);
--secondary: oklch(0.903 0.011 341.307);
--secondary-foreground: oklch(0.387 0.033 342.914);
--accent: oklch(0.817 0.031 341.873);
--accent-foreground: oklch(0.29 0.033 343.496);
--destructive: oklch(0.382 0.136 31.614);
--destructive-foreground: oklch(0.868 0.062 28.472);
--ring: oklch(0.896 0.029 341.747);
--chart-1: oklch(0.896 0.029 341.747);
--chart-2: oklch(0.903 0.011 341.307);
--chart-3: oklch(0.817 0.031 341.873);
--chart-4: oklch(0.928 0.009 341.227);
--chart-5: oklch(0.895 0.031 341.81);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.111 0.011 341.058);
--foreground: oklch(0.983 0.003 341.095);
--muted: oklch(0.234 0.008 341.797);
--muted-foreground: oklch(0.756 0.021 341.662);
--popover: oklch(0.111 0.011 341.058);
--popover-foreground: oklch(0.983 0.003 341.095);
--card: oklch(0.111 0.011 341.058);
--card-foreground: oklch(0.983 0.003 341.095);
--border: oklch(0.214 0.004 341.435);
--input: oklch(0.214 0.004 341.435);
--primary: oklch(0.896 0.029 341.747);
--primary-foreground: oklch(0.379 0.082 345.717);
--secondary: oklch(0.266 0.01 341.849);
--secondary-foreground: oklch(0.8 0.012 341.369);
--accent: oklch(0.321 0.03 343.072);
--accent-foreground: oklch(0.844 0.021 341.587);
--destructive: oklch(0.616 0.224 31.517);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.896 0.029 341.747);
--chart-1: oklch(0.896 0.029 341.747);
--chart-2: oklch(0.266 0.01 341.849);
--chart-3: oklch(0.321 0.03 343.072);
--chart-4: oklch(0.296 0.011 341.888);
--chart-5: oklch(0.895 0.031 341.81);
}