Rope is a shadcn/ui theme built around a muted teal primary color (#4d8075) with muted light teal accents (#d5dddb). The light mode uses a neutral background (#ffffff). Dark mode keeps the muted teal primary (#4d8075) on a teal-tinted background (#040b0a).
| Token | Light | Dark |
|---|---|---|
| Background | #ffffffwhite | #040b0ablack |
| Foreground | #05100dblack | #ffffffwhite |
| Card | #ffffffwhite | #040b0ablack |
| Card foreground | #05100dblack | #ffffffwhite |
| Popover | #ffffffwhite | #040b0ablack |
| Popover foreground | #05100dblack | #ffffffwhite |
| Primary | #4d8075dimgray | #4d8075dimgray |
| Primary foreground | #ffffffwhite | #ffffffwhite |
| Secondary | #e7e9e8lavender | #2d3936darkslategray |
| Secondary foreground | #4d5150darkslategray | #c6d2cflightgrey |
| Muted | #ddeeeblavender | #11221fblack |
| Muted foreground | #595f5ddimgray | #a0a6a5darkgray |
| Accent | #d5dddbgainsboro | #3c5852darkslategray |
| Accent foreground | #394744darkslategray | #dee8e6gainsboro |
| Destructive | #a40a0adarkred | #f21818red |
| Destructive foreground | #fde2e2mistyrose | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #4d8075dimgray | #4d8075dimgray |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.33:1 | AAA |
| Text on card | 19.33:1 | AAA |
| Primary button | 4.53:1 | AA |
| Secondary button | 6.59:1 | AA |
| Muted text | 5.44:1 | AA |
| Accent | 7.03:1 | AAA |
| Destructive | 6.54:1 | AA |
| Text on background | 19.83:1 | AAA |
| Text on card | 19.83:1 | AAA |
| Primary button | 4.53:1 | AA |
| Secondary button | 7.74:1 | AAA |
| Muted text | 6.65:1 | AA |
| Accent | 6.19:1 | AA |
| Destructive | 4.28:1 | AA Large |
Paste this into your globals.css to use Rope in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(1 0 180);
--foreground: oklch(0.159 0.018 180.897);
--muted: oklch(0.936 0.019 182.609);
--muted-foreground: oklch(0.479 0.007 182.774);
--popover: oklch(1 0 180);
--popover-foreground: oklch(0.159 0.018 180.897);
--card: oklch(1 0 180);
--card-foreground: oklch(0.159 0.018 180.897);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.559 0.057 179.92);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.932 0.002 183.14);
--secondary-foreground: oklch(0.432 0.006 182.783);
--accent: oklch(0.89 0.009 182.896);
--accent-foreground: oklch(0.384 0.019 181.796);
--destructive: oklch(0.455 0.181 28.62);
--destructive-foreground: oklch(0.935 0.03 17.701);
--ring: oklch(0.559 0.057 179.92);
--chart-1: oklch(0.559 0.057 179.92);
--chart-2: oklch(0.932 0.002 183.14);
--chart-3: oklch(0.89 0.009 182.896);
--chart-4: oklch(0.955 0.001 183.155);
--chart-5: oklch(0.566 0.063 179.551);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.141 0.014 182.727);
--foreground: oklch(1 0 180);
--muted: oklch(0.237 0.025 179.836);
--muted-foreground: oklch(0.72 0.006 182.938);
--popover: oklch(0.141 0.014 182.727);
--popover-foreground: oklch(1 0 180);
--card: oklch(0.141 0.014 182.727);
--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.559 0.057 179.92);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.332 0.015 181.854);
--secondary-foreground: oklch(0.853 0.013 182.779);
--accent: oklch(0.436 0.035 180.776);
--accent-foreground: oklch(0.923 0.012 182.835);
--destructive: oklch(0.609 0.241 28.45);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.559 0.057 179.92);
--chart-1: oklch(0.559 0.057 179.92);
--chart-2: oklch(0.332 0.015 181.854);
--chart-3: oklch(0.436 0.035 180.776);
--chart-4: oklch(0.363 0.017 181.816);
--chart-5: oklch(0.566 0.063 179.551);
}