Slope is a shadcn/ui theme built around a vivid yellow primary color (#f9af1a) with vivid violet accents (#af1af9). The light mode uses a neutral background (#fcfbf8). Dark mode keeps the vivid yellow primary (#f9af1a) on a yellow-tinted background (#0e0c06).
| Token | Light | Dark |
|---|---|---|
| Background | #fcfbf8snow | #0e0c06black |
| Foreground | #090602black | #fdfdfcwhite |
| Card | #fbf8f4floralwhite | #120e08black |
| Card foreground | #040301black | #ffffffwhite |
| Popover | #fcfbf8snow | #0e0c06black |
| Popover foreground | #090602black | #fdfdfcwhite |
| Primary | #f9af1aorange | #f9af1aorange |
| Primary foreground | #462f02saddlebrown | #462f02saddlebrown |
| Secondary | #1af9afmediumspringgreen | #1af9afmediumspringgreen |
| Secondary foreground | #02462fdarkgreen | #02462fdarkgreen |
| Muted | #eef2f0whitesmoke | #0d1110black |
| Muted foreground | #3e514adarkslategray | #aec1bbsilver |
| Accent | #af1af9blueviolet | #af1af9blueviolet |
| Accent foreground | #ffffffwhite | #ffffffwhite |
| Destructive | #d7550fchocolate | #f06e28chocolate |
| Destructive foreground | #ffffffwhite | #000000black |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #f9af1aorange | #f9af1aorange |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.49:1 | AAA |
| Text on card | 19.51:1 | AAA |
| Primary button | 6.69:1 | AA |
| Secondary button | 7.93:1 | AAA |
| Muted text | 7.47:1 | AAA |
| Accent | 4.83:1 | AA |
| Destructive | 4.05:1 | AA Large |
| Text on background | 19.24:1 | AAA |
| Text on card | 19.20:1 | AAA |
| Primary button | 6.69:1 | AA |
| Secondary button | 7.93:1 | AAA |
| Muted text | 10.07:1 | AAA |
| Accent | 4.83:1 | AA |
| Destructive | 6.98:1 | AA |
Paste this into your globals.css to use Slope in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.987 0.004 84.562);
--foreground: oklch(0.125 0.018 91.867);
--muted: oklch(0.957 0.004 174.458);
--muted-foreground: oklch(0.416 0.025 172.671);
--popover: oklch(0.987 0.004 84.562);
--popover-foreground: oklch(0.125 0.018 91.867);
--card: oklch(0.981 0.006 84.568);
--card-foreground: oklch(0.099 0.014 91.867);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.804 0.163 77.002);
--primary-foreground: oklch(0.324 0.066 78.901);
--secondary: oklch(0.87 0.187 162.393);
--secondary-foreground: oklch(0.348 0.074 163.445);
--accent: oklch(0.589 0.288 309.204);
--accent-foreground: oklch(1 0 180);
--destructive: oklch(0.612 0.178 42.384);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.804 0.163 77.002);
--chart-1: oklch(0.804 0.163 77.002);
--chart-2: oklch(0.87 0.187 162.393);
--chart-3: oklch(0.589 0.288 309.204);
--chart-4: oklch(0.874 0.181 163.598);
--chart-5: oklch(0.81 0.166 76.494);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.153 0.013 86.336);
--foreground: oklch(0.993 0.001 84.554);
--muted: oklch(0.174 0.006 173.478);
--muted-foreground: oklch(0.795 0.022 173.754);
--popover: oklch(0.153 0.013 86.336);
--popover-foreground: oklch(0.993 0.001 84.554);
--card: oklch(0.167 0.014 84.851);
--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.804 0.163 77.002);
--primary-foreground: oklch(0.324 0.066 78.901);
--secondary: oklch(0.87 0.187 162.393);
--secondary-foreground: oklch(0.348 0.074 163.445);
--accent: oklch(0.589 0.288 309.204);
--accent-foreground: oklch(1 0 180);
--destructive: oklch(0.686 0.178 44.851);
--destructive-foreground: oklch(0 0 0);
--ring: oklch(0.804 0.163 77.002);
--chart-1: oklch(0.804 0.163 77.002);
--chart-2: oklch(0.87 0.187 162.393);
--chart-3: oklch(0.589 0.288 309.204);
--chart-4: oklch(0.874 0.181 163.598);
--chart-5: oklch(0.81 0.166 76.494);
}