Careless for shadcn/ui

Careless is a shadcn/ui theme built around a vivid deep green primary color (#021804) with muted light green accents (#cadecb). The light mode uses a neutral background (#f7fdf7). Dark mode keeps the vivid deep green primary (#021804) on a green-tinted background (#060e07).

Color palette

TokenLightDark
Background
#f7fdf7mintcream
#060e07black
Foreground
#020d03black
#f5faf5whitesmoke
Card
#f7fdf7mintcream
#060e07black
Card foreground
#020d03black
#f5faf5whitesmoke
Popover
#f7fdf7mintcream
#060e07black
Popover foreground
#020d03black
#f5faf5whitesmoke
Primary
#021804black
#021804black
Primary foreground
#0fd720limegreen
#0fd720limegreen
Secondary
#e5ebe5gainsboro
#212721black
Secondary foreground
#435b45darkslategray
#b7c2b8silver
Muted
#ebefecwhitesmoke
#101410black
Muted foreground
#515251darkslategray
#adaeaddarkgray
Accent
#cadecblightgrey
#2f4131darkslategray
Accent foreground
#2d482fdarkslategray
#cad8cblightgrey
Destructive
#a61b03firebrick
#fb2904orangered
Destructive foreground
#fee1dcmistyrose
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#021804black
#021804black

Contrast

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

Light mode
Text on background19.15:1AAA
Text on card19.15:1AAA
Primary button9.49:1AAA
Secondary button6.16:1AA
Muted text6.76:1AA
Accent7.10:1AAA
Destructive6.13:1AA
Dark mode
Text on background18.49:1AAA
Text on card18.49:1AAA
Primary button9.49:1AAA
Secondary button8.33:1AAA
Muted text8.36:1AAA
Accent7.38:1AAA
Destructive3.87:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.988 0.01 147.962);
  --foreground: oklch(0.143 0.035 146.146);
  --muted: oklch(0.948 0.006 148);
  --muted-foreground: oklch(0.438 0.003 147.987);
  --popover: oklch(0.988 0.01 147.962);
  --popover-foreground: oklch(0.143 0.035 146.146);
  --card: oklch(0.988 0.01 147.962);
  --card-foreground: oklch(0.143 0.035 146.146);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.183 0.052 145.245);
  --primary-foreground: oklch(0.762 0.252 143.052);
  --secondary: oklch(0.935 0.011 147.938);
  --secondary-foreground: oklch(0.445 0.045 146.919);
  --accent: oklch(0.879 0.033 147.666);
  --accent-foreground: oklch(0.373 0.053 146.411);
  --destructive: oklch(0.467 0.176 31.809);
  --destructive-foreground: oklch(0.933 0.033 29.633);
  --ring: oklch(0.183 0.052 145.245);
  --chart-1: oklch(0.183 0.052 145.245);
  --chart-2: oklch(0.935 0.011 147.938);
  --chart-3: oklch(0.879 0.033 147.666);
  --chart-4: oklch(0.956 0.007 147.983);
  --chart-5: oklch(0.184 0.054 145.166);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.153 0.021 146.938);
  --foreground: oklch(0.98 0.009 147.972);
  --muted: oklch(0.184 0.009 147.559);
  --muted-foreground: oklch(0.75 0.003 148.025);
  --popover: oklch(0.153 0.021 146.938);
  --popover-foreground: oklch(0.98 0.009 147.972);
  --card: oklch(0.153 0.021 146.938);
  --card-foreground: oklch(0.98 0.009 147.972);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.183 0.052 145.245);
  --primary-foreground: oklch(0.762 0.252 143.052);
  --secondary: oklch(0.263 0.013 147.546);
  --secondary-foreground: oklch(0.803 0.018 147.829);
  --accent: oklch(0.355 0.036 146.914);
  --accent-foreground: oklch(0.869 0.024 147.768);
  --destructive: oklch(0.634 0.243 31.339);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.183 0.052 145.245);
  --chart-1: oklch(0.183 0.052 145.245);
  --chart-2: oklch(0.263 0.013 147.546);
  --chart-3: oklch(0.355 0.036 146.914);
  --chart-4: oklch(0.295 0.015 147.519);
  --chart-5: oklch(0.184 0.054 145.166);
}