Runny is a shadcn/ui theme built around a neutral gray primary color (#5d5657) with muted light red accents (#dcd0d3). The light mode uses a neutral background (#fefbfc). Dark mode keeps the neutral gray primary (#5d5657) on a neutral background (#000000).
| Token | Light | Dark |
|---|---|---|
| Background | #fefbfcsnow | #000000black |
| Foreground | #140608black | #ffffffwhite |
| Card | #fefbfcsnow | #000000black |
| Card foreground | #140608black | #ffffffwhite |
| Popover | #fefbfcsnow | #000000black |
| Popover foreground | #140608black | #ffffffwhite |
| Primary | #5d5657dimgray | #5d5657dimgray |
| Primary foreground | #f3f2f2whitesmoke | #f3f2f2whitesmoke |
| Secondary | #dcd0d3lightgrey | #1c1718black |
| Secondary foreground | #463538darkslategray | #baabaedarkgray |
| Muted | #ece4e6linen | #1b1315black |
| Muted foreground | #5b4d50dimgray | #b2a4a7darkgray |
| Accent | #dcd0d3lightgrey | #1c1718black |
| Accent foreground | #463538darkslategray | #baabaedarkgray |
| Destructive | #d30303red | #fb0e0ered |
| Destructive foreground | #ffffffwhite | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #5d5657dimgray | #5d5657dimgray |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.29:1 | AAA |
| Text on card | 19.29:1 | AAA |
| Primary button | 6.43:1 | AA |
| Secondary button | 7.68:1 | AAA |
| Muted text | 6.42:1 | AA |
| Accent | 7.68:1 | AAA |
| Destructive | 5.54:1 | AA |
| Text on background | 21.00:1 | AAA |
| Text on card | 21.00:1 | AAA |
| Primary button | 6.43:1 | AA |
| Secondary button | 8.03:1 | AAA |
| Muted text | 7.61:1 | AAA |
| Accent | 8.03:1 | AAA |
| Destructive | 4.05:1 | AA Large |
Paste this into your globals.css to use Runny in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.991 0.002 4.377);
--foreground: oklch(0.146 0.028 7.317);
--muted: oklch(0.926 0.008 4.545);
--muted-foreground: oklch(0.436 0.018 5.412);
--popover: oklch(0.991 0.002 4.377);
--popover-foreground: oklch(0.146 0.028 7.317);
--card: oklch(0.991 0.002 4.377);
--card-foreground: oklch(0.146 0.028 7.317);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.459 0.01 4.857);
--primary-foreground: oklch(0.961 0.001 4.343);
--secondary: oklch(0.869 0.013 4.705);
--secondary-foreground: oklch(0.348 0.025 6.184);
--accent: oklch(0.869 0.013 4.705);
--accent-foreground: oklch(0.348 0.025 6.184);
--destructive: oklch(0.545 0.222 29.112);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.459 0.01 4.857);
--chart-1: oklch(0.459 0.01 4.857);
--chart-2: oklch(0.869 0.013 4.705);
--chart-3: oklch(0.869 0.013 4.705);
--chart-4: oklch(0.894 0.01 4.62);
--chart-5: oklch(0.455 0.017 5.278);
}
.dark {
--radius: 0.5rem;
--background: oklch(0 0 0);
--foreground: oklch(1 0 180);
--muted: oklch(0.198 0.012 5.931);
--muted-foreground: oklch(0.731 0.016 4.887);
--popover: oklch(0 0 0);
--popover-foreground: oklch(1 0 180);
--card: oklch(0 0 0);
--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.459 0.01 4.857);
--primary-foreground: oklch(0.961 0.001 4.343);
--secondary: oklch(0.211 0.008 5.345);
--secondary-foreground: oklch(0.755 0.018 4.94);
--accent: oklch(0.211 0.008 5.345);
--accent-foreground: oklch(0.755 0.018 4.94);
--destructive: oklch(0.624 0.252 28.874);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.459 0.01 4.857);
--chart-1: oklch(0.459 0.01 4.857);
--chart-2: oklch(0.211 0.008 5.345);
--chart-3: oklch(0.211 0.008 5.345);
--chart-4: oklch(0.243 0.01 5.44);
--chart-5: oklch(0.455 0.017 5.278);
}