Summer for shadcn/ui

Summer is a shadcn/ui theme built around a near-black primary color (#040103) with muted light pink accents (#d8d0d4). The light mode uses a neutral background (#fdfbfd). Dark mode keeps the near-black primary (#040103) on a pink-tinted background (#10040b).

Color palette

TokenLightDark
Background
#fdfbfdsnow
#10040bblack
Foreground
#090105black
#faf5f7whitesmoke
Card
#fcf8fasnow
#14050dblack
Card foreground
#040103black
#fbf8fasnow
Popover
#fcf8fasnow
#14050dblack
Popover foreground
#040103black
#fbf8fasnow
Primary
#040103black
#040103black
Primary foreground
#edb0d1lightpink
#edb0d1lightpink
Secondary
#d8d0d4lightgrey
#37252fdarkslategray
Secondary foreground
#40353bdarkslategray
#d2bcc8thistle
Muted
#f1eaedlinen
#150e12black
Muted foreground
#64595fdimgray
#a69ba1darkgray
Accent
#d8d0d4lightgrey
#37252fdarkslategray
Accent foreground
#40353bdarkslategray
#d2bcc8thistle
Destructive
#c03b02firebrick
#fd6a2btomato
Destructive foreground
#ffffffwhite
#000000black
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#040103black
#040103black

Contrast

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

Light mode
Text on background20.09:1AAA
Text on card19.71:1AAA
Primary button11.60:1AAA
Secondary button7.73:1AAA
Muted text5.63:1AA
Accent7.73:1AAA
Destructive5.43:1AA
Dark mode
Text on background18.62:1AAA
Text on card18.79:1AAA
Primary button11.60:1AAA
Secondary button8.03:1AAA
Muted text7.07:1AAA
Accent8.03:1AAA
Destructive7.26:1AAA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.991 0.003 343.51);
  --foreground: oklch(0.103 0.028 343.324);
  --muted: oklch(0.942 0.009 343.687);
  --muted-foreground: oklch(0.476 0.017 344.336);
  --popover: oklch(0.982 0.005 343.577);
  --popover-foreground: oklch(0.082 0.022 343.324);
  --card: oklch(0.982 0.005 343.577);
  --card-foreground: oklch(0.082 0.022 343.324);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.083 0.019 343.343);
  --primary-foreground: oklch(0.823 0.082 345.798);
  --secondary: oklch(0.864 0.01 343.74);
  --secondary-foreground: oklch(0.344 0.018 344.683);
  --accent: oklch(0.864 0.01 343.74);
  --accent-foreground: oklch(0.344 0.018 344.683);
  --destructive: oklch(0.543 0.178 37.731);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.083 0.019 343.343);
  --chart-1: oklch(0.083 0.019 343.343);
  --chart-2: oklch(0.864 0.01 343.74);
  --chart-3: oklch(0.864 0.01 343.74);
  --chart-4: oklch(0.889 0.008 343.68);
  --chart-5: oklch(0.083 0.02 343.338);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.135 0.028 345.532);
  --foreground: oklch(0.975 0.006 343.59);
  --muted: oklch(0.176 0.014 345.351);
  --muted-foreground: oklch(0.701 0.016 343.998);
  --popover: oklch(0.148 0.032 347.097);
  --popover-foreground: oklch(0.983 0.004 343.54);
  --card: oklch(0.148 0.032 347.097);
  --card-foreground: oklch(0.983 0.004 343.54);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.083 0.019 343.343);
  --primary-foreground: oklch(0.823 0.082 345.798);
  --secondary: oklch(0.289 0.032 346.049);
  --secondary-foreground: oklch(0.817 0.03 344.344);
  --accent: oklch(0.289 0.032 346.049);
  --accent-foreground: oklch(0.817 0.03 344.344);
  --destructive: oklch(0.699 0.194 40.977);
  --destructive-foreground: oklch(0 0 0);
  --ring: oklch(0.083 0.019 343.343);
  --chart-1: oklch(0.083 0.019 343.343);
  --chart-2: oklch(0.289 0.032 346.049);
  --chart-3: oklch(0.289 0.032 346.049);
  --chart-4: oklch(0.318 0.037 346.139);
  --chart-5: oklch(0.083 0.02 343.338);
}