Fresh Light Periwinkle for shadcn/ui

Fresh Light Periwinkle is a shadcn/ui theme built around a vivid light blue primary color (#b9c2fe) with vivid light yellow accents (#fef4b9). The light mode uses a neutral background (#ffffff). Dark mode keeps the vivid light blue primary (#b9c2fe) on a neutral background (#030307).

Color palette

TokenLightDark
Background
#ffffffwhite
#030307black
Foreground
#020308black
#fcfcfdwhite
Card
#fcfcfcsnow
#04050bblack
Card foreground
#010204black
#ffffffwhite
Popover
#fcfcfcsnow
#04050bblack
Popover foreground
#010204black
#ffffffwhite
Primary
#b9c2felightsteelblue
#b9c2felightsteelblue
Primary foreground
#031482navy
#031482navy
Secondary
#fef4b9moccasin
#fef4b9moccasin
Secondary foreground
#1e1a01black
#1e1a01black
Muted
#f3f1e2beige
#1d1a0cblack
Muted foreground
#494637darkslategray
#c8c6b6silver
Accent
#fef4b9moccasin
#fef4b9moccasin
Accent foreground
#1e1a01black
#1e1a01black
Destructive
#6c1809maroon
#dd3113orangered
Destructive foreground
#f8baaflightpink
#ffffffwhite
Border
#e9eaeclavender
#1f2023black
Input
#e9eaeclavender
#1f2023black
Ring
#b9c2felightsteelblue
#b9c2felightsteelblue

Contrast

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

Light mode
Text on background20.60:1AAA
Text on card20.30:1AAA
Primary button8.56:1AAA
Secondary button15.69:1AAA
Muted text8.32:1AAA
Accent15.69:1AAA
Destructive7.12:1AAA
Dark mode
Text on background20.04:1AAA
Text on card20.33:1AAA
Primary button8.56:1AAA
Secondary button15.69:1AAA
Muted text10.11:1AAA
Accent15.69:1AAA
Destructive4.65:1AA

CSS variables

Paste this into your globals.css to use Fresh Light Periwinkle in your shadcn/ui project.

:root {
  --radius: 0.5rem;
  --background: oklch(1 0 180);
  --foreground: oklch(0.101 0.016 273.803);
  --muted: oklch(0.955 0.019 99.625);
  --muted-foreground: oklch(0.393 0.025 100.179);
  --popover: oklch(0.992 0 161.565);
  --popover-foreground: oklch(0.08 0.013 273.803);
  --card: oklch(0.992 0 161.565);
  --card-foreground: oklch(0.08 0.013 273.803);
  --border: oklch(0.937 0.003 279.295);
  --input: oklch(0.937 0.003 279.295);
  --primary: oklch(0.828 0.084 277.603);
  --primary-foreground: oklch(0.293 0.177 264.815);
  --secondary: oklch(0.961 0.076 100.338);
  --secondary-foreground: oklch(0.216 0.044 101.516);
  --accent: oklch(0.961 0.076 100.338);
  --accent-foreground: oklch(0.216 0.044 101.516);
  --destructive: oklch(0.352 0.12 32.321);
  --destructive-foreground: oklch(0.843 0.074 30.036);
  --ring: oklch(0.828 0.084 277.603);
  --chart-1: oklch(0.828 0.084 277.603);
  --chart-2: oklch(0.961 0.076 100.338);
  --chart-3: oklch(0.961 0.076 100.338);
  --chart-4: oklch(0.969 0.061 100.162);
  --chart-5: oklch(0.826 0.087 277.536);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.104 0.014 274.808);
  --foreground: oklch(0.991 0.001 279.322);
  --muted: oklch(0.218 0.025 100.623);
  --muted-foreground: oklch(0.824 0.021 99.71);
  --popover: oklch(0.119 0.016 274.831);
  --popover-foreground: oklch(1 0 180);
  --card: oklch(0.119 0.016 274.831);
  --card-foreground: oklch(1 0 180);
  --border: oklch(0.243 0.007 278.921);
  --input: oklch(0.243 0.007 278.921);
  --primary: oklch(0.828 0.084 277.603);
  --primary-foreground: oklch(0.293 0.177 264.815);
  --secondary: oklch(0.961 0.076 100.338);
  --secondary-foreground: oklch(0.216 0.044 101.516);
  --accent: oklch(0.961 0.076 100.338);
  --accent-foreground: oklch(0.216 0.044 101.516);
  --destructive: oklch(0.585 0.21 32.055);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.828 0.084 277.603);
  --chart-1: oklch(0.828 0.084 277.603);
  --chart-2: oklch(0.961 0.076 100.338);
  --chart-3: oklch(0.961 0.076 100.338);
  --chart-4: oklch(0.969 0.061 100.162);
  --chart-5: oklch(0.826 0.087 277.536);
}