Untrue for shadcn/ui

Untrue is a shadcn/ui theme built around a deep purple primary color (#1f0920) with deep pink accents (#200916). The light mode uses a neutral background (#fdf7fd). Dark mode keeps the deep purple primary (#1f0920) on a neutral background (#040104).

Color palette

TokenLightDark
Background
#fdf7fdsnow
#040104black
Foreground
#100411black
#fdfcfdwhite
Card
#fcf2fcghostwhite
#070308black
Card foreground
#0c030cblack
#ffffffwhite
Popover
#fdf7fdsnow
#040104black
Popover foreground
#100411black
#fdfcfdwhite
Primary
#1f0920black
#1f0920black
Primary foreground
#d67eddorchid
#d67eddorchid
Secondary
#130920black
#130920black
Secondary foreground
#a77eddmediumpurple
#a77eddmediumpurple
Muted
#d8d5ddgainsboro
#26222adarkslategray
Muted foreground
#655c70dimgray
#988fa3darkgray
Accent
#200916black
#200916black
Accent foreground
#dd7eb4palevioletred
#dd7eb4palevioletred
Destructive
#6b0401maroon
#fe0a01red
Destructive foreground
#ffa29flightsalmon
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#1f0920black
#1f0920black

Contrast

WCAG 2 contrast ratios between each background and its foreground color.

Light mode
Text on background18.94:1AAA
Text on card18.64:1AAA
Primary button7.07:1AAA
Secondary button6.14:1AA
Muted text4.35:1AA Large
Accent6.94:1AA
Destructive6.66:1AA
Dark mode
Text on background20.27:1AAA
Text on card20.50:1AAA
Primary button7.07:1AAA
Secondary button6.14:1AA
Muted text5.05:1AA
Accent6.94:1AA
Destructive4.00:1AA Large

CSS variables

Paste this into your globals.css to use Untrue in your shadcn/ui project.

:root {
  --radius: 0.5rem;
  --background: oklch(0.982 0.011 323.693);
  --foreground: oklch(0.137 0.037 325.123);
  --muted: oklch(0.877 0.012 305.556);
  --muted-foreground: oklch(0.49 0.034 304.82);
  --popover: oklch(0.982 0.011 323.693);
  --popover-foreground: oklch(0.137 0.037 325.123);
  --card: oklch(0.972 0.016 323.723);
  --card-foreground: oklch(0.123 0.032 325.333);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.186 0.055 324.904);
  --primary-foreground: oklch(0.721 0.162 324.66);
  --secondary: oklch(0.168 0.049 301.402);
  --secondary-foreground: oklch(0.671 0.142 302.757);
  --accent: oklch(0.183 0.046 347.401);
  --accent-foreground: oklch(0.712 0.133 345.953);
  --destructive: oklch(0.333 0.133 29.884);
  --destructive-foreground: oklch(0.804 0.111 21.964);
  --ring: oklch(0.186 0.055 324.904);
  --chart-1: oklch(0.186 0.055 324.904);
  --chart-2: oklch(0.168 0.049 301.402);
  --chart-3: oklch(0.183 0.046 347.401);
  --chart-4: oklch(0.194 0.063 300.595);
  --chart-5: oklch(0.187 0.058 324.948);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.087 0.017 325.082);
  --foreground: oklch(0.992 0.002 323.648);
  --muted: oklch(0.26 0.016 304.901);
  --muted-foreground: oklch(0.664 0.031 305.111);
  --popover: oklch(0.087 0.017 325.082);
  --popover-foreground: oklch(0.992 0.002 323.648);
  --card: oklch(0.109 0.021 325.082);
  --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.186 0.055 324.904);
  --primary-foreground: oklch(0.721 0.162 324.66);
  --secondary: oklch(0.168 0.049 301.402);
  --secondary-foreground: oklch(0.671 0.142 302.757);
  --accent: oklch(0.183 0.046 347.401);
  --accent-foreground: oklch(0.712 0.133 345.953);
  --destructive: oklch(0.627 0.255 29.461);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.186 0.055 324.904);
  --chart-1: oklch(0.186 0.055 324.904);
  --chart-2: oklch(0.168 0.049 301.402);
  --chart-3: oklch(0.183 0.046 347.401);
  --chart-4: oklch(0.194 0.063 300.595);
  --chart-5: oklch(0.187 0.058 324.948);
}