Careless for shadcn/ui

Careless is a shadcn/ui theme built around a green primary color (#a4af41) with indigo accents (#4c41af). The light mode uses a neutral background (#fefefb). Dark mode keeps the green primary (#a4af41) on a neutral background (#040401).

Color palette

TokenLightDark
Background
#fefefbwhite
#040401black
Foreground
#0b0c04black
#fbfbf9snow
Card
#fdfdf7snow
#080802black
Card foreground
#070802black
#fdfdfcwhite
Popover
#fefefbwhite
#040401black
Popover foreground
#0b0c04black
#fbfbf9snow
Primary
#a4af41yellowgreen
#a4af41yellowgreen
Primary foreground
#181a0ablack
#181a0ablack
Secondary
#4c41afdarkslateblue
#4c41afdarkslateblue
Secondary foreground
#ffffffwhite
#ffffffwhite
Muted
#dbdae2gainsboro
#1e1d25black
Muted foreground
#55536adimgray
#9895acdarkgray
Accent
#4c41afdarkslateblue
#4c41afdarkslateblue
Accent foreground
#ffffffwhite
#ffffffwhite
Destructive
#cb1901firebrick
#fe3a20orangered
Destructive foreground
#ffffffwhite
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#a4af41yellowgreen
#a4af41yellowgreen

Contrast

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

Light mode
Text on background19.45:1AAA
Text on card19.70:1AAA
Primary button7.37:1AAA
Secondary button7.85:1AAA
Muted text5.33:1AA
Accent7.85:1AAA
Destructive5.71:1AA
Dark mode
Text on background19.81:1AAA
Text on card19.72:1AAA
Primary button7.37:1AAA
Secondary button7.85:1AAA
Muted text5.74:1AA
Accent7.85:1AAA
Destructive3.60: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.996 0.004 111.097);
  --foreground: oklch(0.149 0.02 112.586);
  --muted: oklch(0.891 0.011 290.784);
  --muted-foreground: oklch(0.453 0.037 289.429);
  --popover: oklch(0.996 0.004 111.097);
  --popover-foreground: oklch(0.149 0.02 112.586);
  --card: oklch(0.992 0.009 111.181);
  --card-foreground: oklch(0.13 0.017 112.324);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.724 0.134 114.628);
  --primary-foreground: oklch(0.211 0.029 113.606);
  --secondary: oklch(0.452 0.169 281.789);
  --secondary-foreground: oklch(1 0 180);
  --accent: oklch(0.452 0.169 281.789);
  --accent-foreground: oklch(1 0 180);
  --destructive: oklch(0.536 0.21 30.744);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.724 0.134 114.628);
  --chart-1: oklch(0.724 0.134 114.628);
  --chart-2: oklch(0.452 0.169 281.789);
  --chart-3: oklch(0.452 0.169 281.789);
  --chart-4: oklch(0.472 0.177 281.703);
  --chart-5: oklch(0.734 0.14 114.782);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.104 0.015 112.436);
  --foreground: oklch(0.987 0.002 111.06);
  --muted: oklch(0.236 0.015 289.767);
  --muted-foreground: oklch(0.68 0.033 290.078);
  --popover: oklch(0.104 0.015 112.436);
  --popover-foreground: oklch(0.987 0.002 111.06);
  --card: oklch(0.131 0.019 112.436);
  --card-foreground: oklch(0.993 0.001 111.037);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.724 0.134 114.628);
  --primary-foreground: oklch(0.211 0.029 113.606);
  --secondary: oklch(0.452 0.169 281.789);
  --secondary-foreground: oklch(1 0 180);
  --accent: oklch(0.452 0.169 281.789);
  --accent-foreground: oklch(1 0 180);
  --destructive: oklch(0.65 0.234 31.039);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.724 0.134 114.628);
  --chart-1: oklch(0.724 0.134 114.628);
  --chart-2: oklch(0.452 0.169 281.789);
  --chart-3: oklch(0.452 0.169 281.789);
  --chart-4: oklch(0.472 0.177 281.703);
  --chart-5: oklch(0.734 0.14 114.782);
}