Castanet is a shadcn/ui theme built around a muted deep pink primary color (#25181c) with muted deep red accents (#251b18). The light mode uses a neutral background (#fefbfc). Dark mode keeps the muted deep pink primary (#25181c) on a neutral background (#080204).
| Token | Light | Dark |
|---|---|---|
| Background | #fefbfcsnow | #080204black |
| Foreground | #080204black | #ffffffwhite |
| Card | #fefbfcsnow | #080204black |
| Card foreground | #080204black | #ffffffwhite |
| Popover | #fefbfcsnow | #080204black |
| Popover foreground | #080204black | #ffffffwhite |
| Primary | #25181cblack | #25181cblack |
| Primary foreground | #c7a9b2silver | #c7a9b2silver |
| Secondary | #251822black | #251822black |
| Secondary foreground | #c7a9c1silver | #c7a9c1silver |
| Muted | #f1eaefwhitesmoke | #150e14black |
| Muted foreground | #6a5c68dimgray | #a395a0darkgray |
| Accent | #251b18black | #251b18black |
| Accent foreground | #c7afa9silver | #c7afa9silver |
| Destructive | #611b05maroon | #e9400corangered |
| Destructive foreground | #fab49elightpink | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #25181cblack | #25181cblack |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.99:1 | AAA |
| Text on card | 19.99:1 | AAA |
| Primary button | 7.93:1 | AAA |
| Secondary button | 7.99:1 | AAA |
| Muted text | 5.29:1 | AA |
| Accent | 8.12:1 | AAA |
| Destructive | 7.27:1 | AAA |
| Text on background | 20.53:1 | AAA |
| Text on card | 20.53:1 | AAA |
| Primary button | 7.93:1 | AAA |
| Secondary button | 7.99:1 | AAA |
| Muted text | 6.65:1 | AA |
| Accent | 8.12:1 | AAA |
| Destructive | 4.05:1 | AA Large |
Paste this into your globals.css to use Castanet in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.99 0.003 356.759);
--foreground: oklch(0.104 0.021 356.335);
--muted: oklch(0.943 0.011 332.175);
--muted-foreground: oklch(0.494 0.025 332.729);
--popover: oklch(0.99 0.003 356.759);
--popover-foreground: oklch(0.104 0.021 356.335);
--card: oklch(0.99 0.003 356.759);
--card-foreground: oklch(0.104 0.021 356.335);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.228 0.022 359.276);
--primary-foreground: oklch(0.763 0.037 358.012);
--secondary: oklch(0.231 0.027 333.674);
--secondary-foreground: oklch(0.767 0.048 332.898);
--accent: oklch(0.233 0.017 34.409);
--accent-foreground: oklch(0.772 0.029 34.311);
--destructive: oklch(0.333 0.106 36.381);
--destructive-foreground: oklch(0.829 0.088 37.625);
--ring: oklch(0.228 0.022 359.276);
--chart-1: oklch(0.228 0.022 359.276);
--chart-2: oklch(0.231 0.027 333.674);
--chart-3: oklch(0.233 0.017 34.409);
--chart-4: oklch(0.261 0.033 333.782);
--chart-5: oklch(0.227 0.025 359.668);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.106 0.017 356.407);
--foreground: oklch(1 0 180);
--muted: oklch(0.177 0.016 333.313);
--muted-foreground: oklch(0.684 0.023 332.492);
--popover: oklch(0.106 0.017 356.407);
--popover-foreground: oklch(1 0 180);
--card: oklch(0.106 0.017 356.407);
--card-foreground: oklch(1 0 180);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.228 0.022 359.276);
--primary-foreground: oklch(0.763 0.037 358.012);
--secondary: oklch(0.231 0.027 333.674);
--secondary-foreground: oklch(0.767 0.048 332.898);
--accent: oklch(0.233 0.017 34.409);
--accent-foreground: oklch(0.772 0.029 34.311);
--destructive: oklch(0.618 0.212 34.9);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.228 0.022 359.276);
--chart-1: oklch(0.228 0.022 359.276);
--chart-2: oklch(0.231 0.027 333.674);
--chart-3: oklch(0.233 0.017 34.409);
--chart-4: oklch(0.261 0.033 333.782);
--chart-5: oklch(0.227 0.025 359.668);
}