Weekly for shadcn/ui

Weekly is a shadcn/ui theme built around a green primary color (#40d129) with purple accents (#ba29d1). The light mode uses a neutral background (#f8fdf7). Dark mode keeps the green primary (#40d129) on a neutral background (#030802).

Color palette

TokenLightDark
Background
#f8fdf7mintcream
#030802black
Foreground
#030902black
#f6f9f5whitesmoke
Card
#f4fbf3whitesmoke
#040c03black
Card foreground
#010401black
#f9fbf9mintcream
Popover
#f4fbf3whitesmoke
#040c03black
Popover foreground
#010401black
#f9fbf9mintcream
Primary
#40d129limegreen
#40d129limegreen
Primary foreground
#0c2608black
#0c2608black
Secondary
#ba29d1darkorchid
#ba29d1darkorchid
Secondary foreground
#ffffffwhite
#ffffffwhite
Muted
#eae6ealavender
#181519black
Muted foreground
#6a546ddimgray
#a792abdarkgray
Accent
#ba29d1darkorchid
#ba29d1darkorchid
Accent foreground
#ffffffwhite
#ffffffwhite
Destructive
#bc0701firebrick
#ef0901red
Destructive foreground
#ffffffwhite
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#40d129limegreen
#40d129limegreen

Contrast

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

Light mode
Text on background19.48:1AAA
Text on card19.63:1AAA
Primary button7.97:1AAA
Secondary button4.84:1AA
Muted text5.47:1AA
Accent4.84:1AA
Destructive6.63:1AA
Dark mode
Text on background19.03:1AAA
Text on card19.05:1AAA
Primary button7.97:1AAA
Secondary button4.84:1AA
Muted text6.32:1AA
Accent4.84:1AA
Destructive4.47:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.988 0.009 141.567);
  --foreground: oklch(0.125 0.028 139.457);
  --muted: oklch(0.929 0.007 321.612);
  --muted-foreground: oklch(0.478 0.048 321.858);
  --popover: oklch(0.982 0.013 141.554);
  --popover-foreground: oklch(0.099 0.022 139.457);
  --card: oklch(0.982 0.013 141.554);
  --card-foreground: oklch(0.099 0.022 139.457);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.754 0.233 141.361);
  --primary-foreground: oklch(0.241 0.063 141.007);
  --secondary: oklch(0.584 0.251 321.763);
  --secondary-foreground: oklch(1 0 180);
  --accent: oklch(0.584 0.251 321.763);
  --accent-foreground: oklch(1 0 180);
  --destructive: oklch(0.501 0.203 29.566);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.754 0.233 141.361);
  --chart-1: oklch(0.754 0.233 141.361);
  --chart-2: oklch(0.584 0.251 321.763);
  --chart-3: oklch(0.584 0.251 321.763);
  --chart-4: oklch(0.603 0.25 321.877);
  --chart-5: oklch(0.763 0.239 141.416);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.123 0.023 139.83);
  --foreground: oklch(0.979 0.006 141.575);
  --muted: oklch(0.201 0.01 321.726);
  --muted-foreground: oklch(0.686 0.044 321.767);
  --popover: oklch(0.142 0.026 139.875);
  --popover-foreground: oklch(0.986 0.004 141.581);
  --card: oklch(0.142 0.026 139.875);
  --card-foreground: oklch(0.986 0.004 141.581);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.754 0.233 141.361);
  --primary-foreground: oklch(0.241 0.063 141.007);
  --secondary: oklch(0.584 0.251 321.763);
  --secondary-foreground: oklch(1 0 180);
  --accent: oklch(0.584 0.251 321.763);
  --accent-foreground: oklch(1 0 180);
  --destructive: oklch(0.599 0.243 29.48);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.754 0.233 141.361);
  --chart-1: oklch(0.754 0.233 141.361);
  --chart-2: oklch(0.584 0.251 321.763);
  --chart-3: oklch(0.584 0.251 321.763);
  --chart-4: oklch(0.603 0.25 321.877);
  --chart-5: oklch(0.763 0.239 141.416);
}