Smart for shadcn/ui

Smart is a shadcn/ui theme built around a neutral gray primary color (#707070) with muted light red accents (#d4b5b5). The light mode uses a neutral background (#fdf7f7). Dark mode keeps the neutral gray primary (#707070) on a neutral background (#030202).

Color palette

TokenLightDark
Background
#fdf7f7snow
#030202black
Foreground
#000000black
#fdfcfcsnow
Card
#fcf3f3lavenderblush
#070404black
Card foreground
#000000black
#ffffffwhite
Popover
#fcf3f3lavenderblush
#070404black
Popover foreground
#000000black
#ffffffwhite
Primary
#707070dimgray
#707070dimgray
Primary foreground
#ffffffwhite
#ffffffwhite
Secondary
#dfd2d2lightgrey
#1b1818black
Secondary foreground
#4b3535darkslategray
#b7aeaedarkgray
Muted
#f1e9e9linen
#160e0eblack
Muted foreground
#6b5757dimgray
#a89494rosybrown
Accent
#d4b5b5silver
#352727darkslategray
Accent foreground
#372020darkslategray
#cfbebesilver
Destructive
#ae2a09firebrick
#da350borangered
Destructive foreground
#ffffffwhite
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#707070dimgray
#707070dimgray

Contrast

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

Light mode
Text on background19.82:1AAA
Text on card19.24:1AAA
Primary button4.93:1AA
Secondary button7.70:1AAA
Muted text5.62:1AA
Accent7.96:1AAA
Destructive6.67:1AA
Dark mode
Text on background20.24:1AAA
Text on card20.47:1AAA
Primary button4.93:1AA
Secondary button8.13:1AAA
Muted text6.65:1AA
Accent8.00:1AAA
Destructive4.67:1AA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.981 0.006 17.261);
  --foreground: oklch(0 0 0);
  --muted: oklch(0.94 0.009 17.322);
  --muted-foreground: oklch(0.477 0.026 18.087);
  --popover: oklch(0.971 0.009 17.315);
  --popover-foreground: oklch(0 0 0);
  --card: oklch(0.971 0.009 17.315);
  --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.546 0 167.471);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.875 0.014 17.433);
  --secondary-foreground: oklch(0.353 0.031 18.753);
  --accent: oklch(0.8 0.035 17.912);
  --accent-foreground: oklch(0.273 0.035 19.585);
  --destructive: oklch(0.495 0.173 33.751);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.546 0 167.471);
  --chart-1: oklch(0.546 0 167.471);
  --chart-2: oklch(0.875 0.014 17.433);
  --chart-3: oklch(0.8 0.035 17.912);
  --chart-4: oklch(0.9 0.011 17.369);
  --chart-5: oklch(0.54 0.008 17.417);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.087 0.007 18.604);
  --foreground: oklch(0.991 0.002 17.185);
  --muted: oklch(0.173 0.015 18.686);
  --muted-foreground: oklch(0.685 0.023 17.73);
  --popover: oklch(0.11 0.009 18.604);
  --popover-foreground: oklch(1 0 180);
  --card: oklch(0.11 0.009 18.604);
  --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.546 0 167.471);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.212 0.005 17.541);
  --secondary-foreground: oklch(0.758 0.011 17.389);
  --accent: oklch(0.289 0.021 18.429);
  --accent-foreground: oklch(0.817 0.019 17.55);
  --destructive: oklch(0.583 0.206 33.539);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.546 0 167.471);
  --chart-1: oklch(0.546 0 167.471);
  --chart-2: oklch(0.212 0.005 17.541);
  --chart-3: oklch(0.289 0.021 18.429);
  --chart-4: oklch(0.244 0.006 17.578);
  --chart-5: oklch(0.54 0.008 17.417);
}