Vintner for shadcn/ui

Vintner is a shadcn/ui theme built around a light pink primary color (#f0dbe0) with light blue accents (#dbe0f0). The light mode uses a neutral background (#ffffff). Dark mode keeps the light pink primary (#f0dbe0) on a pink-tinted background (#0e0709).

Color palette

TokenLightDark
Background
#ffffffwhite
#0e0709black
Foreground
#080204black
#fdfcfcsnow
Card
#ffffffwhite
#0e0709black
Card foreground
#080204black
#fdfcfcsnow
Popover
#ffffffwhite
#0e0709black
Popover foreground
#080204black
#fdfcfcsnow
Primary
#f0dbe0mistyrose
#f0dbe0mistyrose
Primary foreground
#6d2c3dsaddlebrown
#6d2c3dsaddlebrown
Secondary
#e0f0dbgainsboro
#e0f0dbgainsboro
Secondary foreground
#14240fblack
#14240fblack
Muted
#ecf0ealinen
#10150fblack
Muted foreground
#51624bdarkolivegreen
#a3b49ddarkgray
Accent
#dbe0f0lavender
#dbe0f0lavender
Accent foreground
#2c3d6ddarkslategray
#2c3d6ddarkslategray
Destructive
#ad2010firebrick
#e52a15orangered
Destructive foreground
#fef2f1seashell
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#f0dbe0mistyrose
#f0dbe0mistyrose

Contrast

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

Light mode
Text on background20.57:1AAA
Text on card20.57:1AAA
Primary button7.64:1AAA
Secondary button13.74:1AAA
Muted text5.70:1AA
Accent8.00:1AAA
Destructive6.43:1AA
Dark mode
Text on background19.50:1AAA
Text on card19.50:1AAA
Primary button7.64:1AAA
Secondary button13.74:1AAA
Muted text8.42:1AAA
Accent8.00:1AAA
Destructive4.50:1AA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(1 0 180);
  --foreground: oklch(0.105 0.019 358.62);
  --muted: oklch(0.951 0.009 137.212);
  --muted-foreground: oklch(0.475 0.041 137.413);
  --popover: oklch(1 0 180);
  --popover-foreground: oklch(0.105 0.019 358.62);
  --card: oklch(1 0 180);
  --card-foreground: oklch(0.105 0.019 358.62);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.909 0.025 359.565);
  --primary-foreground: oklch(0.39 0.095 5.939);
  --secondary: oklch(0.939 0.034 137.275);
  --secondary-foreground: oklch(0.241 0.045 137.856);
  --accent: oklch(0.908 0.023 269.899);
  --accent-foreground: oklch(0.371 0.086 267.125);
  --destructive: oklch(0.484 0.178 30.517);
  --destructive-foreground: oklch(0.971 0.012 25.098);
  --ring: oklch(0.909 0.025 359.565);
  --chart-1: oklch(0.909 0.025 359.565);
  --chart-2: oklch(0.939 0.034 137.275);
  --chart-3: oklch(0.908 0.023 269.899);
  --chart-4: oklch(0.957 0.024 137.248);
  --chart-5: oklch(0.909 0.027 359.62);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.139 0.014 359.635);
  --foreground: oklch(0.991 0.002 358.836);
  --muted: oklch(0.188 0.014 137.377);
  --muted-foreground: oklch(0.749 0.037 137.309);
  --popover: oklch(0.139 0.014 359.635);
  --popover-foreground: oklch(0.991 0.002 358.836);
  --card: oklch(0.139 0.014 359.635);
  --card-foreground: oklch(0.991 0.002 358.836);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.909 0.025 359.565);
  --primary-foreground: oklch(0.39 0.095 5.939);
  --secondary: oklch(0.939 0.034 137.275);
  --secondary-foreground: oklch(0.241 0.045 137.856);
  --accent: oklch(0.908 0.023 269.899);
  --accent-foreground: oklch(0.371 0.086 267.125);
  --destructive: oklch(0.594 0.222 30.517);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.909 0.025 359.565);
  --chart-1: oklch(0.909 0.025 359.565);
  --chart-2: oklch(0.939 0.034 137.275);
  --chart-3: oklch(0.908 0.023 269.899);
  --chart-4: oklch(0.957 0.024 137.248);
  --chart-5: oklch(0.909 0.027 359.62);
}