Sack for shadcn/ui

Sack is a shadcn/ui theme built around a light green primary color (#bae3ba) with light teal accents (#bae3cf). The light mode uses a neutral background (#ffffff). Dark mode keeps the light green primary (#bae3ba) on a green-tinted background (#070e07).

Color palette

TokenLightDark
Background
#ffffffwhite
#070e07black
Foreground
#050f05black
#ffffffwhite
Card
#fcfcfcsnow
#081108black
Card foreground
#040c04black
#ffffffwhite
Popover
#ffffffwhite
#070e07black
Popover foreground
#050f05black
#ffffffwhite
Primary
#bae3basilver
#bae3basilver
Primary foreground
#1f4d1fdarkgreen
#1f4d1fdarkgreen
Secondary
#cee3balightgrey
#cee3balightgrey
Secondary foreground
#354d1fdarkolivegreen
#354d1fdarkolivegreen
Muted
#e5e7e4gainsboro
#191b18black
Muted foreground
#474c43darkslategray
#b7bcb3silver
Accent
#bae3cfpowderblue
#bae3cfpowderblue
Accent foreground
#1f4d36darkslategray
#1f4d36darkslategray
Destructive
#a01a0efirebrick
#d82313firebrick
Destructive foreground
#fde5e3mistyrose
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#bae3basilver
#bae3basilver

Contrast

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

Light mode
Text on background19.49:1AAA
Text on card19.39:1AAA
Primary button6.92:1AA
Secondary button6.87:1AA
Muted text7.10:1AAA
Accent6.90:1AA
Destructive6.62:1AA
Dark mode
Text on background19.56:1AAA
Text on card19.16:1AAA
Primary button6.92:1AA
Secondary button6.87:1AA
Muted text8.93:1AAA
Accent6.90:1AA
Destructive5.04:1AA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(1 0 180);
  --foreground: oklch(0.155 0.029 144.516);
  --muted: oklch(0.926 0.005 129.185);
  --muted-foreground: oklch(0.408 0.015 129.524);
  --popover: oklch(1 0 180);
  --popover-foreground: oklch(0.155 0.029 144.516);
  --card: oklch(0.992 0 161.565);
  --card-foreground: oklch(0.139 0.025 144.605);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.876 0.071 145.37);
  --primary-foreground: oklch(0.374 0.089 143.827);
  --secondary: oklch(0.89 0.06 129.868);
  --secondary-foreground: oklch(0.387 0.077 131.784);
  --accent: oklch(0.882 0.051 164.35);
  --accent-foreground: oklch(0.379 0.064 160.035);
  --destructive: oklch(0.455 0.17 30.049);
  --destructive-foreground: oklch(0.94 0.026 23.87);
  --ring: oklch(0.876 0.071 145.37);
  --chart-1: oklch(0.876 0.071 145.37);
  --chart-2: oklch(0.89 0.06 129.868);
  --chart-3: oklch(0.882 0.051 164.35);
  --chart-4: oklch(0.907 0.051 129.732);
  --chart-5: oklch(0.878 0.076 145.323);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.152 0.02 145.012);
  --foreground: oklch(1 0 180);
  --muted: oklch(0.22 0.007 129.485);
  --muted-foreground: oklch(0.789 0.013 129.299);
  --popover: oklch(0.152 0.02 145.012);
  --popover-foreground: oklch(1 0 180);
  --card: oklch(0.166 0.023 144.893);
  --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.876 0.071 145.37);
  --primary-foreground: oklch(0.374 0.089 143.827);
  --secondary: oklch(0.89 0.06 129.868);
  --secondary-foreground: oklch(0.387 0.077 131.784);
  --accent: oklch(0.882 0.051 164.35);
  --accent-foreground: oklch(0.379 0.064 160.035);
  --destructive: oklch(0.567 0.215 30.085);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.876 0.071 145.37);
  --chart-1: oklch(0.876 0.071 145.37);
  --chart-2: oklch(0.89 0.06 129.868);
  --chart-3: oklch(0.882 0.051 164.35);
  --chart-4: oklch(0.907 0.051 129.732);
  --chart-5: oklch(0.878 0.076 145.323);
}