Loquat for shadcn/ui

Loquat is a shadcn/ui theme built around a vivid red primary color (#e00b3c) with vivid teal accents (#0be0ae). The light mode uses a neutral background (#fcf8f9). Dark mode keeps the vivid red primary (#e00b3c) on a red-tinted background (#0b0406).

Color palette

TokenLightDark
Background
#fcf8f9snow
#0b0406black
Foreground
#000000black
#faf5f6whitesmoke
Card
#faf5f6whitesmoke
#0f0508black
Card foreground
#000000black
#fcf8f9snow
Popover
#faf5f6whitesmoke
#0f0508black
Popover foreground
#000000black
#fcf8f9snow
Primary
#e00b3ccrimson
#e00b3ccrimson
Primary foreground
#ffffffwhite
#ffffffwhite
Secondary
#0be0aemediumspringgreen
#0be0aemediumspringgreen
Secondary foreground
#011d17black
#011d17black
Muted
#e7f4f1honeydew
#0b1815black
Muted foreground
#505856darkslategray
#a7afaddarkgray
Accent
#0be0aemediumspringgreen
#0be0aemediumspringgreen
Accent foreground
#011d17black
#011d17black
Destructive
#871d0ddarkred
#db2f14firebrick
Destructive foreground
#fad2ccpink
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#e00b3ccrimson
#e00b3ccrimson

Contrast

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

Light mode
Text on background19.94:1AAA
Text on card19.43:1AAA
Primary button4.90:1AA
Secondary button10.33:1AAA
Muted text6.45:1AA
Accent10.33:1AAA
Destructive6.83:1AA
Dark mode
Text on background18.80:1AAA
Text on card19.03:1AAA
Primary button4.90:1AA
Secondary button10.33:1AAA
Muted text8.09:1AAA
Accent10.33:1AAA
Destructive4.73:1AA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.983 0.004 1.067);
  --foreground: oklch(0 0 0);
  --muted: oklch(0.955 0.014 180.539);
  --muted-foreground: oklch(0.454 0.011 180.258);
  --popover: oklch(0.974 0.006 1.121);
  --popover-foreground: oklch(0 0 0);
  --card: oklch(0.974 0.006 1.121);
  --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.576 0.228 19.815);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.807 0.16 169.167);
  --secondary-foreground: oklch(0.208 0.037 174.861);
  --accent: oklch(0.807 0.16 169.167);
  --accent-foreground: oklch(0.208 0.037 174.861);
  --destructive: oklch(0.41 0.144 31.632);
  --destructive-foreground: oklch(0.896 0.046 28.285);
  --ring: oklch(0.576 0.228 19.815);
  --chart-1: oklch(0.576 0.228 19.815);
  --chart-2: oklch(0.807 0.16 169.167);
  --chart-3: oklch(0.807 0.16 169.167);
  --chart-4: oklch(0.846 0.168 169.1);
  --chart-5: oklch(0.582 0.232 20.475);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.122 0.017 1.071);
  --foreground: oklch(0.974 0.006 1.126);
  --muted: oklch(0.197 0.019 177.775);
  --muted-foreground: oklch(0.747 0.01 180.585);
  --popover: oklch(0.136 0.02 2.176);
  --popover-foreground: oklch(0.983 0.004 1.07);
  --card: oklch(0.136 0.02 2.176);
  --card-foreground: oklch(0.983 0.004 1.07);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.576 0.228 19.815);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.807 0.16 169.167);
  --secondary-foreground: oklch(0.208 0.037 174.861);
  --accent: oklch(0.807 0.16 169.167);
  --accent-foreground: oklch(0.208 0.037 174.861);
  --destructive: oklch(0.581 0.211 31.526);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.576 0.228 19.815);
  --chart-1: oklch(0.576 0.228 19.815);
  --chart-2: oklch(0.807 0.16 169.167);
  --chart-3: oklch(0.807 0.16 169.167);
  --chart-4: oklch(0.846 0.168 169.1);
  --chart-5: oklch(0.582 0.232 20.475);
}