Tinted for shadcn/ui

Tinted is a shadcn/ui theme built around a light purple primary color (#fceefb) with light cyan accents (#eefbfc). The light mode uses a neutral background (#fefbfd). Dark mode keeps the light purple primary (#fceefb) on a purple-tinted background (#0e060e).

Color palette

TokenLightDark
Background
#fefbfdsnow
#0e060eblack
Foreground
#160414black
#fbf8fbsnow
Card
#fefbfdsnow
#0e060eblack
Card foreground
#160414black
#fbf8fbsnow
Popover
#fefbfdsnow
#0e060eblack
Popover foreground
#160414black
#fbf8fbsnow
Primary
#fceefblavenderblush
#fceefblavenderblush
Primary foreground
#9c1c8fdarkmagenta
#9c1c8fdarkmagenta
Secondary
#fbfceefloralwhite
#fbfceefloralwhite
Secondary foreground
#40450cdarkolivegreen
#40450cdarkolivegreen
Muted
#f4f5eblinen
#13140ablack
Muted foreground
#4c4d47darkslategray
#b7b8b2silver
Accent
#eefbfcaliceblue
#eefbfcaliceblue
Accent foreground
#0c4045darkslategray
#0c4045darkslategray
Destructive
#d0400bchocolate
#f24a0dorangered
Destructive foreground
#ffffffwhite
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#fceefblavenderblush
#fceefblavenderblush

Contrast

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

Light mode
Text on background19.26:1AAA
Text on card19.26:1AAA
Primary button6.28:1AA
Secondary button9.75:1AAA
Muted text7.74:1AAA
Accent10.77:1AAA
Destructive4.75:1AA
Dark mode
Text on background18.94:1AAA
Text on card18.94:1AAA
Primary button6.28:1AA
Secondary button9.75:1AAA
Muted text9.25:1AAA
Accent10.77:1AAA
Destructive3.64:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.991 0.004 328.636);
  --foreground: oklch(0.15 0.046 331.264);
  --muted: oklch(0.966 0.013 111.273);
  --muted-foreground: oklch(0.417 0.01 111.444);
  --popover: oklch(0.991 0.004 328.636);
  --popover-foreground: oklch(0.15 0.046 331.264);
  --card: oklch(0.991 0.004 328.636);
  --card-foreground: oklch(0.15 0.046 331.264);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.963 0.023 328.851);
  --primary-foreground: oklch(0.489 0.2 332.916);
  --secondary: oklch(0.986 0.019 111.37);
  --secondary-foreground: oklch(0.374 0.077 115.222);
  --accent: oklch(0.978 0.014 204.888);
  --accent-foreground: oklch(0.341 0.052 206.054);
  --destructive: oklch(0.576 0.189 36.685);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.963 0.023 328.851);
  --chart-1: oklch(0.963 0.023 328.851);
  --chart-2: oklch(0.986 0.019 111.37);
  --chart-3: oklch(0.978 0.014 204.888);
  --chart-4: oklch(0.996 0.005 111.102);
  --chart-5: oklch(0.963 0.024 328.862);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.14 0.023 330.022);
  --foreground: oklch(0.983 0.005 328.647);
  --muted: oklch(0.188 0.019 112.903);
  --muted-foreground: oklch(0.78 0.008 111.212);
  --popover: oklch(0.14 0.023 330.022);
  --popover-foreground: oklch(0.983 0.005 328.647);
  --card: oklch(0.14 0.023 330.022);
  --card-foreground: oklch(0.983 0.005 328.647);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.963 0.023 328.851);
  --primary-foreground: oklch(0.489 0.2 332.916);
  --secondary: oklch(0.986 0.019 111.37);
  --secondary-foreground: oklch(0.374 0.077 115.222);
  --accent: oklch(0.978 0.014 204.888);
  --accent-foreground: oklch(0.341 0.052 206.054);
  --destructive: oklch(0.644 0.213 36.489);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.963 0.023 328.851);
  --chart-1: oklch(0.963 0.023 328.851);
  --chart-2: oklch(0.986 0.019 111.37);
  --chart-3: oklch(0.978 0.014 204.888);
  --chart-4: oklch(0.996 0.005 111.102);
  --chart-5: oklch(0.963 0.024 328.862);
}