Tremor is a shadcn/ui theme built around a light red primary color (#f6e5e6) with light teal accents (#e5f6f4). The light mode uses a neutral background (#ffffff). Dark mode keeps the light red primary (#f6e5e6) on a red-tinted background (#0e0707).
| Token | Light | Dark |
|---|---|---|
| Background | #ffffffwhite | #0e0707black |
| Foreground | #0c0304black | #fbf8f9snow |
| Card | #ffffffwhite | #0e0707black |
| Card foreground | #0c0304black | #fbf8f9snow |
| Popover | #ffffffwhite | #0e0707black |
| Popover foreground | #0c0304black | #fbf8f9snow |
| Primary | #f6e5e6mistyrose | #f6e5e6mistyrose |
| Primary foreground | #7d2c32brown | #7d2c32brown |
| Secondary | #e5f6f4honeydew | #e5f6f4honeydew |
| Secondary foreground | #11312edarkslategray | #11312edarkslategray |
| Muted | #eaf0f0whitesmoke | #0f1514black |
| Muted foreground | #465352darkslategray | #acb9b8darkgray |
| Accent | #e5f6f4honeydew | #e5f6f4honeydew |
| Accent foreground | #11312edarkslategray | #11312edarkslategray |
| Destructive | #ab2b12firebrick | #e23918orangered |
| Destructive foreground | #fef3f1seashell | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #f6e5e6mistyrose | #f6e5e6mistyrose |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 20.38:1 | AAA |
| Text on card | 20.38:1 | AAA |
| Primary button | 7.55:1 | AAA |
| Secondary button | 12.49:1 | AAA |
| Muted text | 6.95:1 | AA |
| Accent | 12.49:1 | AAA |
| Destructive | 6.25:1 | AA |
| Text on background | 18.94:1 | AAA |
| Text on card | 18.94:1 | AAA |
| Primary button | 7.55:1 | AAA |
| Secondary button | 12.49:1 | AAA |
| Muted text | 9.14:1 | AAA |
| Accent | 12.49:1 | AAA |
| Destructive | 4.33:1 | AA Large |
Paste this into your globals.css to use Tremor in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(1 0 180);
--foreground: oklch(0.118 0.024 13.477);
--muted: oklch(0.951 0.006 191.109);
--muted-foreground: oklch(0.431 0.017 190.357);
--popover: oklch(1 0 180);
--popover-foreground: oklch(0.118 0.024 13.477);
--card: oklch(1 0 180);
--card-foreground: oklch(0.118 0.024 13.477);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.935 0.019 11.69);
--primary-foreground: oklch(0.413 0.112 18.609);
--secondary: oklch(0.959 0.018 190.835);
--secondary-foreground: oklch(0.289 0.038 187.945);
--accent: oklch(0.959 0.018 190.835);
--accent-foreground: oklch(0.289 0.038 187.945);
--destructive: oklch(0.49 0.168 32.914);
--destructive-foreground: oklch(0.972 0.011 31.067);
--ring: oklch(0.935 0.019 11.69);
--chart-1: oklch(0.935 0.019 11.69);
--chart-2: oklch(0.959 0.018 190.835);
--chart-3: oklch(0.959 0.018 190.835);
--chart-4: oklch(0.977 0.01 191.017);
--chart-5: oklch(0.934 0.02 11.719);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.138 0.014 12.568);
--foreground: oklch(0.983 0.003 11.323);
--muted: oklch(0.188 0.009 190.209);
--muted-foreground: oklch(0.776 0.015 190.816);
--popover: oklch(0.138 0.014 12.568);
--popover-foreground: oklch(0.983 0.003 11.323);
--card: oklch(0.138 0.014 12.568);
--card-foreground: oklch(0.983 0.003 11.323);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.935 0.019 11.69);
--primary-foreground: oklch(0.413 0.112 18.609);
--secondary: oklch(0.959 0.018 190.835);
--secondary-foreground: oklch(0.289 0.038 187.945);
--accent: oklch(0.959 0.018 190.835);
--accent-foreground: oklch(0.289 0.038 187.945);
--destructive: oklch(0.601 0.21 32.797);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.935 0.019 11.69);
--chart-1: oklch(0.935 0.019 11.69);
--chart-2: oklch(0.959 0.018 190.835);
--chart-3: oklch(0.959 0.018 190.835);
--chart-4: oklch(0.977 0.01 191.017);
--chart-5: oklch(0.934 0.02 11.719);
}