Cloudy for shadcn/ui

Cloudy is a shadcn/ui theme built around a green primary color (#bedb3d) with indigo accents (#5a3ddb). The light mode uses a neutral background (#ffffff). Dark mode keeps the green primary (#bedb3d) on a green-tinted background (#0d0f06).

Color palette

TokenLightDark
Background
#ffffffwhite
#0d0f06black
Foreground
#0f1202black
#fbfbf8snow
Card
#fcfcfcsnow
#101207black
Card foreground
#0b0e02black
#fdfdfcwhite
Popover
#ffffffwhite
#0d0f06black
Popover foreground
#0f1202black
#fbfbf8snow
Primary
#bedb3dyellowgreen
#bedb3dyellowgreen
Primary foreground
#37410cdarkolivegreen
#37410cdarkolivegreen
Secondary
#5a3ddbslateblue
#5a3ddbslateblue
Secondary foreground
#ffffffwhite
#ffffffwhite
Muted
#efeff1whitesmoke
#0f0e10black
Muted foreground
#62606cdimgray
#95939fdarkgray
Accent
#5a3ddbslateblue
#5a3ddbslateblue
Accent foreground
#ffffffwhite
#ffffffwhite
Destructive
#ba4603firebrick
#f15b04orangered
Destructive foreground
#ffffffwhite
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#bedb3dyellowgreen
#bedb3dyellowgreen

Contrast

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

Light mode
Text on background18.95:1AAA
Text on card19.06:1AAA
Primary button6.98:1AA
Secondary button6.70:1AA
Muted text5.35:1AA
Accent6.70:1AA
Destructive5.30:1AA
Dark mode
Text on background18.63:1AAA
Text on card18.49:1AAA
Primary button6.98:1AA
Secondary button6.70:1AA
Muted text6.36:1AA
Accent6.70:1AA
Destructive3.36:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(1 0 180);
  --foreground: oklch(0.174 0.033 117.332);
  --muted: oklch(0.952 0.002 294.775);
  --muted-foreground: oklch(0.495 0.019 294.088);
  --popover: oklch(1 0 180);
  --popover-foreground: oklch(0.174 0.033 117.332);
  --card: oklch(0.992 0 161.565);
  --card-foreground: oklch(0.154 0.029 116.422);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.844 0.179 119.574);
  --primary-foreground: oklch(0.353 0.074 119.514);
  --secondary: oklch(0.498 0.226 282.857);
  --secondary-foreground: oklch(1 0 180);
  --accent: oklch(0.498 0.226 282.857);
  --accent-foreground: oklch(1 0 180);
  --destructive: oklch(0.546 0.163 42.272);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.844 0.179 119.574);
  --chart-1: oklch(0.844 0.179 119.574);
  --chart-2: oklch(0.498 0.226 282.857);
  --chart-3: oklch(0.498 0.226 282.857);
  --chart-4: oklch(0.527 0.213 284.786);
  --chart-5: oklch(0.853 0.184 119.733);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.162 0.02 116.485);
  --foreground: oklch(0.988 0.004 114.9);
  --muted: oklch(0.167 0.004 294.397);
  --muted-foreground: oklch(0.669 0.018 294.321);
  --popover: oklch(0.162 0.02 116.485);
  --popover-foreground: oklch(0.988 0.004 114.9);
  --card: oklch(0.178 0.023 117.021);
  --card-foreground: oklch(0.994 0.002 114.861);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.844 0.179 119.574);
  --primary-foreground: oklch(0.353 0.074 119.514);
  --secondary: oklch(0.498 0.226 282.857);
  --secondary-foreground: oklch(1 0 180);
  --accent: oklch(0.498 0.226 282.857);
  --accent-foreground: oklch(1 0 180);
  --destructive: oklch(0.66 0.2 41.608);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.844 0.179 119.574);
  --chart-1: oklch(0.844 0.179 119.574);
  --chart-2: oklch(0.498 0.226 282.857);
  --chart-3: oklch(0.498 0.226 282.857);
  --chart-4: oklch(0.527 0.213 284.786);
  --chart-5: oklch(0.853 0.184 119.733);
}