Wee for shadcn/ui

Wee is a shadcn/ui theme built around a blue primary color (#3f6ee4) with yellow accents (#e4b53f). The light mode uses a neutral background (#f8f9fc). Dark mode keeps the blue primary (#3f6ee4) on a neutral background (#000000).

Color palette

TokenLightDark
Background
#f8f9fcghostwhite
#000000black
Foreground
#000000black
#ffffffwhite
Card
#f4f6fawhitesmoke
#030303black
Card foreground
#000000black
#ffffffwhite
Popover
#f8f9fcghostwhite
#000000black
Popover foreground
#000000black
#ffffffwhite
Primary
#3f6ee4royalblue
#3f6ee4royalblue
Primary foreground
#ffffffwhite
#ffffffwhite
Secondary
#e4b53fgoldenrod
#e4b53fgoldenrod
Secondary foreground
#000000black
#000000black
Muted
#f3efe8linen
#17140cblack
Muted foreground
#5c574ddimgray
#b2aea3darkgray
Accent
#e4b53fgoldenrod
#e4b53fgoldenrod
Accent foreground
#000000black
#000000black
Destructive
#cf0c02firebrick
#fd2217red
Destructive foreground
#ffffffwhite
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#3f6ee4royalblue
#3f6ee4royalblue

Contrast

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

Light mode
Text on background19.95:1AAA
Text on card19.43:1AAA
Primary button4.61:1AA
Secondary button10.96:1AAA
Muted text6.27:1AA
Accent10.96:1AAA
Destructive5.66:1AA
Dark mode
Text on background21.00:1AAA
Text on card20.67:1AAA
Primary button4.61:1AA
Secondary button10.96:1AAA
Muted text8.28:1AAA
Accent10.96:1AAA
Destructive3.88:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.982 0.004 268.764);
  --foreground: oklch(0 0 0);
  --muted: oklch(0.954 0.011 88.861);
  --muted-foreground: oklch(0.459 0.018 88.984);
  --popover: oklch(0.982 0.004 268.764);
  --popover-foreground: oklch(0 0 0);
  --card: oklch(0.973 0.006 268.749);
  --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.57 0.187 264.816);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.795 0.141 86.456);
  --secondary-foreground: oklch(0 0 0);
  --accent: oklch(0.795 0.141 86.456);
  --accent-foreground: oklch(0 0 0);
  --destructive: oklch(0.54 0.217 29.66);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.57 0.187 264.816);
  --chart-1: oklch(0.57 0.187 264.816);
  --chart-2: oklch(0.795 0.141 86.456);
  --chart-3: oklch(0.795 0.141 86.456);
  --chart-4: oklch(0.808 0.135 87.151);
  --chart-5: oklch(0.569 0.193 264.656);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0 0 0);
  --foreground: oklch(1 0 180);
  --muted: oklch(0.193 0.015 88.981);
  --muted-foreground: oklch(0.752 0.016 88.915);
  --popover: oklch(0 0 0);
  --popover-foreground: oklch(1 0 180);
  --card: oklch(0.092 0 180);
  --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.57 0.187 264.816);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.795 0.141 86.456);
  --secondary-foreground: oklch(0 0 0);
  --accent: oklch(0.795 0.141 86.456);
  --accent-foreground: oklch(0 0 0);
  --destructive: oklch(0.634 0.246 29.368);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.57 0.187 264.816);
  --chart-1: oklch(0.57 0.187 264.816);
  --chart-2: oklch(0.795 0.141 86.456);
  --chart-3: oklch(0.795 0.141 86.456);
  --chart-4: oklch(0.808 0.135 87.151);
  --chart-5: oklch(0.569 0.193 264.656);
}