Our is a shadcn/ui theme built around a deep red primary color (#110908) with deep cyan accents (#081111). The light mode uses a neutral background (#fdfcfb). Dark mode keeps the deep red primary (#110908) on a neutral background (#040101).
| Token | Light | Dark |
|---|---|---|
| Background | #fdfcfbsnow | #040101black |
| Foreground | #0e0302black | #ffffffwhite |
| Card | #fdfcfbsnow | #040101black |
| Card foreground | #0e0302black | #ffffffwhite |
| Popover | #fdfcfbsnow | #040101black |
| Popover foreground | #0e0302black | #ffffffwhite |
| Primary | #110908black | #110908black |
| Primary foreground | #c68b86rosybrown | #c68b86rosybrown |
| Secondary | #081111black | #081111black |
| Secondary foreground | #86c1c6skyblue | #86c1c6skyblue |
| Muted | #d4ebedlavender | #12292bdarkslategray |
| Muted foreground | #596364dimgray | #9ba5a6darkgray |
| Accent | #081111black | #081111black |
| Accent foreground | #86c1c6skyblue | #86c1c6skyblue |
| Destructive | #d73a0forangered | #f15f37tomato |
| Destructive foreground | #ffffffwhite | #000000black |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #110908black | #110908black |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.82:1 | AAA |
| Text on card | 19.82:1 | AAA |
| Primary button | 6.97:1 | AA |
| Secondary button | 9.53:1 | AAA |
| Muted text | 4.96:1 | AA |
| Accent | 9.53:1 | AAA |
| Destructive | 4.67:1 | AA |
| Text on background | 20.75:1 | AAA |
| Text on card | 20.75:1 | AAA |
| Primary button | 6.97:1 | AA |
| Secondary button | 9.53:1 | AAA |
| Muted text | 6.05:1 | AA |
| Accent | 9.53:1 | AAA |
| Destructive | 6.43:1 | AA |
Paste this into your globals.css to use Our in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.991 0.002 23.6);
--foreground: oklch(0.118 0.027 31.719);
--muted: oklch(0.923 0.024 203.363);
--muted-foreground: oklch(0.491 0.013 203.359);
--popover: oklch(0.991 0.002 23.6);
--popover-foreground: oklch(0.118 0.027 31.719);
--card: oklch(0.991 0.002 23.6);
--card-foreground: oklch(0.118 0.027 31.719);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.151 0.015 25.396);
--primary-foreground: oklch(0.693 0.073 24.92);
--secondary: oklch(0.167 0.013 203.034);
--secondary-foreground: oklch(0.771 0.061 203.123);
--accent: oklch(0.167 0.013 203.034);
--accent-foreground: oklch(0.771 0.061 203.123);
--destructive: oklch(0.582 0.199 34.525);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.151 0.015 25.396);
--chart-1: oklch(0.151 0.015 25.396);
--chart-2: oklch(0.167 0.013 203.034);
--chart-3: oklch(0.167 0.013 203.034);
--chart-4: oklch(0.208 0.019 203.126);
--chart-5: oklch(0.151 0.017 25.678);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.085 0.012 27.996);
--foreground: oklch(1 0 180);
--muted: oklch(0.263 0.029 203.193);
--muted-foreground: oklch(0.715 0.012 203.435);
--popover: oklch(0.085 0.012 27.996);
--popover-foreground: oklch(1 0 180);
--card: oklch(0.085 0.012 27.996);
--card-foreground: oklch(1 0 180);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.151 0.015 25.396);
--primary-foreground: oklch(0.693 0.073 24.92);
--secondary: oklch(0.167 0.013 203.034);
--secondary-foreground: oklch(0.771 0.061 203.123);
--accent: oklch(0.167 0.013 203.034);
--accent-foreground: oklch(0.771 0.061 203.123);
--destructive: oklch(0.668 0.188 36.092);
--destructive-foreground: oklch(0 0 0);
--ring: oklch(0.151 0.015 25.396);
--chart-1: oklch(0.151 0.015 25.396);
--chart-2: oklch(0.167 0.013 203.034);
--chart-3: oklch(0.167 0.013 203.034);
--chart-4: oklch(0.208 0.019 203.126);
--chart-5: oklch(0.151 0.017 25.678);
}