Trek is a shadcn/ui theme built around a vivid light orange primary color (#fedbc8) with vivid light blue accents (#c8ebfe). The light mode uses a neutral background (#fdfcfb). Dark mode keeps the vivid light orange primary (#fedbc8) on an orange-tinted background (#0f0905).
| Token | Light | Dark |
|---|---|---|
| Background | #fdfcfbsnow | #0f0905black |
| Foreground | #140b05black | #fdfcfcsnow |
| Card | #fdfcfbsnow | #0f0905black |
| Card foreground | #140b05black | #fdfcfcsnow |
| Popover | #fdfcfbsnow | #0f0905black |
| Popover foreground | #140b05black | #fdfcfcsnow |
| Primary | #fedbc8bisque | #fedbc8bisque |
| Primary foreground | #2d1001black | #2d1001black |
| Secondary | #c8ebfepaleturquoise | #c8ebfepaleturquoise |
| Secondary foreground | #011e2dblack | #011e2dblack |
| Muted | #eef4f7whitesmoke | #080e11black |
| Muted foreground | #5a5c5edimgray | #a1a4a5darkgray |
| Accent | #c8ebfepaleturquoise | #c8ebfepaleturquoise |
| Accent foreground | #011e2dblack | #011e2dblack |
| Destructive | #ab4712sienna | #e76118chocolate |
| Destructive foreground | #ffffffwhite | #000000black |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #fedbc8bisque | #fedbc8bisque |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.01:1 | AAA |
| Text on card | 19.01:1 | AAA |
| Primary button | 13.62:1 | AAA |
| Secondary button | 13.69:1 | AAA |
| Muted text | 6.02:1 | AA |
| Accent | 13.69:1 | AAA |
| Destructive | 5.75:1 | AA |
| Text on background | 19.33:1 | AAA |
| Text on card | 19.33:1 | AAA |
| Primary button | 13.62:1 | AAA |
| Secondary button | 13.69:1 | AAA |
| Muted text | 7.73:1 | AAA |
| Accent | 13.69:1 | AAA |
| Destructive | 6.09:1 | AA |
Paste this into your globals.css to use Trek in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.992 0.002 50.639);
--foreground: oklch(0.159 0.021 52.806);
--muted: oklch(0.962 0.007 230.763);
--muted-foreground: oklch(0.474 0.004 230.766);
--popover: oklch(0.992 0.002 50.639);
--popover-foreground: oklch(0.159 0.021 52.806);
--card: oklch(0.992 0.002 50.639);
--card-foreground: oklch(0.159 0.021 52.806);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.915 0.047 50.043);
--primary-foreground: oklch(0.216 0.056 49.918);
--secondary: oklch(0.921 0.045 231.432);
--secondary-foreground: oklch(0.221 0.046 235.837);
--accent: oklch(0.921 0.045 231.432);
--accent-foreground: oklch(0.221 0.046 235.837);
--destructive: oklch(0.524 0.144 43.782);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.915 0.047 50.043);
--chart-1: oklch(0.915 0.047 50.043);
--chart-2: oklch(0.921 0.045 231.432);
--chart-3: oklch(0.921 0.045 231.432);
--chart-4: oklch(0.942 0.033 231.181);
--chart-5: oklch(0.915 0.049 50.025);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.146 0.014 54.749);
--foreground: oklch(0.992 0.001 50.646);
--muted: oklch(0.159 0.011 231.488);
--muted-foreground: oklch(0.716 0.003 230.723);
--popover: oklch(0.146 0.014 54.749);
--popover-foreground: oklch(0.992 0.001 50.646);
--card: oklch(0.146 0.014 54.749);
--card-foreground: oklch(0.992 0.001 50.646);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.915 0.047 50.043);
--primary-foreground: oklch(0.216 0.056 49.918);
--secondary: oklch(0.921 0.045 231.432);
--secondary-foreground: oklch(0.221 0.046 235.837);
--accent: oklch(0.921 0.045 231.432);
--accent-foreground: oklch(0.221 0.046 235.837);
--destructive: oklch(0.652 0.183 43.304);
--destructive-foreground: oklch(0 0 0);
--ring: oklch(0.915 0.047 50.043);
--chart-1: oklch(0.915 0.047 50.043);
--chart-2: oklch(0.921 0.045 231.432);
--chart-3: oklch(0.921 0.045 231.432);
--chart-4: oklch(0.942 0.033 231.181);
--chart-5: oklch(0.915 0.049 50.025);
}