Untrue for shadcn/ui

Untrue is a shadcn/ui theme built around a green primary color (#2cdd56) with red accents (#dd562c). The light mode uses a neutral background (#fbfefc). Dark mode keeps the green primary (#2cdd56) on a neutral background (#020302).

Color palette

TokenLightDark
Background
#fbfefcwhite
#020302black
Foreground
#031106black
#ffffffwhite
Card
#fbfefcwhite
#020302black
Card foreground
#031106black
#ffffffwhite
Popover
#fbfefcwhite
#020302black
Popover foreground
#031106black
#ffffffwhite
Primary
#2cdd56limegreen
#2cdd56limegreen
Primary foreground
#093513darkgreen
#093513darkgreen
Secondary
#562cddblueviolet
#562cddblueviolet
Secondary foreground
#ffffffwhite
#ffffffwhite
Muted
#eae7f3lavender
#0f0c18black
Muted foreground
#464351darkslategray
#b1aebcdarkgray
Accent
#dd562cchocolate
#dd562cchocolate
Accent foreground
#ffffffwhite
#ffffffwhite
Destructive
#af3e0dfirebrick
#da4d10chocolate
Destructive foreground
#ffffffwhite
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#2cdd56limegreen
#2cdd56limegreen

Contrast

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

Light mode
Text on background19.01:1AAA
Text on card19.01:1AAA
Primary button7.55:1AAA
Secondary button7.49:1AAA
Muted text7.91:1AAA
Accent3.87:1AA Large
Destructive5.95:1AA
Dark mode
Text on background20.63:1AAA
Text on card20.63:1AAA
Primary button7.55:1AAA
Secondary button7.49:1AAA
Muted text8.88:1AAA
Accent3.87:1AA Large
Destructive4.15: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.994 0.004 153.174);
  --foreground: oklch(0.161 0.032 151.328);
  --muted: oklch(0.935 0.016 296.78);
  --muted-foreground: oklch(0.39 0.025 295.908);
  --popover: oklch(0.994 0.004 153.174);
  --popover-foreground: oklch(0.161 0.032 151.328);
  --card: oklch(0.994 0.004 153.174);
  --card-foreground: oklch(0.161 0.032 151.328);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.785 0.224 146.298);
  --primary-foreground: oklch(0.289 0.075 147.336);
  --secondary: oklch(0.476 0.243 282.788);
  --secondary-foreground: oklch(1 0 180);
  --accent: oklch(0.624 0.178 36.988);
  --accent-foreground: oklch(1 0 180);
  --destructive: oklch(0.519 0.158 39.43);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.785 0.224 146.298);
  --chart-1: oklch(0.785 0.224 146.298);
  --chart-2: oklch(0.476 0.243 282.788);
  --chart-3: oklch(0.624 0.178 36.988);
  --chart-4: oklch(0.502 0.233 285.06);
  --chart-5: oklch(0.794 0.231 146.078);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.095 0.009 152.845);
  --foreground: oklch(1 0 180);
  --muted: oklch(0.165 0.024 294.331);
  --muted-foreground: oklch(0.757 0.021 296.573);
  --popover: oklch(0.095 0.009 152.845);
  --popover-foreground: oklch(1 0 180);
  --card: oklch(0.095 0.009 152.845);
  --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.785 0.224 146.298);
  --primary-foreground: oklch(0.289 0.075 147.336);
  --secondary: oklch(0.476 0.243 282.788);
  --secondary-foreground: oklch(1 0 180);
  --accent: oklch(0.624 0.178 36.988);
  --accent-foreground: oklch(1 0 180);
  --destructive: oklch(0.608 0.187 39.102);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.785 0.224 146.298);
  --chart-1: oklch(0.785 0.224 146.298);
  --chart-2: oklch(0.476 0.243 282.788);
  --chart-3: oklch(0.624 0.178 36.988);
  --chart-4: oklch(0.502 0.233 285.06);
  --chart-5: oklch(0.794 0.231 146.078);
}