Sprinkles for shadcn/ui

Sprinkles is a shadcn/ui theme built around a green primary color (#31b965) with teal accents (#31b9a9). The light mode uses a neutral background (#f7fdf9). Dark mode keeps the green primary (#31b965) on a neutral background (#000000).

Color palette

TokenLightDark
Background
#f7fdf9mintcream
#000000black
Foreground
#010402black
#fcfdfcwhite
Card
#f3fbf6mintcream
#030303black
Card foreground
#000000black
#ffffffwhite
Popover
#f7fdf9mintcream
#000000black
Popover foreground
#010402black
#fcfdfcwhite
Primary
#31b965mediumseagreen
#31b965mediumseagreen
Primary foreground
#06180dblack
#06180dblack
Secondary
#41b931limegreen
#41b931limegreen
Secondary foreground
#081806black
#081806black
Muted
#cee7cblightgrey
#1c3418darkgreen
Muted foreground
#3d493cdarkslategray
#b8c3b6silver
Accent
#31b9a9lightseagreen
#31b9a9lightseagreen
Accent foreground
#061816black
#061816black
Destructive
#df3501orangered
#fe5725tomato
Destructive foreground
#ffffffwhite
#000000black
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#31b965mediumseagreen
#31b965mediumseagreen

Contrast

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

Light mode
Text on background19.94:1AAA
Text on card20.01:1AAA
Primary button7.24:1AAA
Secondary button7.20:1AAA
Muted text7.15:1AAA
Accent7.54:1AAA
Destructive4.51:1AA
Dark mode
Text on background20.59:1AAA
Text on card20.67:1AAA
Primary button7.24:1AAA
Secondary button7.20:1AAA
Muted text7.41:1AAA
Accent7.54:1AAA
Destructive6.61:1AA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.988 0.007 159.303);
  --foreground: oklch(0.098 0.014 159.293);
  --muted: oklch(0.901 0.045 141.94);
  --muted-foreground: oklch(0.39 0.027 141.876);
  --popover: oklch(0.988 0.007 159.303);
  --popover-foreground: oklch(0.098 0.014 159.293);
  --card: oklch(0.982 0.011 159.218);
  --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.696 0.167 151.521);
  --primary-foreground: oklch(0.19 0.033 155.149);
  --secondary: oklch(0.693 0.203 141.461);
  --secondary-foreground: oklch(0.19 0.041 141.044);
  --accent: oklch(0.712 0.115 183.403);
  --accent-foreground: oklch(0.194 0.024 185.579);
  --destructive: oklch(0.592 0.212 34.099);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.696 0.167 151.521);
  --chart-1: oklch(0.696 0.167 151.521);
  --chart-2: oklch(0.693 0.203 141.461);
  --chart-3: oklch(0.712 0.115 183.403);
  --chart-4: oklch(0.727 0.213 141.464);
  --chart-5: oklch(0.704 0.173 151.16);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0 0 0);
  --foreground: oklch(0.993 0.002 159.42);
  --muted: oklch(0.297 0.057 141.492);
  --muted-foreground: oklch(0.805 0.022 142.017);
  --popover: oklch(0 0 0);
  --popover-foreground: oklch(0.993 0.002 159.42);
  --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.696 0.167 151.521);
  --primary-foreground: oklch(0.19 0.033 155.149);
  --secondary: oklch(0.693 0.203 141.461);
  --secondary-foreground: oklch(0.19 0.041 141.044);
  --accent: oklch(0.712 0.115 183.403);
  --accent-foreground: oklch(0.194 0.024 185.579);
  --destructive: oklch(0.678 0.211 36.33);
  --destructive-foreground: oklch(0 0 0);
  --ring: oklch(0.696 0.167 151.521);
  --chart-1: oklch(0.696 0.167 151.521);
  --chart-2: oklch(0.693 0.203 141.461);
  --chart-3: oklch(0.712 0.115 183.403);
  --chart-4: oklch(0.727 0.213 141.464);
  --chart-5: oklch(0.704 0.173 151.16);
}