True for shadcn/ui

True is a shadcn/ui theme built around a muted orange primary color (#624e3c) with muted violet accents (#4e3c62). The light mode uses a neutral background (#ffffff). Dark mode keeps the muted orange primary (#624e3c) on an orange-tinted background (#0c0703).

Color palette

TokenLightDark
Background
#ffffffwhite
#0c0703black
Foreground
#000000black
#fdfcfcsnow
Card
#fcfcfcsnow
#100a04black
Card foreground
#000000black
#ffffffwhite
Popover
#fcfcfcsnow
#100a04black
Popover foreground
#000000black
#ffffffwhite
Primary
#624e3cdarkolivegreen
#624e3cdarkolivegreen
Primary foreground
#eee8e3linen
#eee8e3linen
Secondary
#3c624edarkslategray
#3c624edarkslategray
Secondary foreground
#ffffffwhite
#ffffffwhite
Muted
#dae7e0gainsboro
#18251eblack
Muted foreground
#47524cdarkslategray
#adb8b2darkgray
Accent
#4e3c62darkslategray
#4e3c62darkslategray
Accent foreground
#e8e3eelavender
#e8e3eelavender
Destructive
#cb510bchocolate
#e95d0cchocolate
Destructive foreground
#ffffffwhite
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#624e3cdarkolivegreen
#624e3cdarkolivegreen

Contrast

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

Light mode
Text on background21.00:1AAA
Text on card20.54:1AAA
Primary button6.47:1AA
Secondary button6.88:1AA
Muted text6.39:1AA
Accent7.75:1AAA
Destructive4.42:1AA Large
Dark mode
Text on background19.54:1AAA
Text on card19.68:1AAA
Primary button6.47:1AA
Secondary button6.88:1AA
Muted text7.74:1AAA
Accent7.75:1AAA
Destructive3.48:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(1 0 180);
  --foreground: oklch(0 0 0);
  --muted: oklch(0.916 0.017 162.961);
  --muted-foreground: oklch(0.427 0.017 162.43);
  --popover: oklch(0.992 0 161.565);
  --popover-foreground: oklch(0 0 0);
  --card: oklch(0.992 0 161.565);
  --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.439 0.039 62.732);
  --primary-foreground: oklch(0.933 0.009 63.961);
  --secondary: oklch(0.461 0.055 159.944);
  --secondary-foreground: oklch(1 0 180);
  --accent: oklch(0.392 0.066 304.984);
  --accent-foreground: oklch(0.922 0.016 306.903);
  --destructive: oklch(0.589 0.17 43.199);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.439 0.039 62.732);
  --chart-1: oklch(0.439 0.039 62.732);
  --chart-2: oklch(0.461 0.055 159.944);
  --chart-3: oklch(0.392 0.066 304.984);
  --chart-4: oklch(0.492 0.059 159.897);
  --chart-5: oklch(0.441 0.044 62.512);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.136 0.016 72.188);
  --foreground: oklch(0.993 0.001 64.078);
  --muted: oklch(0.251 0.023 160.853);
  --muted-foreground: oklch(0.772 0.014 162.968);
  --popover: oklch(0.15 0.018 68.743);
  --popover-foreground: oklch(1 0 180);
  --card: oklch(0.15 0.018 68.743);
  --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.439 0.039 62.732);
  --primary-foreground: oklch(0.933 0.009 63.961);
  --secondary: oklch(0.461 0.055 159.944);
  --secondary-foreground: oklch(1 0 180);
  --accent: oklch(0.392 0.066 304.984);
  --accent-foreground: oklch(0.922 0.016 306.903);
  --destructive: oklch(0.65 0.189 42.942);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.439 0.039 62.732);
  --chart-1: oklch(0.439 0.039 62.732);
  --chart-2: oklch(0.461 0.055 159.944);
  --chart-3: oklch(0.392 0.066 304.984);
  --chart-4: oklch(0.492 0.059 159.897);
  --chart-5: oklch(0.441 0.044 62.512);
}