Cylindrical is a shadcn/ui theme built around a muted red primary color (#c69f9f) with muted light red accents (#d6bdbd). The light mode uses a neutral background (#ffffff). Dark mode keeps the muted red primary (#c69f9f) on a red-tinted background (#0e0606).
| Token | Light | Dark |
|---|---|---|
| Background | #ffffffwhite | #0e0606black |
| Foreground | #040101black | #fbf9f9snow |
| Card | #ffffffwhite | #0e0606black |
| Card foreground | #040101black | #fbf9f9snow |
| Popover | #ffffffwhite | #0e0606black |
| Popover foreground | #040101black | #fbf9f9snow |
| Primary | #c69f9frosybrown | #c69f9frosybrown |
| Primary foreground | #201313black | #201313black |
| Secondary | #e5dcdcgainsboro | #282525darkslategray |
| Secondary foreground | #533c3cdarkslategray | #c2bdbdsilver |
| Muted | #f1e4e4mistyrose | #1b0e0eblack |
| Muted foreground | #514d4ddarkslategray | #b2aeaedarkgray |
| Accent | #d6bdbdsilver | #433737darkslategray |
| Accent foreground | #3c2525darkslategray | #dad2d2lightgrey |
| Destructive | #652401maroon | #f75802orangered |
| Destructive foreground | #febd9aburlywood | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #c69f9frosybrown | #c69f9frosybrown |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 20.79:1 | AAA |
| Text on card | 20.79:1 | AAA |
| Primary button | 7.59:1 | AAA |
| Secondary button | 7.48:1 | AAA |
| Muted text | 6.74:1 | AA |
| Accent | 7.98:1 | AAA |
| Destructive | 7.17:1 | AAA |
| Text on background | 19.10:1 | AAA |
| Text on card | 19.10:1 | AAA |
| Primary button | 7.59:1 | AAA |
| Secondary button | 8.21:1 | AAA |
| Muted text | 8.56:1 | AAA |
| Accent | 7.66:1 | AAA |
| Destructive | 3.29:1 | AA Large |
Paste this into your globals.css to use Cylindrical in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(1 0 180);
--foreground: oklch(0.083 0.013 20.305);
--muted: oklch(0.93 0.014 17.405);
--muted-foreground: oklch(0.424 0.006 17.405);
--popover: oklch(1 0 180);
--popover-foreground: oklch(0.083 0.013 20.305);
--card: oklch(1 0 180);
--card-foreground: oklch(0.083 0.013 20.305);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.738 0.047 18.282);
--primary-foreground: oklch(0.204 0.022 19.154);
--secondary: oklch(0.901 0.011 17.356);
--secondary-foreground: oklch(0.381 0.032 18.677);
--accent: oklch(0.819 0.029 17.767);
--accent-foreground: oklch(0.293 0.036 19.427);
--destructive: oklch(0.353 0.103 43.401);
--destructive-foreground: oklch(0.85 0.089 49.423);
--ring: oklch(0.738 0.047 18.282);
--chart-1: oklch(0.738 0.047 18.282);
--chart-2: oklch(0.901 0.011 17.356);
--chart-3: oklch(0.819 0.029 17.767);
--chart-4: oklch(0.926 0.008 17.301);
--chart-5: oklch(0.735 0.053 18.434);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.136 0.017 19.524);
--foreground: oklch(0.983 0.002 17.193);
--muted: oklch(0.182 0.022 19.391);
--muted-foreground: oklch(0.753 0.005 17.277);
--popover: oklch(0.136 0.017 19.524);
--popover-foreground: oklch(0.983 0.002 17.193);
--card: oklch(0.136 0.017 19.524);
--card-foreground: oklch(0.983 0.002 17.193);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.738 0.047 18.282);
--primary-foreground: oklch(0.204 0.022 19.154);
--secondary: oklch(0.267 0.005 17.444);
--secondary-foreground: oklch(0.802 0.006 17.276);
--accent: oklch(0.35 0.017 18.016);
--accent-foreground: oklch(0.871 0.009 17.33);
--destructive: oklch(0.667 0.208 40.232);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.738 0.047 18.282);
--chart-1: oklch(0.738 0.047 18.282);
--chart-2: oklch(0.267 0.005 17.444);
--chart-3: oklch(0.35 0.017 18.016);
--chart-4: oklch(0.297 0.005 17.458);
--chart-5: oklch(0.735 0.053 18.434);
}