Railroad is a shadcn/ui theme built around a vivid light teal primary color (#92fcf2) with vivid light red accents (#fc929c). The light mode uses a neutral background (#f8fcfb). Dark mode keeps the vivid light teal primary (#92fcf2) on a neutral background (#030707).
| Token | Light | Dark |
|---|---|---|
| Background | #f8fcfbmintcream | #030707black |
| Foreground | #000000black | #fcfdfdwhite |
| Card | #f8fcfbmintcream | #030707black |
| Card foreground | #000000black | #fcfdfdwhite |
| Popover | #f8fcfbmintcream | #030707black |
| Popover foreground | #000000black | #fcfdfdwhite |
| Primary | #92fcf2paleturquoise | #92fcf2paleturquoise |
| Primary foreground | #025a51darkslategray | #025a51darkslategray |
| Secondary | #fc929clightcoral | #fc929clightcoral |
| Secondary foreground | #5a020bmaroon | #5a020bmaroon |
| Muted | #f1eeefwhitesmoke | #110e0eblack |
| Muted foreground | #494142darkslategray | #beb6b7silver |
| Accent | #fc929clightcoral | #fc929clightcoral |
| Accent foreground | #5a020bmaroon | #5a020bmaroon |
| Destructive | #6e0e0cmaroon | #cf1a17firebrick |
| Destructive foreground | #f7b7b6lightpink | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #92fcf2paleturquoise | #92fcf2paleturquoise |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 20.29:1 | AAA |
| Text on card | 20.29:1 | AAA |
| Primary button | 6.74:1 | AA |
| Secondary button | 6.70:1 | AA |
| Muted text | 8.61:1 | AAA |
| Accent | 6.70:1 | AA |
| Destructive | 7.15:1 | AAA |
| Text on background | 19.85:1 | AAA |
| Text on card | 19.85:1 | AAA |
| Primary button | 6.74:1 | AA |
| Secondary button | 6.70:1 | AA |
| Muted text | 9.67:1 | AAA |
| Accent | 6.70:1 | AA |
| Destructive | 5.52:1 | AA |
Paste this into your globals.css to use Railroad in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.988 0.004 189.982);
--foreground: oklch(0 0 0);
--muted: oklch(0.952 0.003 10.149);
--muted-foreground: oklch(0.383 0.011 10.757);
--popover: oklch(0.988 0.004 189.982);
--popover-foreground: oklch(0 0 0);
--card: oklch(0.988 0.004 189.982);
--card-foreground: oklch(0 0 0);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.924 0.101 187.308);
--primary-foreground: oklch(0.419 0.074 183.451);
--secondary: oklch(0.774 0.129 14.121);
--secondary-foreground: oklch(0.296 0.117 24.292);
--accent: oklch(0.774 0.129 14.121);
--accent-foreground: oklch(0.296 0.117 24.292);
--destructive: oklch(0.348 0.13 27.899);
--destructive-foreground: oklch(0.837 0.075 19.883);
--ring: oklch(0.924 0.101 187.308);
--chart-1: oklch(0.924 0.101 187.308);
--chart-2: oklch(0.774 0.129 14.121);
--chart-3: oklch(0.774 0.129 14.121);
--chart-4: oklch(0.802 0.11 13.331);
--chart-5: oklch(0.928 0.103 187.233);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.122 0.01 189.51);
--foreground: oklch(0.994 0.002 190.039);
--muted: oklch(0.167 0.005 10.716);
--muted-foreground: oklch(0.783 0.009 10.352);
--popover: oklch(0.122 0.01 189.51);
--popover-foreground: oklch(0.994 0.002 190.039);
--card: oklch(0.122 0.01 189.51);
--card-foreground: oklch(0.994 0.002 190.039);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.924 0.101 187.308);
--primary-foreground: oklch(0.419 0.074 183.451);
--secondary: oklch(0.774 0.129 14.121);
--secondary-foreground: oklch(0.296 0.117 24.292);
--accent: oklch(0.774 0.129 14.121);
--accent-foreground: oklch(0.296 0.117 24.292);
--destructive: oklch(0.545 0.211 28.486);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.924 0.101 187.308);
--chart-1: oklch(0.924 0.101 187.308);
--chart-2: oklch(0.774 0.129 14.121);
--chart-3: oklch(0.774 0.129 14.121);
--chart-4: oklch(0.802 0.11 13.331);
--chart-5: oklch(0.928 0.103 187.233);
}