Row for shadcn/ui

Row is a shadcn/ui theme built around a neutral gray primary color (#443f3c) with neutral gray accents (#3f3c44). The light mode uses a neutral background (#fcfaf8). Dark mode keeps the neutral gray primary (#443f3c) on a neutral background (#000000).

Color palette

TokenLightDark
Background
#fcfaf8snow
#000000black
Foreground
#140b06black
#fdfcfbsnow
Card
#fcfaf8snow
#000000black
Card foreground
#140b06black
#fdfcfbsnow
Popover
#fcfaf8snow
#000000black
Popover foreground
#140b06black
#fdfcfbsnow
Primary
#443f3cdarkslategray
#443f3cdarkslategray
Primary foreground
#dbd8d6gainsboro
#dbd8d6gainsboro
Secondary
#3c443fdarkslategray
#3c443fdarkslategray
Secondary foreground
#d6dbd8gainsboro
#d6dbd8gainsboro
Muted
#e4e7e5gainsboro
#181b19black
Muted foreground
#424342darkslategray
#bcbdbdsilver
Accent
#3f3c44darkslategray
#3f3c44darkslategray
Accent foreground
#d8d6dbgainsboro
#d8d6dbgainsboro
Destructive
#aa420esaddlebrown
#d45211chocolate
Destructive foreground
#ffffffwhite
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#443f3cdarkslategray
#443f3cdarkslategray

Contrast

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

Light mode
Text on background18.60:1AAA
Text on card18.60:1AAA
Primary button7.33:1AAA
Secondary button7.20:1AAA
Muted text7.99:1AAA
Accent7.51:1AAA
Destructive6.02:1AA
Dark mode
Text on background20.49:1AAA
Text on card20.49:1AAA
Primary button7.33:1AAA
Secondary button7.20:1AAA
Muted text9.20:1AAA
Accent7.51:1AAA
Destructive4.17:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.985 0.003 56.397);
  --foreground: oklch(0.161 0.019 57.621);
  --muted: oklch(0.925 0.005 160.115);
  --muted-foreground: oklch(0.381 0.002 160.1);
  --popover: oklch(0.985 0.003 56.397);
  --popover-foreground: oklch(0.161 0.019 57.621);
  --card: oklch(0.985 0.003 56.397);
  --card-foreground: oklch(0.161 0.019 57.621);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.371 0.008 56.13);
  --primary-foreground: oklch(0.885 0.004 56.373);
  --secondary: oklch(0.376 0.013 159.438);
  --secondary-foreground: oklch(0.887 0.006 160.073);
  --accent: oklch(0.362 0.014 303.807);
  --accent-foreground: oklch(0.88 0.007 304.239);
  --destructive: oklch(0.514 0.148 41.912);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.371 0.008 56.13);
  --chart-1: oklch(0.371 0.008 56.13);
  --chart-2: oklch(0.376 0.013 159.438);
  --chart-3: oklch(0.362 0.014 303.807);
  --chart-4: oklch(0.406 0.014 159.422);
  --chart-5: oklch(0.372 0.012 55.979);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0 0 0);
  --foreground: oklch(0.993 0.002 56.413);
  --muted: oklch(0.219 0.007 159.503);
  --muted-foreground: oklch(0.798 0.002 160.18);
  --popover: oklch(0 0 0);
  --popover-foreground: oklch(0.993 0.002 56.413);
  --card: oklch(0 0 0);
  --card-foreground: oklch(0.993 0.002 56.413);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.371 0.008 56.13);
  --primary-foreground: oklch(0.885 0.004 56.373);
  --secondary: oklch(0.376 0.013 159.438);
  --secondary-foreground: oklch(0.887 0.006 160.073);
  --accent: oklch(0.362 0.014 303.807);
  --accent-foreground: oklch(0.88 0.007 304.239);
  --destructive: oklch(0.605 0.177 41.531);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.371 0.008 56.13);
  --chart-1: oklch(0.371 0.008 56.13);
  --chart-2: oklch(0.376 0.013 159.438);
  --chart-3: oklch(0.362 0.014 303.807);
  --chart-4: oklch(0.406 0.014 159.422);
  --chart-5: oklch(0.372 0.012 55.979);
}