SmartGarant for shadcn/ui

SmartGarant is a shadcn/ui theme built around a vivid red primary color (#fe595e) with muted deep blue accents (#333f50). The light mode uses a neutral background (#ffffff). Dark mode keeps the vivid red primary (#fe595e) on a neutral background (#000000).

Color palette

TokenLightDark
Background
#ffffffwhite
#000000black
Foreground
#333f50darkslategray
#ffffffwhite
Card
#ffffffwhite
#040e10black
Card foreground
#000000black
#ffffffwhite
Popover
#ffffffwhite
#040e10black
Popover foreground
#010809black
#ffffffwhite
Primary
#fe595etomato
#fe595etomato
Primary foreground
#ffffffwhite
#ffffffwhite
Secondary
#333f50darkslategray
#333f50darkslategray
Secondary foreground
#ffffffwhite
#ffffffwhite
Muted
#f5f5f5whitesmoke
#333f50darkslategray
Muted foreground
#333f50darkslategray
#f5f5f5whitesmoke
Accent
#333f50darkslategray
#fe595etomato
Accent foreground
#f5f8ffghostwhite
#ffffffwhite
Destructive
#8d1b07darkred
#e02b0borangered
Destructive foreground
#ffffffwhite
#ffffffwhite
Border
#e8e3e5gainsboro
#161b1dblack
Input
#e8e3e5gainsboro
#767676gray
Ring
#333f50darkslategray
#ffffffwhite

Contrast

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

Light mode
Text on background10.67:1AAA
Text on card21.00:1AAA
Primary button3.08:1AA Large
Secondary button10.67:1AAA
Muted text9.78:1AAA
Accent10.03:1AAA
Destructive9.16:1AAA
Dark mode
Text on background21.00:1AAA
Text on card19.52:1AAA
Primary button3.08:1AA Large
Secondary button10.67:1AAA
Muted text9.78:1AAA
Accent3.08:1AA Large
Destructive4.64:1AA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(1 0 180);
  --foreground: oklch(0.364 0.034 257.095);
  --muted: oklch(0.97 0 187.595);
  --muted-foreground: oklch(0.364 0.034 257.095);
  --popover: oklch(1 0 180);
  --popover-foreground: oklch(0.124 0.018 203.278);
  --card: oklch(1 0 180);
  --card-foreground: oklch(0 0 0);
  --border: oklch(0.921 0.005 356.805);
  --input: oklch(0.921 0.005 356.805);
  --primary: oklch(0.686 0.2 22.434);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.364 0.034 257.095);
  --secondary-foreground: oklch(1 0 180);
  --accent: oklch(0.364 0.034 257.095);
  --accent-foreground: oklch(0.979 0.009 267.363);
  --destructive: oklch(0.419 0.152 32.039);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.364 0.034 257.095);
  --chart-1: oklch(0.686 0.2 22.434);
  --chart-2: oklch(0.364 0.034 257.095);
  --chart-3: oklch(0.671 0.172 262.282);
  --chart-4: oklch(0.697 0.098 350.909);
  --chart-5: oklch(0.678 0.081 213.453);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0 0 0);
  --foreground: oklch(1 0 180);
  --muted: oklch(0.364 0.034 257.095);
  --muted-foreground: oklch(0.97 0 187.595);
  --popover: oklch(0.154 0.017 209.855);
  --popover-foreground: oklch(1 0 180);
  --card: oklch(0.154 0.017 209.855);
  --card-foreground: oklch(1 0 180);
  --border: oklch(0.218 0.008 223.867);
  --input: oklch(0.566 0 172.875);
  --primary: oklch(0.686 0.2 22.434);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.364 0.034 257.095);
  --secondary-foreground: oklch(1 0 180);
  --accent: oklch(0.686 0.2 22.434);
  --accent-foreground: oklch(1 0 180);
  --destructive: oklch(0.586 0.218 31.734);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(1 0 180);
  --chart-1: oklch(0.686 0.2 22.434);
  --chart-2: oklch(0.364 0.034 257.095);
  --chart-3: oklch(0.671 0.172 262.282);
  --chart-4: oklch(0.697 0.098 350.909);
  --chart-5: oklch(0.678 0.081 213.453);
}