Serpentine is a shadcn/ui theme built around a neutral gray primary color (#6c7a72) with neutral gray accents (#7a726c). The light mode uses a neutral background (#ffffff). Dark mode keeps the neutral gray primary (#6c7a72) on a neutral background (#020402).
| Token | Light | Dark |
|---|---|---|
| Background | #ffffffwhite | #020402black |
| Foreground | #031209black | #f5faf7whitesmoke |
| Card | #fcfcfcsnow | #030705black |
| Card foreground | #020d07black | #f8fbfamintcream |
| Popover | #ffffffwhite | #020402black |
| Popover foreground | #031209black | #f5faf7whitesmoke |
| Primary | #6c7a72dimgray | #6c7a72dimgray |
| Primary foreground | #ffffffwhite | #ffffffwhite |
| Secondary | #726c7adimgray | #726c7adimgray |
| Secondary foreground | #ffffffwhite | #ffffffwhite |
| Muted | #efeaf5lavender | #0f0a15black |
| Muted foreground | #443f4bdarkslategray | #b9b4c0silver |
| Accent | #7a726cdimgray | #7a726cdimgray |
| Accent foreground | #ffffffwhite | #ffffffwhite |
| Destructive | #c40e0efirebrick | #ee1111red |
| Destructive foreground | #ffffffwhite | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #6c7a72dimgray | #6c7a72dimgray |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.18:1 | AAA |
| Text on card | 19.32:1 | AAA |
| Primary button | 4.52:1 | AA |
| Secondary button | 5.08:1 | AA |
| Muted text | 8.64:1 | AAA |
| Accent | 4.73:1 | AA |
| Destructive | 6.17:1 | AA |
| Text on background | 19.53:1 | AAA |
| Text on card | 19.44:1 | AAA |
| Primary button | 4.52:1 | AA |
| Secondary button | 5.08:1 | AA |
| Muted text | 9.64:1 | AAA |
| Accent | 4.73:1 | AA |
| Destructive | 4.43:1 | AA Large |
Paste this into your globals.css to use Serpentine in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(1 0 180);
--foreground: oklch(0.162 0.029 159.485);
--muted: oklch(0.945 0.015 305.527);
--muted-foreground: oklch(0.377 0.022 304.964);
--popover: oklch(1 0 180);
--popover-foreground: oklch(0.162 0.029 159.485);
--card: oklch(0.992 0 161.565);
--card-foreground: oklch(0.144 0.025 161.214);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.564 0.02 160.915);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.541 0.022 305.192);
--secondary-foreground: oklch(1 0 180);
--accent: oklch(0.557 0.013 59.954);
--accent-foreground: oklch(1 0 180);
--destructive: oklch(0.518 0.207 28.627);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.564 0.02 160.915);
--chart-1: oklch(0.564 0.02 160.915);
--chart-2: oklch(0.541 0.022 305.192);
--chart-3: oklch(0.557 0.013 59.954);
--chart-4: oklch(0.566 0.024 305.188);
--chart-5: oklch(0.57 0.03 160.467);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.096 0.01 161.794);
--foreground: oklch(0.98 0.006 161.657);
--muted: oklch(0.156 0.023 303.695);
--muted-foreground: oklch(0.778 0.018 305.426);
--popover: oklch(0.096 0.01 161.794);
--popover-foreground: oklch(0.98 0.006 161.657);
--card: oklch(0.121 0.012 161.794);
--card-foreground: oklch(0.987 0.004 161.708);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.564 0.02 160.915);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.541 0.022 305.192);
--secondary-foreground: oklch(1 0 180);
--accent: oklch(0.557 0.013 59.954);
--accent-foreground: oklch(1 0 180);
--destructive: oklch(0.601 0.241 28.733);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.564 0.02 160.915);
--chart-1: oklch(0.564 0.02 160.915);
--chart-2: oklch(0.541 0.022 305.192);
--chart-3: oklch(0.557 0.013 59.954);
--chart-4: oklch(0.566 0.024 305.188);
--chart-5: oklch(0.57 0.03 160.467);
}