Shimmering for shadcn/ui

Shimmering is a shadcn/ui theme built around a vivid green primary color (#71b918) with neutral gray accents (#e3e4e2). The light mode uses a neutral background (#fdfdfb). Dark mode keeps the vivid green primary (#71b918) on a neutral background (#050802).

Color palette

TokenLightDark
Background
#fdfdfbsnow
#050802black
Foreground
#000000black
#fcfdfcwhite
Card
#fafcf8snow
#080c04black
Card foreground
#000000black
#ffffffwhite
Popover
#fafcf8snow
#080c04black
Popover foreground
#000000black
#ffffffwhite
Primary
#71b918olivedrab
#71b918olivedrab
Primary foreground
#030501black
#030501black
Secondary
#e3e4e2gainsboro
#24291fdarkslategray
Secondary foreground
#4a4e46darkslategray
#bec6b3silver
Muted
#e3e7dfgainsboro
#1c2018black
Muted foreground
#575855dimgray
#a8aaa7darkgray
Accent
#e3e4e2gainsboro
#24291fdarkslategray
Accent foreground
#4a4e46darkslategray
#bec6b3silver
Destructive
#ba1e12firebrick
#ec4c41tomato
Destructive foreground
#ffffffwhite
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#71b918olivedrab
#71b918olivedrab

Contrast

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

Light mode
Text on background20.66:1AAA
Text on card20.33:1AAA
Primary button8.43:1AAA
Secondary button6.68:1AA
Muted text5.72:1AA
Accent6.68:1AA
Destructive6.42:1AA
Dark mode
Text on background19.76:1AAA
Text on card19.75:1AAA
Primary button8.43:1AAA
Secondary button8.46:1AAA
Muted text7.04:1AAA
Accent8.46:1AAA
Destructive3.69:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.994 0.003 126.464);
  --foreground: oklch(0 0 0);
  --muted: oklch(0.923 0.012 126.595);
  --muted-foreground: oklch(0.459 0.006 126.593);
  --popover: oklch(0.988 0.006 126.501);
  --popover-foreground: oklch(0 0 0);
  --card: oklch(0.988 0.006 126.501);
  --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.711 0.192 132.486);
  --primary-foreground: oklch(0.104 0.021 125.206);
  --secondary: oklch(0.918 0.004 126.484);
  --secondary-foreground: oklch(0.417 0.013 126.825);
  --accent: oklch(0.918 0.004 126.484);
  --accent-foreground: oklch(0.417 0.013 126.825);
  --destructive: oklch(0.507 0.191 29.614);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.711 0.192 132.486);
  --chart-1: oklch(0.711 0.192 132.486);
  --chart-2: oklch(0.918 0.004 126.484);
  --chart-3: oklch(0.918 0.004 126.484);
  --chart-4: oklch(0.941 0.003 126.468);
  --chart-5: oklch(0.719 0.196 132.722);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.127 0.018 125.541);
  --foreground: oklch(0.993 0.001 126.438);
  --muted: oklch(0.238 0.017 127.353);
  --muted-foreground: oklch(0.736 0.005 126.519);
  --popover: oklch(0.145 0.021 125.738);
  --popover-foreground: oklch(1 0 180);
  --card: oklch(0.145 0.021 125.738);
  --card-foreground: oklch(1 0 180);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.711 0.192 132.486);
  --primary-foreground: oklch(0.104 0.021 125.206);
  --secondary: oklch(0.272 0.019 127.358);
  --secondary-foreground: oklch(0.815 0.027 126.86);
  --accent: oklch(0.272 0.019 127.358);
  --accent-foreground: oklch(0.815 0.027 126.86);
  --destructive: oklch(0.64 0.198 28.104);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.711 0.192 132.486);
  --chart-1: oklch(0.711 0.192 132.486);
  --chart-2: oklch(0.272 0.019 127.358);
  --chart-3: oklch(0.272 0.019 127.358);
  --chart-4: oklch(0.305 0.022 127.405);
  --chart-5: oklch(0.719 0.196 132.722);
}