Reliable is a shadcn/ui theme built around a near-white primary color (#ffffff) with muted light red accents (#cec0c0). The light mode uses a neutral background (#fdfcfc). Dark mode keeps the near-white primary (#ffffff) on a neutral background (#070303).
| Token | Light | Dark |
|---|---|---|
| Background | #fdfcfcsnow | #070303black |
| Foreground | #040101black | #ffffffwhite |
| Card | #fdfcfcsnow | #070303black |
| Card foreground | #040101black | #ffffffwhite |
| Popover | #fdfcfcsnow | #070303black |
| Popover foreground | #040101black | #ffffffwhite |
| Primary | #ffffffwhite | #ffffffwhite |
| Primary foreground | #333333darkslategray | #333333darkslategray |
| Secondary | #dad7d7gainsboro | #2a1d1dblack |
| Secondary foreground | #423d3ddarkslategray | #c9b0b0silver |
| Muted | #f0e5e5linen | #1a0f0fblack |
| Muted foreground | #5d5151dimgray | #aea2a2darkgray |
| Accent | #cec0c0silver | #462b2bdarkslategray |
| Accent foreground | #342828darkslategray | #dcc6c6thistle |
| Destructive | #9a1a04darkred | #fa4829tomato |
| Destructive foreground | #fed9d2bisque | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #ffffffwhite | #ffffffwhite |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 20.26:1 | AAA |
| Text on card | 20.26:1 | AAA |
| Primary button | 12.63:1 | AAA |
| Secondary button | 7.48:1 | AAA |
| Muted text | 6.18:1 | AA |
| Accent | 8.03:1 | AAA |
| Destructive | 6.35:1 | AA |
| Text on background | 20.48:1 | AAA |
| Text on card | 20.48:1 | AAA |
| Primary button | 12.63:1 | AAA |
| Secondary button | 7.98:1 | AAA |
| Muted text | 7.58:1 | AAA |
| Accent | 7.92:1 | AAA |
| Destructive | 3.48:1 | AA Large |
Paste this into your globals.css to use Reliable in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.991 0.002 17.188);
--foreground: oklch(0.08 0.018 21.811);
--muted: oklch(0.931 0.012 17.364);
--muted-foreground: oklch(0.446 0.016 17.774);
--popover: oklch(0.991 0.002 17.188);
--popover-foreground: oklch(0.08 0.018 21.811);
--card: oklch(0.991 0.002 17.188);
--card-foreground: oklch(0.08 0.018 21.811);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(1 0 180);
--primary-foreground: oklch(0.321 0 180);
--secondary: oklch(0.882 0.003 17.221);
--secondary-foreground: oklch(0.366 0.007 17.48);
--accent: oklch(0.819 0.017 17.495);
--accent-foreground: oklch(0.29 0.018 18.236);
--destructive: oklch(0.444 0.165 31.92);
--destructive-foreground: oklch(0.914 0.043 29.703);
--ring: oklch(1 0 180);
--chart-1: oklch(1 0 180);
--chart-2: oklch(0.882 0.003 17.221);
--chart-3: oklch(0.819 0.017 17.495);
--chart-4: oklch(0.906 0.003 17.207);
--chart-5: oklch(1 0 180);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.109 0.01 18.852);
--foreground: oklch(1 0 180);
--muted: oklch(0.183 0.018 18.958);
--muted-foreground: oklch(0.723 0.014 17.485);
--popover: oklch(0.109 0.01 18.852);
--popover-foreground: oklch(1 0 180);
--card: oklch(0.109 0.01 18.852);
--card-foreground: oklch(1 0 180);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(1 0 180);
--primary-foreground: oklch(0.321 0 180);
--secondary: oklch(0.247 0.021 18.714);
--secondary-foreground: oklch(0.779 0.029 17.795);
--accent: oklch(0.321 0.04 19.517);
--accent-foreground: oklch(0.845 0.025 17.655);
--destructive: oklch(0.656 0.218 32.361);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(1 0 180);
--chart-1: oklch(1 0 180);
--chart-2: oklch(0.247 0.021 18.714);
--chart-3: oklch(0.321 0.04 19.517);
--chart-4: oklch(0.277 0.025 18.811);
--chart-5: oklch(1 0 180);
}