Untrue for shadcn/ui

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).

Color palette

TokenLightDark
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

Contrast

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

Light mode
Text on background20.24:1AAA
Text on card20.24:1AAA
Primary button7.49:1AAA
Secondary button8.05:1AAA
Muted text5.91:1AA
Accent7.71:1AAA
Destructive6.68:1AA
Dark mode
Text on background19.01:1AAA
Text on card19.01:1AAA
Primary button7.49:1AAA
Secondary button8.05:1AAA
Muted text6.81:1AA
Accent7.71:1AAA
Destructive3.86: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.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);
}