Tepid is a shadcn/ui theme built around a deep violet primary color (#231740) with deep purple accents (#371740). The light mode uses a neutral background (#f9f7fd). Dark mode keeps the deep violet primary (#231740) on a neutral background (#040208).
| Token | Light | Dark |
|---|---|---|
| Background | #f9f7fdghostwhite | #040208black |
| Foreground | #020104black | #f9f8fcghostwhite |
| Card | #f6f3fbwhitesmoke | #06030cblack |
| Card foreground | #000000black | #fcfcfdwhite |
| Popover | #f9f7fdghostwhite | #040208black |
| Popover foreground | #020104black | #f9f8fcghostwhite |
| Primary | #231740midnightblue | #231740midnightblue |
| Primary foreground | #b8a9e0lightsteelblue | #b8a9e0lightsteelblue |
| Secondary | #172040midnightblue | #172040midnightblue |
| Secondary foreground | #a9b5e0lightsteelblue | #a9b5e0lightsteelblue |
| Muted | #d4d9edgainsboro | #12182bblack |
| Muted foreground | #53565fdimgray | #a0a2acdarkgray |
| Accent | #371740midnightblue | #371740midnightblue |
| Accent foreground | #d4a9e0plum | #d4a9e0plum |
| Destructive | #8e0f01darkred | #fe311borangered |
| Destructive foreground | #ffc8c2pink | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #231740midnightblue | #231740midnightblue |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.59:1 | AAA |
| Text on card | 19.16:1 | AAA |
| Primary button | 7.73:1 | AAA |
| Secondary button | 7.89:1 | AAA |
| Muted text | 5.23:1 | AA |
| Accent | 7.77:1 | AAA |
| Destructive | 6.43:1 | AA |
| Text on background | 19.51:1 | AAA |
| Text on card | 19.95:1 | AAA |
| Primary button | 7.73:1 | AAA |
| Secondary button | 7.89:1 | AAA |
| Muted text | 6.94:1 | AA |
| Accent | 7.77:1 | AAA |
| Destructive | 3.70:1 | AA Large |
Paste this into your globals.css to use Tepid in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.98 0.007 299.179);
--foreground: oklch(0.077 0.019 299.354);
--muted: oklch(0.888 0.027 273.501);
--muted-foreground: oklch(0.453 0.016 273.428);
--popover: oklch(0.98 0.007 299.179);
--popover-foreground: oklch(0.077 0.019 299.354);
--card: oklch(0.969 0.011 299.113);
--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.244 0.074 293.141);
--primary-foreground: oklch(0.766 0.079 297.488);
--secondary: oklch(0.253 0.061 269.936);
--secondary-foreground: oklch(0.778 0.063 272.783);
--accent: oklch(0.271 0.081 318.49);
--accent-foreground: oklch(0.791 0.09 318.84);
--destructive: oklch(0.413 0.161 30.851);
--destructive-foreground: oklch(0.88 0.063 25.736);
--ring: oklch(0.244 0.074 293.141);
--chart-1: oklch(0.244 0.074 293.141);
--chart-2: oklch(0.253 0.061 269.936);
--chart-3: oklch(0.271 0.081 318.49);
--chart-4: oklch(0.279 0.071 269.737);
--chart-5: oklch(0.242 0.079 292.589);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.098 0.023 299.352);
--foreground: oklch(0.982 0.004 299.227);
--muted: oklch(0.213 0.039 271.076);
--muted-foreground: oklch(0.714 0.014 273.627);
--popover: oklch(0.098 0.023 299.352);
--popover-foreground: oklch(0.982 0.004 299.227);
--card: oklch(0.112 0.026 299.122);
--card-foreground: oklch(0.991 0.002 299.266);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.244 0.074 293.141);
--primary-foreground: oklch(0.766 0.079 297.488);
--secondary: oklch(0.253 0.061 269.936);
--secondary-foreground: oklch(0.778 0.063 272.783);
--accent: oklch(0.271 0.081 318.49);
--accent-foreground: oklch(0.791 0.09 318.84);
--destructive: oklch(0.644 0.239 30.52);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.244 0.074 293.141);
--chart-1: oklch(0.244 0.074 293.141);
--chart-2: oklch(0.253 0.061 269.936);
--chart-3: oklch(0.271 0.081 318.49);
--chart-4: oklch(0.279 0.071 269.737);
--chart-5: oklch(0.242 0.079 292.589);
}