Reckless for shadcn/ui

Reckless is a shadcn/ui theme built around a light green primary color (#eef6da) with light violet accents (#e2daf6). The light mode uses a neutral background (#fdfdfb). Dark mode keeps the light green primary (#eef6da) on a green-tinted background (#0c0e06).

Color palette

TokenLightDark
Background
#fdfdfbsnow
#0c0e06black
Foreground
#030401black
#f9faf4whitesmoke
Card
#fbfcf8snow
#0f1108black
Card foreground
#000000black
#fbfcf8snow
Popover
#fdfdfbsnow
#0c0e06black
Popover foreground
#030401black
#f9faf4whitesmoke
Primary
#eef6dabeige
#eef6dabeige
Primary foreground
#242d0bblack
#242d0bblack
Secondary
#e2daf6lavender
#e2daf6lavender
Secondary foreground
#3a1e80indigo
#3a1e80indigo
Muted
#e2deedlavender
#161221black
Muted foreground
#504a5edarkslategray
#a6a1b5darkgray
Accent
#e2daf6lavender
#e2daf6lavender
Accent foreground
#3a1e80indigo
#3a1e80indigo
Destructive
#670504maroon
#ec0c09red
Destructive foreground
#fca3a1lightpink
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#eef6dabeige
#eef6dabeige

Contrast

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

Light mode
Text on background20.24:1AAA
Text on card20.36:1AAA
Primary button12.96:1AAA
Secondary button9.28:1AAA
Muted text6.42:1AA
Accent9.28:1AAA
Destructive6.78:1AA
Dark mode
Text on background18.51:1AAA
Text on card18.41:1AAA
Primary button12.96:1AAA
Secondary button9.28:1AAA
Muted text7.32:1AAA
Accent9.28:1AAA
Destructive4.53:1AA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.994 0.003 119.352);
  --foreground: oklch(0.101 0.014 119.28);
  --muted: oklch(0.909 0.02 298.932);
  --muted-foreground: oklch(0.423 0.034 297.914);
  --popover: oklch(0.994 0.003 119.352);
  --popover-foreground: oklch(0.101 0.014 119.28);
  --card: oklch(0.989 0.005 119.4);
  --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.96 0.038 119.993);
  --primary-foreground: oklch(0.281 0.056 123.467);
  --secondary: oklch(0.903 0.039 298.553);
  --secondary-foreground: oklch(0.341 0.153 288.421);
  --accent: oklch(0.903 0.039 298.553);
  --accent-foreground: oklch(0.341 0.153 288.421);
  --destructive: oklch(0.327 0.129 28.956);
  --destructive-foreground: oklch(0.803 0.106 20.727);
  --ring: oklch(0.96 0.038 119.993);
  --chart-1: oklch(0.96 0.038 119.993);
  --chart-2: oklch(0.903 0.039 298.553);
  --chart-3: oklch(0.903 0.039 298.553);
  --chart-4: oklch(0.935 0.026 298.826);
  --chart-5: oklch(0.962 0.04 120.025);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.158 0.016 120.449);
  --foreground: oklch(0.983 0.008 119.441);
  --muted: oklch(0.196 0.029 296.681);
  --muted-foreground: oklch(0.719 0.03 298.596);
  --popover: oklch(0.158 0.016 120.449);
  --popover-foreground: oklch(0.983 0.008 119.441);
  --card: oklch(0.173 0.019 121.123);
  --card-foreground: oklch(0.989 0.005 119.395);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.96 0.038 119.993);
  --primary-foreground: oklch(0.281 0.056 123.467);
  --secondary: oklch(0.903 0.039 298.553);
  --secondary-foreground: oklch(0.341 0.153 288.421);
  --accent: oklch(0.903 0.039 298.553);
  --accent-foreground: oklch(0.341 0.153 288.421);
  --destructive: oklch(0.595 0.241 29.127);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.96 0.038 119.993);
  --chart-1: oklch(0.96 0.038 119.993);
  --chart-2: oklch(0.903 0.039 298.553);
  --chart-3: oklch(0.903 0.039 298.553);
  --chart-4: oklch(0.935 0.026 298.826);
  --chart-5: oklch(0.962 0.04 120.025);
}