Reckless for shadcn/ui

Reckless is a shadcn/ui theme built around a neutral gray primary color (#68616b) with neutral gray accents (#616b68). The light mode uses a neutral background (#ffffff). Dark mode keeps the neutral gray primary (#68616b) on a violet-tinted background (#0c0510).

Color palette

TokenLightDark
Background
#ffffffwhite
#0c0510black
Foreground
#09040cblack
#f8f6f9whitesmoke
Card
#fcfcfcsnow
#100613black
Card foreground
#060208black
#faf9fbghostwhite
Popover
#fcfcfcsnow
#100613black
Popover foreground
#060208black
#faf9fbghostwhite
Primary
#68616bdimgray
#68616bdimgray
Primary foreground
#ffffffwhite
#ffffffwhite
Secondary
#6b6861dimgray
#6b6861dimgray
Secondary foreground
#ffffffwhite
#ffffffwhite
Muted
#f0ede5linen
#1a170fblack
Muted foreground
#545454dimgray
#abababdarkgray
Accent
#616b68dimgray
#616b68dimgray
Accent foreground
#ffffffwhite
#ffffffwhite
Destructive
#761304maroon
#f84b30tomato
Destructive foreground
#fcbab0lightpink
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#68616bdimgray
#68616bdimgray

Contrast

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

Light mode
Text on background20.30:1AAA
Text on card20.14:1AAA
Primary button5.98:1AA
Secondary button5.54:1AA
Muted text6.47:1AA
Accent5.50:1AA
Destructive6.83:1AA
Dark mode
Text on background18.70:1AAA
Text on card18.91:1AAA
Primary button5.98:1AA
Secondary button5.54:1AA
Muted text7.80:1AAA
Accent5.50:1AA
Destructive3.48:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(1 0 180);
  --foreground: oklch(0.121 0.025 318.167);
  --muted: oklch(0.946 0.011 88.864);
  --muted-foreground: oklch(0.446 0 180);
  --popover: oklch(0.992 0 161.565);
  --popover-foreground: oklch(0.106 0.022 318.388);
  --card: oklch(0.992 0 161.565);
  --card-foreground: oklch(0.106 0.022 318.388);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.503 0.018 316.503);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.518 0.012 88.922);
  --secondary-foreground: oklch(1 0 180);
  --accent: oklch(0.519 0.013 176.957);
  --accent-foreground: oklch(1 0 180);
  --destructive: oklch(0.367 0.135 31.752);
  --destructive-foreground: oklch(0.848 0.078 28.683);
  --ring: oklch(0.503 0.018 316.503);
  --chart-1: oklch(0.503 0.018 316.503);
  --chart-2: oklch(0.518 0.012 88.922);
  --chart-3: oklch(0.519 0.013 176.957);
  --chart-4: oklch(0.546 0.013 88.923);
  --chart-5: oklch(0.498 0.029 316.437);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.134 0.028 317.022);
  --foreground: oklch(0.975 0.005 316.593);
  --muted: oklch(0.205 0.016 88.992);
  --muted-foreground: oklch(0.741 0 171.254);
  --popover: oklch(0.146 0.033 316.35);
  --popover-foreground: oklch(0.983 0.003 316.599);
  --card: oklch(0.146 0.033 316.35);
  --card-foreground: oklch(0.983 0.003 316.599);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.503 0.018 316.503);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.518 0.012 88.922);
  --secondary-foreground: oklch(1 0 180);
  --accent: oklch(0.519 0.013 176.957);
  --accent-foreground: oklch(1 0 180);
  --destructive: oklch(0.655 0.213 31.624);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.503 0.018 316.503);
  --chart-1: oklch(0.503 0.018 316.503);
  --chart-2: oklch(0.518 0.012 88.922);
  --chart-3: oklch(0.519 0.013 176.957);
  --chart-4: oklch(0.546 0.013 88.923);
  --chart-5: oklch(0.498 0.029 316.437);
}