Replacement is a shadcn/ui theme built around a muted light green primary color (#d5d8d0) with muted light green accents (#d1d8d0). The light mode uses a neutral background (#fdfdfc). Dark mode keeps the muted light green primary (#d5d8d0) on a green-tinted background (#0c1005).
| Token | Light | Dark |
|---|---|---|
| Background | #fdfdfcwhite | #0c1005black |
| Foreground | #0a0d03black | #f8f9f5whitesmoke |
| Card | #fdfdfcwhite | #0c1005black |
| Card foreground | #0a0d03black | #f8f9f5whitesmoke |
| Popover | #fdfdfcwhite | #0c1005black |
| Popover foreground | #0a0d03black | #f8f9f5whitesmoke |
| Primary | #d5d8d0lightgrey | #d5d8d0lightgrey |
| Primary foreground | #3d4035darkslategray | #3d4035darkslategray |
| Secondary | #d8d6d0lightgrey | #d8d6d0lightgrey |
| Secondary foreground | #403e35darkslategray | #403e35darkslategray |
| Muted | #ddddd9gainsboro | #262522darkslategray |
| Muted foreground | #4f4c40darkslategray | #bfbcb0silver |
| Accent | #d1d8d0lightgrey | #d1d8d0lightgrey |
| Accent foreground | #374035darkslategray | #374035darkslategray |
| Destructive | #9f0704darkred | #f40a06red |
| Destructive foreground | #fed8d7mistyrose | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #d5d8d0lightgrey | #d5d8d0lightgrey |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.27:1 | AAA |
| Text on card | 19.27:1 | AAA |
| Primary button | 7.31:1 | AAA |
| Secondary button | 7.37:1 | AAA |
| Muted text | 6.31:1 | AA |
| Accent | 7.39:1 | AAA |
| Destructive | 6.38:1 | AA |
| Text on background | 18.23:1 | AAA |
| Text on card | 18.23:1 | AAA |
| Primary button | 7.31:1 | AAA |
| Secondary button | 7.37:1 | AAA |
| Muted text | 8.05:1 | AAA |
| Accent | 7.39:1 | AAA |
| Destructive | 4.30:1 | AA Large |
Paste this into your globals.css to use Replacement in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.994 0.002 120.807);
--foreground: oklch(0.15 0.026 121.022);
--muted: oklch(0.896 0.005 96.233);
--muted-foreground: oklch(0.415 0.019 96.682);
--popover: oklch(0.994 0.002 120.807);
--popover-foreground: oklch(0.15 0.026 121.022);
--card: oklch(0.994 0.002 120.807);
--card-foreground: oklch(0.15 0.026 121.022);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.877 0.011 120.973);
--primary-foreground: oklch(0.365 0.018 121.599);
--secondary: oklch(0.876 0.009 96.29);
--secondary-foreground: oklch(0.363 0.015 96.627);
--accent: oklch(0.874 0.013 139.978);
--accent-foreground: oklch(0.36 0.021 139.941);
--destructive: oklch(0.444 0.179 29.174);
--destructive-foreground: oklch(0.914 0.043 19.113);
--ring: oklch(0.877 0.011 120.973);
--chart-1: oklch(0.877 0.011 120.973);
--chart-2: oklch(0.876 0.009 96.29);
--chart-3: oklch(0.874 0.013 139.978);
--chart-4: oklch(0.898 0.007 96.266);
--chart-5: oklch(0.879 0.014 121.04);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.163 0.023 122.122);
--foreground: oklch(0.981 0.005 120.855);
--muted: oklch(0.264 0.006 96.459);
--muted-foreground: oklch(0.794 0.016 96.416);
--popover: oklch(0.163 0.023 122.122);
--popover-foreground: oklch(0.981 0.005 120.855);
--card: oklch(0.163 0.023 122.122);
--card-foreground: oklch(0.981 0.005 120.855);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.877 0.011 120.973);
--primary-foreground: oklch(0.365 0.018 121.599);
--secondary: oklch(0.876 0.009 96.29);
--secondary-foreground: oklch(0.363 0.015 96.627);
--accent: oklch(0.874 0.013 139.978);
--accent-foreground: oklch(0.36 0.021 139.941);
--destructive: oklch(0.609 0.247 29.197);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.877 0.011 120.973);
--chart-1: oklch(0.877 0.011 120.973);
--chart-2: oklch(0.876 0.009 96.29);
--chart-3: oklch(0.874 0.013 139.978);
--chart-4: oklch(0.898 0.007 96.266);
--chart-5: oklch(0.879 0.014 121.04);
}