Kindly for shadcn/ui

Kindly is a shadcn/ui theme built around an orange primary color (#7a553e) with violet accents (#553e7a). The light mode uses a neutral background (#fcf9f8). Dark mode keeps the orange primary (#7a553e) on an orange-tinted background (#100904).

Color palette

TokenLightDark
Background
#fcf9f8snow
#100904black
Foreground
#080402black
#f9f7f5whitesmoke
Card
#faf7f5whitesmoke
#140b05black
Card foreground
#040201black
#fbfaf9snow
Popover
#faf7f5whitesmoke
#140b05black
Popover foreground
#040201black
#fbfaf9snow
Primary
#7a553esienna
#7a553esienna
Primary foreground
#f8f4f1whitesmoke
#f8f4f1whitesmoke
Secondary
#3e7a55seagreen
#3e7a55seagreen
Secondary foreground
#ffffffwhite
#ffffffwhite
Muted
#eff6f1whitesmoke
#09100cblack
Muted foreground
#45544bdarkslategray
#abbab1darkgray
Accent
#553e7adarkslateblue
#553e7adarkslateblue
Accent foreground
#f4f1f8whitesmoke
#f4f1f8whitesmoke
Destructive
#862209darkred
#e53b10orangered
Destructive foreground
#fbd0c6peachpuff
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#7a553esienna
#7a553esienna

Contrast

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

Light mode
Text on background19.53:1AAA
Text on card19.37:1AAA
Primary button6.02:1AA
Secondary button5.09:1AA
Muted text7.28:1AAA
Accent8.01:1AAA
Destructive6.66:1AA
Dark mode
Text on background18.49:1AAA
Text on card18.64:1AAA
Primary button6.02:1AA
Secondary button5.09:1AA
Muted text9.49:1AAA
Accent8.01:1AAA
Destructive4.24:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.985 0.003 54.464);
  --foreground: oklch(0.116 0.012 62.229);
  --muted: oklch(0.966 0.01 159.24);
  --muted-foreground: oklch(0.43 0.025 158.124);
  --popover: oklch(0.977 0.004 54.443);
  --popover-foreground: oklch(0.092 0.009 62.229);
  --card: oklch(0.977 0.004 54.443);
  --card-foreground: oklch(0.092 0.009 62.229);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.483 0.061 52.645);
  --primary-foreground: oklch(0.97 0.006 54.425);
  --secondary: oklch(0.528 0.087 154.925);
  --secondary-foreground: oklch(1 0 180);
  --accent: oklch(0.416 0.1 299.747);
  --accent-foreground: oklch(0.963 0.009 303.496);
  --destructive: oklch(0.412 0.138 34.231);
  --destructive-foreground: oklch(0.893 0.05 34.351);
  --ring: oklch(0.483 0.061 52.645);
  --chart-1: oklch(0.483 0.061 52.645);
  --chart-2: oklch(0.528 0.087 154.925);
  --chart-3: oklch(0.416 0.1 299.747);
  --chart-4: oklch(0.559 0.093 154.879);
  --chart-5: oklch(0.485 0.066 52.424);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.147 0.018 59.736);
  --foreground: oklch(0.977 0.003 54.459);
  --muted: oklch(0.166 0.015 157.352);
  --muted-foreground: oklch(0.775 0.021 158.838);
  --popover: oklch(0.16 0.021 56.271);
  --popover-foreground: oklch(0.985 0.002 54.475);
  --card: oklch(0.16 0.021 56.271);
  --card-foreground: oklch(0.985 0.002 54.475);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.483 0.061 52.645);
  --primary-foreground: oklch(0.97 0.006 54.425);
  --secondary: oklch(0.528 0.087 154.925);
  --secondary-foreground: oklch(1 0 180);
  --accent: oklch(0.416 0.1 299.747);
  --accent-foreground: oklch(0.963 0.009 303.496);
  --destructive: oklch(0.607 0.212 33.75);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.483 0.061 52.645);
  --chart-1: oklch(0.483 0.061 52.645);
  --chart-2: oklch(0.528 0.087 154.925);
  --chart-3: oklch(0.416 0.1 299.747);
  --chart-4: oklch(0.559 0.093 154.879);
  --chart-5: oklch(0.485 0.066 52.424);
}