Bag for shadcn/ui

Bag is a shadcn/ui theme built around a muted light teal primary color (#f4f6f6) with muted light blue accents (#f4f5f6). The light mode uses a neutral background (#ffffff). Dark mode keeps the muted light teal primary (#f4f6f6) on a neutral background (#030707).

Color palette

TokenLightDark
Background
#ffffffwhite
#030707black
Foreground
#020d0cblack
#f6f9f9whitesmoke
Card
#ffffffwhite
#030707black
Card foreground
#020d0cblack
#f6f9f9whitesmoke
Popover
#ffffffwhite
#030707black
Popover foreground
#020d0cblack
#f6f9f9whitesmoke
Primary
#f4f6f6whitesmoke
#f4f6f6whitesmoke
Primary foreground
#242d2cdarkslategray
#242d2cdarkslategray
Secondary
#f4f6f5whitesmoke
#f4f6f5whitesmoke
Secondary foreground
#242d28darkslategray
#242d28darkslategray
Muted
#edf7f1honeydew
#08120cblack
Muted foreground
#384c40darkslategray
#b3c7basilver
Accent
#f4f5f6whitesmoke
#f4f5f6whitesmoke
Accent foreground
#525e66dimgray
#525e66dimgray
Destructive
#872403darkred
#fa4205orangered
Destructive foreground
#fecebepeachpuff
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#f4f6f6whitesmoke
#f4f6f6whitesmoke

Contrast

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

Light mode
Text on background19.70:1AAA
Text on card19.70:1AAA
Primary button13.00:1AAA
Secondary button13.04:1AAA
Muted text8.43:1AAA
Accent6.10:1AA
Destructive6.48:1AA
Dark mode
Text on background19.12:1AAA
Text on card19.12:1AAA
Primary button13.00:1AAA
Secondary button13.04:1AAA
Muted text10.73:1AAA
Accent6.10:1AA
Destructive3.58:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(1 0 180);
  --foreground: oklch(0.146 0.019 187.367);
  --muted: oklch(0.968 0.013 159.169);
  --muted-foreground: oklch(0.397 0.032 157.496);
  --popover: oklch(1 0 180);
  --popover-foreground: oklch(0.146 0.019 187.367);
  --card: oklch(1 0 180);
  --card-foreground: oklch(0.146 0.019 187.367);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.971 0.002 188.851);
  --primary-foreground: oklch(0.289 0.013 187.853);
  --secondary: oklch(0.971 0.003 159.4);
  --secondary-foreground: oklch(0.288 0.016 158.166);
  --accent: oklch(0.97 0.002 234.534);
  --accent-foreground: oklch(0.475 0.02 235.156);
  --destructive: oklch(0.416 0.139 36.154);
  --destructive-foreground: oklch(0.888 0.059 39.252);
  --ring: oklch(0.971 0.002 188.851);
  --chart-1: oklch(0.971 0.002 188.851);
  --chart-2: oklch(0.971 0.003 159.4);
  --chart-3: oklch(0.97 0.002 234.534);
  --chart-4: oklch(0.993 0.001 159.452);
  --chart-5: oklch(0.972 0.003 188.835);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.122 0.009 188.463);
  --foreground: oklch(0.98 0.004 188.823);
  --muted: oklch(0.168 0.019 156.918);
  --muted-foreground: oklch(0.81 0.028 158.689);
  --popover: oklch(0.122 0.009 188.463);
  --popover-foreground: oklch(0.98 0.004 188.823);
  --card: oklch(0.122 0.009 188.463);
  --card-foreground: oklch(0.98 0.004 188.823);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.971 0.002 188.851);
  --primary-foreground: oklch(0.289 0.013 187.853);
  --secondary: oklch(0.971 0.003 159.4);
  --secondary-foreground: oklch(0.288 0.016 158.166);
  --accent: oklch(0.97 0.002 234.534);
  --accent-foreground: oklch(0.475 0.02 235.156);
  --destructive: oklch(0.649 0.226 34.903);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.971 0.002 188.851);
  --chart-1: oklch(0.971 0.002 188.851);
  --chart-2: oklch(0.971 0.003 159.4);
  --chart-3: oklch(0.97 0.002 234.534);
  --chart-4: oklch(0.993 0.001 159.452);
  --chart-5: oklch(0.972 0.003 188.835);
}