4th is a shadcn/ui theme built around a pink primary color (#be6a9f) with red accents (#be6a75). The light mode uses a neutral background (#fefbfd). Dark mode keeps the pink primary (#be6a9f) on a pink-tinted background (#0b0508).
| Token | Light | Dark |
|---|---|---|
| Background | #fefbfdsnow | #0b0508black |
| Foreground | #0d0309black | #ffffffwhite |
| Card | #fcf8fasnow | #0e060bblack |
| Card foreground | #080206black | #ffffffwhite |
| Popover | #fcf8fasnow | #0e060bblack |
| Popover foreground | #080206black | #ffffffwhite |
| Primary | #be6a9fpalevioletred | #be6a9fpalevioletred |
| Primary foreground | #000000black | #000000black |
| Secondary | #b36abemediumorchid | #b36abemediumorchid |
| Secondary foreground | #000000black | #000000black |
| Muted | #e8dceagainsboro | #211523black |
| Muted foreground | #5b575bdimgray | #a7a4a8darkgray |
| Accent | #be6a75indianred | #be6a75indianred |
| Accent foreground | #000000black | #000000black |
| Destructive | #a8370bfirebrick | #f04f0forangered |
| Destructive foreground | #ffffffwhite | #ffffffwhite |
| Border | #eae6e9lavender | #2a2227darkslategray |
| Input | #eae6e9lavender | #2a2227darkslategray |
| Ring | #be6a9fpalevioletred | #be6a9fpalevioletred |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.77:1 | AAA |
| Text on card | 19.49:1 | AAA |
| Primary button | 5.74:1 | AA |
| Secondary button | 5.71:1 | AA |
| Muted text | 5.35:1 | AA |
| Accent | 5.50:1 | AA |
| Destructive | 6.53:1 | AA |
| Text on background | 20.23:1 | AAA |
| Text on card | 19.98:1 | AAA |
| Primary button | 5.74:1 | AA |
| Secondary button | 5.71:1 | AA |
| Muted text | 7.12:1 | AAA |
| Accent | 5.50:1 | AA |
| Destructive | 3.61:1 | AA Large |
Paste this into your globals.css to use 4th in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.991 0.003 338.785);
--foreground: oklch(0.121 0.029 339.51);
--muted: oklch(0.908 0.024 321.665);
--muted-foreground: oklch(0.463 0.007 321.634);
--popover: oklch(0.982 0.006 338.851);
--popover-foreground: oklch(0.106 0.025 339.032);
--card: oklch(0.982 0.006 338.851);
--card-foreground: oklch(0.106 0.025 339.032);
--border: oklch(0.929 0.006 338.864);
--input: oklch(0.929 0.006 338.864);
--primary: oklch(0.635 0.125 342.615);
--primary-foreground: oklch(0 0 0);
--secondary: oklch(0.635 0.144 322.096);
--secondary-foreground: oklch(0 0 0);
--accent: oklch(0.622 0.107 12.136);
--accent-foreground: oklch(0 0 0);
--destructive: oklch(0.497 0.156 38.206);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.635 0.125 342.615);
--chart-1: oklch(0.635 0.125 342.615);
--chart-2: oklch(0.635 0.144 322.096);
--chart-3: oklch(0.622 0.107 12.136);
--chart-4: oklch(0.66 0.133 322.062);
--chart-5: oklch(0.635 0.134 342.906);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.126 0.017 338.94);
--foreground: oklch(1 0 180);
--muted: oklch(0.218 0.034 321.976);
--muted-foreground: oklch(0.722 0.006 321.616);
--popover: oklch(0.139 0.019 340.33);
--popover-foreground: oklch(1 0 180);
--card: oklch(0.139 0.019 340.33);
--card-foreground: oklch(1 0 180);
--border: oklch(0.264 0.014 339.848);
--input: oklch(0.264 0.014 339.848);
--primary: oklch(0.635 0.125 342.615);
--primary-foreground: oklch(0 0 0);
--secondary: oklch(0.635 0.144 322.096);
--secondary-foreground: oklch(0 0 0);
--accent: oklch(0.622 0.107 12.136);
--accent-foreground: oklch(0 0 0);
--destructive: oklch(0.645 0.207 37.69);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.635 0.125 342.615);
--chart-1: oklch(0.635 0.125 342.615);
--chart-2: oklch(0.635 0.144 322.096);
--chart-3: oklch(0.622 0.107 12.136);
--chart-4: oklch(0.66 0.133 322.062);
--chart-5: oklch(0.635 0.134 342.906);
}