Untrue is a shadcn/ui theme built around a deep red primary color (#270706) with muted red accents (#cca4a4). The light mode uses a neutral background (#fefbfb). Dark mode keeps the deep red primary (#270706) on a red-tinted background (#0c0303).
| Token | Light | Dark |
|---|---|---|
| Background | #fefbfbsnow | #0c0303black |
| Foreground | #040101black | #fbf9f9snow |
| Card | #fdf7f7snow | #100504black |
| Card foreground | #000000black | #fdfcfcsnow |
| Popover | #fdf7f7snow | #100504black |
| Popover foreground | #000000black | #fdfcfcsnow |
| Primary | #270706black | #270706black |
| Primary foreground | #e97977lightcoral | #e97977lightcoral |
| Secondary | #dac8c8lightgrey | #1d1716black |
| Secondary foreground | #432d2ddarkslategray | #bcaaa9darkgray |
| Muted | #dcd6d6gainsboro | #292323darkslategray |
| Muted foreground | #5b5857dimgray | #a8a4a4darkgray |
| Accent | #cca4a4tan | #3a2827darkslategray |
| Accent foreground | #271616black | #d4c0bfsilver |
| Destructive | #c82609firebrick | #e02b0borangered |
| Destructive foreground | #ffffffwhite | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #270706black | #270706black |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 20.19:1 | AAA |
| Text on card | 19.81:1 | AAA |
| Primary button | 6.65:1 | AA |
| Secondary button | 7.93:1 | AAA |
| Muted text | 4.90:1 | AA |
| Accent | 7.76:1 | AAA |
| Destructive | 5.63:1 | AA |
| Text on background | 19.39:1 | AAA |
| Text on card | 19.64:1 | AAA |
| Primary button | 6.65:1 | AA |
| Secondary button | 8.00:1 | AAA |
| Muted text | 6.24:1 | AA |
| Accent | 8.03:1 | AAA |
| Destructive | 4.65:1 | AA |
Paste this into your globals.css to use Untrue in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.99 0.003 18.411);
--foreground: oklch(0.08 0.019 24.053);
--muted: oklch(0.88 0.007 18.477);
--muted-foreground: oklch(0.462 0.005 18.513);
--popover: oklch(0.981 0.006 18.462);
--popover-foreground: oklch(0 0 0);
--card: oklch(0.981 0.006 18.462);
--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.189 0.055 25.191);
--primary-foreground: oklch(0.703 0.139 22.244);
--secondary: oklch(0.848 0.02 18.736);
--secondary-foreground: oklch(0.324 0.033 20.105);
--accent: oklch(0.755 0.047 19.372);
--accent-foreground: oklch(0.224 0.028 20.548);
--destructive: oklch(0.538 0.2 31.777);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.189 0.055 25.191);
--chart-1: oklch(0.189 0.055 25.191);
--chart-2: oklch(0.848 0.02 18.736);
--chart-3: oklch(0.755 0.047 19.372);
--chart-4: oklch(0.874 0.017 18.659);
--chart-5: oklch(0.189 0.058 25.638);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.119 0.021 22.173);
--foreground: oklch(0.983 0.003 18.407);
--muted: oklch(0.264 0.009 18.909);
--muted-foreground: oklch(0.722 0.004 18.448);
--popover: oklch(0.133 0.024 22.264);
--popover-foreground: oklch(0.991 0.001 18.384);
--card: oklch(0.133 0.024 22.264);
--card-foreground: oklch(0.991 0.001 18.384);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.189 0.055 25.191);
--primary-foreground: oklch(0.703 0.139 22.244);
--secondary: oklch(0.21 0.01 19.107);
--secondary-foreground: oklch(0.752 0.021 18.8);
--accent: oklch(0.297 0.027 19.939);
--accent-foreground: oklch(0.823 0.023 18.795);
--destructive: oklch(0.586 0.218 31.71);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.189 0.055 25.191);
--chart-1: oklch(0.189 0.055 25.191);
--chart-2: oklch(0.21 0.01 19.107);
--chart-3: oklch(0.297 0.027 19.939);
--chart-4: oklch(0.241 0.012 19.183);
--chart-5: oklch(0.189 0.058 25.638);
}