Carpeting is a shadcn/ui theme built around a green primary color (#93c18a) with muted light green accents (#cbd4c9). The light mode uses a neutral background (#f8fdf6). Dark mode keeps the green primary (#93c18a) on a neutral background (#020401).
| Token | Light | Dark |
|---|---|---|
| Background | #f8fdf6mintcream | #020401black |
| Foreground | #030802black | #f9fbf9mintcream |
| Card | #f8fdf6mintcream | #020401black |
| Card foreground | #030802black | #f9fbf9mintcream |
| Popover | #f8fdf6mintcream | #020401black |
| Popover foreground | #030802black | #f9fbf9mintcream |
| Primary | #93c18adarkseagreen | #93c18adarkseagreen |
| Primary foreground | #0a1109black | #0a1109black |
| Secondary | #cbd4c9lightgrey | #232a22darkslategray |
| Secondary foreground | #323b30darkslategray | #bbc6b8silver |
| Muted | #f1f3f1whitesmoke | #0c0e0cblack |
| Muted foreground | #505a4edarkslategray | #a7b1a5darkgray |
| Accent | #cbd4c9lightgrey | #232a22darkslategray |
| Accent foreground | #323b30darkslategray | #bbc6b8silver |
| Destructive | #a11908firebrick | #f6523ctomato |
| Destructive foreground | #fde1ddmistyrose | #000000black |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #93c18adarkseagreen | #93c18adarkseagreen |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.63:1 | AAA |
| Text on card | 19.63:1 | AAA |
| Primary button | 9.36:1 | AAA |
| Secondary button | 7.64:1 | AAA |
| Muted text | 6.48:1 | AA |
| Accent | 7.64:1 | AAA |
| Destructive | 6.39:1 | AA |
| Text on background | 19.80:1 | AAA |
| Text on card | 19.80:1 | AAA |
| Primary button | 9.36:1 | AAA |
| Secondary button | 8.28:1 | AAA |
| Muted text | 8.74:1 | AAA |
| Accent | 8.28:1 | AAA |
| Destructive | 6.17:1 | AA |
Paste this into your globals.css to use Carpeting in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.989 0.011 140.514);
--foreground: oklch(0.123 0.022 138.831);
--muted: oklch(0.963 0.004 140.526);
--muted-foreground: oklch(0.455 0.022 140.456);
--popover: oklch(0.989 0.011 140.514);
--popover-foreground: oklch(0.123 0.022 138.831);
--card: oklch(0.989 0.011 140.514);
--card-foreground: oklch(0.123 0.022 138.831);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.765 0.091 140.367);
--primary-foreground: oklch(0.166 0.019 140.236);
--secondary: oklch(0.86 0.017 140.5);
--secondary-foreground: oklch(0.341 0.024 140.426);
--accent: oklch(0.86 0.017 140.5);
--accent-foreground: oklch(0.341 0.024 140.426);
--destructive: oklch(0.456 0.172 30.939);
--destructive-foreground: oklch(0.931 0.032 26.707);
--ring: oklch(0.765 0.091 140.367);
--chart-1: oklch(0.765 0.091 140.367);
--chart-2: oklch(0.86 0.017 140.5);
--chart-3: oklch(0.86 0.017 140.5);
--chart-4: oklch(0.882 0.015 140.506);
--chart-5: oklch(0.769 0.1 140.358);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.098 0.016 138.953);
--foreground: oklch(0.986 0.002 140.528);
--muted: oklch(0.16 0.006 140.477);
--muted-foreground: oklch(0.748 0.02 140.49);
--popover: oklch(0.098 0.016 138.953);
--popover-foreground: oklch(0.986 0.002 140.528);
--card: oklch(0.098 0.016 138.953);
--card-foreground: oklch(0.986 0.002 140.528);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.765 0.091 140.367);
--primary-foreground: oklch(0.166 0.019 140.236);
--secondary: oklch(0.277 0.018 140.433);
--secondary-foreground: oklch(0.814 0.023 140.488);
--accent: oklch(0.277 0.018 140.433);
--accent-foreground: oklch(0.814 0.023 140.488);
--destructive: oklch(0.661 0.204 30.648);
--destructive-foreground: oklch(0 0 0);
--ring: oklch(0.765 0.091 140.367);
--chart-1: oklch(0.765 0.091 140.367);
--chart-2: oklch(0.277 0.018 140.433);
--chart-3: oklch(0.277 0.018 140.433);
--chart-4: oklch(0.309 0.021 140.429);
--chart-5: oklch(0.769 0.1 140.358);
}