Carefree for shadcn/ui

Carefree is a shadcn/ui theme built around a cyan primary color (#31bed3) with green accents (#bed331). The light mode uses a neutral background (#ffffff). Dark mode keeps the cyan primary (#31bed3) on a cyan-tinted background (#05090a).

Color palette

TokenLightDark
Background
#ffffffwhite
#05090ablack
Foreground
#000000black
#f8fbfcghostwhite
Card
#ffffffwhite
#05090ablack
Card foreground
#000000black
#f8fbfcghostwhite
Popover
#ffffffwhite
#05090ablack
Popover foreground
#000000black
#f8fbfcghostwhite
Primary
#31bed3mediumturquoise
#31bed3mediumturquoise
Primary foreground
#0a292eblack
#0a292eblack
Secondary
#d331bemediumorchid
#d331bemediumorchid
Secondary foreground
#ffffffwhite
#ffffffwhite
Muted
#e9cee5gainsboro
#31162edarkslategray
Muted foreground
#585157dimgray
#aea7addarkgray
Accent
#bed331yellowgreen
#bed331yellowgreen
Accent foreground
#292e0ablack
#292e0ablack
Destructive
#ce3203firebrick
#e73904orangered
Destructive foreground
#ffffffwhite
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#31bed3mediumturquoise
#31bed3mediumturquoise

Contrast

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

Light mode
Text on background21.00:1AAA
Text on card21.00:1AAA
Primary button6.86:1AA
Secondary button4.23:1AA Large
Muted text5.27:1AA
Accent8.43:1AAA
Destructive5.13:1AA
Dark mode
Text on background19.19:1AAA
Text on card19.19:1AAA
Primary button6.86:1AA
Secondary button4.23:1AA Large
Muted text6.94:1AA
Accent8.43:1AAA
Destructive4.21:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(1 0 180);
  --foreground: oklch(0 0 0);
  --muted: oklch(0.88 0.043 330.274);
  --muted-foreground: oklch(0.443 0.013 330.034);
  --popover: oklch(1 0 180);
  --popover-foreground: oklch(0 0 0);
  --card: oklch(1 0 180);
  --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.738 0.117 210.48);
  --primary-foreground: oklch(0.262 0.037 209.332);
  --secondary: oklch(0.615 0.241 334.334);
  --secondary-foreground: oklch(1 0 180);
  --accent: oklch(0.824 0.176 117.28);
  --accent-foreground: oklch(0.289 0.055 116.483);
  --destructive: oklch(0.559 0.197 34.389);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.738 0.117 210.48);
  --chart-1: oklch(0.738 0.117 210.48);
  --chart-2: oklch(0.615 0.241 334.334);
  --chart-3: oklch(0.824 0.176 117.28);
  --chart-4: oklch(0.63 0.233 333.953);
  --chart-5: oklch(0.745 0.12 210.734);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.137 0.008 206.033);
  --foreground: oklch(0.987 0.004 207.918);
  --muted: oklch(0.25 0.057 332.266);
  --muted-foreground: oklch(0.737 0.011 329.87);
  --popover: oklch(0.137 0.008 206.033);
  --popover-foreground: oklch(0.987 0.004 207.918);
  --card: oklch(0.137 0.008 206.033);
  --card-foreground: oklch(0.987 0.004 207.918);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.738 0.117 210.48);
  --primary-foreground: oklch(0.262 0.037 209.332);
  --secondary: oklch(0.615 0.241 334.334);
  --secondary-foreground: oklch(1 0 180);
  --accent: oklch(0.824 0.176 117.28);
  --accent-foreground: oklch(0.289 0.055 116.483);
  --destructive: oklch(0.609 0.216 34.203);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.738 0.117 210.48);
  --chart-1: oklch(0.738 0.117 210.48);
  --chart-2: oklch(0.615 0.241 334.334);
  --chart-3: oklch(0.824 0.176 117.28);
  --chart-4: oklch(0.63 0.233 333.953);
  --chart-5: oklch(0.745 0.12 210.734);
}