Untrue is a shadcn/ui theme built around a deep purple primary color (#5c1e54) with deep pink accents (#5c1e35). The light mode uses a neutral background (#fdfbfd). Dark mode keeps the deep purple primary (#5c1e54) on a neutral background (#070307).
| Token | Light | Dark |
|---|---|---|
| Background | #fdfbfdsnow | #070307black |
| Foreground | #040104black | #faf5f9whitesmoke |
| Card | #fdfbfdsnow | #070307black |
| Card foreground | #040104black | #faf5f9whitesmoke |
| Popover | #fdfbfdsnow | #070307black |
| Popover foreground | #040104black | #faf5f9whitesmoke |
| Primary | #5c1e54indigo | #5c1e54indigo |
| Primary foreground | #ebc1e5thistle | #ebc1e5thistle |
| Secondary | #461e5cindigo | #461e5cindigo |
| Secondary foreground | #dcc1ebthistle | #dcc1ebthistle |
| Muted | #efe8f3lavender | #130c17black |
| Muted foreground | #61536adimgray | #a495acdarkgray |
| Accent | #5c1e35saddlebrown | #5c1e35saddlebrown |
| Accent foreground | #ebc1d1thistle | #ebc1d1thistle |
| Destructive | #91210ddarkred | #eb4628chocolate |
| Destructive foreground | #fbdbd5mistyrose | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #5c1e54indigo | #5c1e54indigo |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 20.24:1 | AAA |
| Text on card | 20.24:1 | AAA |
| Primary button | 7.49:1 | AAA |
| Secondary button | 8.05:1 | AAA |
| Muted text | 5.91:1 | AA |
| Accent | 7.71:1 | AAA |
| Destructive | 6.68:1 | AA |
| Text on background | 19.01:1 | AAA |
| Text on card | 19.01:1 | AAA |
| Primary button | 7.49:1 | AAA |
| Secondary button | 8.05:1 | AAA |
| Muted text | 6.81:1 | AA |
| Accent | 7.71:1 | AAA |
| Destructive | 3.86:1 | AA Large |
Paste this into your globals.css to use Untrue in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.991 0.003 329.721);
--foreground: oklch(0.085 0.023 331.045);
--muted: oklch(0.939 0.016 313.501);
--muted-foreground: oklch(0.465 0.04 313.076);
--popover: oklch(0.991 0.003 329.721);
--popover-foreground: oklch(0.085 0.023 331.045);
--card: oklch(0.991 0.003 329.721);
--card-foreground: oklch(0.085 0.023 331.045);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.353 0.115 333.363);
--primary-foreground: oklch(0.859 0.067 330.603);
--secondary: oklch(0.324 0.111 310.88);
--secondary-foreground: oklch(0.847 0.064 313.146);
--accent: oklch(0.339 0.094 0.759);
--accent-foreground: oklch(0.853 0.051 354.234);
--destructive: oklch(0.432 0.15 32.244);
--destructive-foreground: oklch(0.916 0.037 29.662);
--ring: oklch(0.353 0.115 333.363);
--chart-1: oklch(0.353 0.115 333.363);
--chart-2: oklch(0.324 0.111 310.88);
--chart-3: oklch(0.339 0.094 0.759);
--chart-4: oklch(0.35 0.122 310.796);
--chart-5: oklch(0.355 0.12 333.533);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.11 0.018 330.563);
--foreground: oklch(0.975 0.009 329.792);
--muted: oklch(0.171 0.024 312.722);
--muted-foreground: oklch(0.691 0.036 313.282);
--popover: oklch(0.11 0.018 330.563);
--popover-foreground: oklch(0.975 0.009 329.792);
--card: oklch(0.11 0.018 330.563);
--card-foreground: oklch(0.975 0.009 329.792);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.353 0.115 333.363);
--primary-foreground: oklch(0.859 0.067 330.603);
--secondary: oklch(0.324 0.111 310.88);
--secondary-foreground: oklch(0.847 0.064 313.146);
--accent: oklch(0.339 0.094 0.759);
--accent-foreground: oklch(0.853 0.051 354.234);
--destructive: oklch(0.629 0.207 32.373);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.353 0.115 333.363);
--chart-1: oklch(0.353 0.115 333.363);
--chart-2: oklch(0.324 0.111 310.88);
--chart-3: oklch(0.339 0.094 0.759);
--chart-4: oklch(0.35 0.122 310.796);
--chart-5: oklch(0.355 0.12 333.533);
}