Labour Summer Pear for shadcn/ui

Labour Summer Pear is a shadcn/ui theme built around a light yellow primary color (#f6f1d0) with light purple accents (#f1d0f6). The light mode uses a neutral background (#fcfcf8). Dark mode keeps the light yellow primary (#f6f1d0) on a neutral background (#0a0905).

Color palette

TokenLightDark
Background
#fcfcf8snow
#0a0905black
Foreground
#090802black
#fcfbf8snow
Card
#fbfaf4floralwhite
#16140ablack
Card foreground
#040401black
#fdfdfcwhite
Popover
#fbfaf4floralwhite
#0b0a04black
Popover foreground
#040401black
#fdfdfcwhite
Primary
#f6f1d0antiquewhite
#f6f1d0antiquewhite
Primary foreground
#272207black
#272207black
Secondary
#d0f6f1lightcyan
#d0f6f1lightcyan
Secondary foreground
#072722black
#072722black
Muted
#ebf5f3whitesmoke
#0a1413black
Muted foreground
#505353darkslategray
#acafafdarkgray
Accent
#f1d0f6lavender
#f1d0f6lavender
Accent foreground
#6f187cpurple
#6f187cpurple
Destructive
#b62902firebrick
#fd4512orangered
Destructive foreground
#ffffffwhite
#ffffffwhite
Border
#eeeeecwhitesmoke
#23231fblack
Input
#eeeeecwhitesmoke
#23231fblack
Ring
#f6f1d0antiquewhite
#f6f1d0antiquewhite

Contrast

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

Light mode
Text on background19.45:1AAA
Text on card19.61:1AAA
Primary button13.96:1AAA
Secondary button13.71:1AAA
Muted text6.97:1AA
Accent7.18:1AAA
Destructive6.36:1AA
Dark mode
Text on background19.24:1AAA
Text on card18.13:1AAA
Primary button13.96:1AAA
Secondary button13.71:1AAA
Muted text8.44:1AAA
Accent7.18:1AAA
Destructive3.49:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.989 0.005 99.421);
  --foreground: oklch(0.131 0.02 103.481);
  --muted: oklch(0.961 0.011 187.471);
  --muted-foreground: oklch(0.44 0.004 187.51);
  --popover: oklch(0.984 0.008 99.462);
  --popover-foreground: oklch(0.104 0.016 103.481);
  --card: oklch(0.984 0.008 99.462);
  --card-foreground: oklch(0.104 0.016 103.481);
  --border: oklch(0.949 0.003 99.386);
  --input: oklch(0.949 0.003 99.386);
  --primary: oklch(0.953 0.044 99.965);
  --primary-foreground: oklch(0.251 0.043 100.62);
  --secondary: oklch(0.945 0.04 186.68);
  --secondary-foreground: oklch(0.247 0.037 182.848);
  --accent: oklch(0.897 0.062 321.781);
  --accent-foreground: oklch(0.402 0.168 321.846);
  --destructive: oklch(0.507 0.182 33.875);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.953 0.044 99.965);
  --chart-1: oklch(0.953 0.044 99.965);
  --chart-2: oklch(0.945 0.04 186.68);
  --chart-3: oklch(0.897 0.062 321.781);
  --chart-4: oklch(0.959 0.029 186.985);
  --chart-5: oklch(0.955 0.045 99.988);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.139 0.011 101.637);
  --foreground: oklch(0.988 0.004 99.406);
  --muted: oklch(0.182 0.015 185.533);
  --muted-foreground: oklch(0.751 0.004 187.626);
  --popover: oklch(0.145 0.016 102.166);
  --popover-foreground: oklch(0.994 0.002 99.373);
  --card: oklch(0.19 0.019 100.518);
  --card-foreground: oklch(0.994 0.002 99.373);
  --border: oklch(0.255 0.007 99.753);
  --input: oklch(0.255 0.007 99.753);
  --primary: oklch(0.953 0.044 99.965);
  --primary-foreground: oklch(0.251 0.043 100.62);
  --secondary: oklch(0.945 0.04 186.68);
  --secondary-foreground: oklch(0.247 0.037 182.848);
  --accent: oklch(0.897 0.062 321.781);
  --accent-foreground: oklch(0.402 0.168 321.846);
  --destructive: oklch(0.656 0.226 34.392);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.953 0.044 99.965);
  --chart-1: oklch(0.953 0.044 99.965);
  --chart-2: oklch(0.945 0.04 186.68);
  --chart-3: oklch(0.897 0.062 321.781);
  --chart-4: oklch(0.959 0.029 186.985);
  --chart-5: oklch(0.955 0.045 99.988);
}