Gifted for shadcn/ui

Gifted is a shadcn/ui theme built around a muted blue primary color (#98a6b9) with near-white accents (#e8e8e9). The light mode uses a neutral background (#ffffff). Dark mode keeps the muted blue primary (#98a6b9) on a neutral background (#030507).

Color palette

TokenLightDark
Background
#ffffffwhite
#030507black
Foreground
#000000black
#f9fafbghostwhite
Card
#fcfcfcsnow
#05070bblack
Card foreground
#000000black
#fcfcfdwhite
Popover
#ffffffwhite
#030507black
Popover foreground
#000000black
#f9fafbghostwhite
Primary
#98a6b9darkgray
#98a6b9darkgray
Primary foreground
#0c0f12black
#0c0f12black
Secondary
#e8e8e9lavender
#13161bblack
Secondary foreground
#4d4f51darkslategray
#a3aebddarkgray
Muted
#e8ecf2lavender
#0d1117black
Muted foreground
#5b6471dimgray
#8e97a4lightslategray
Accent
#e8e8e9lavender
#13161bblack
Accent foreground
#4d4f51darkslategray
#a3aebddarkgray
Destructive
#a91204firebrick
#e51806red
Destructive foreground
#fee4e1mistyrose
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#98a6b9darkgray
#98a6b9darkgray

Contrast

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

Light mode
Text on background21.00:1AAA
Text on card20.54:1AAA
Primary button7.73:1AAA
Secondary button6.70:1AA
Muted text5.06:1AA
Accent6.70:1AA
Destructive6.26:1AA
Dark mode
Text on background19.55:1AAA
Text on card19.66:1AAA
Primary button7.73:1AAA
Secondary button8.04:1AAA
Muted text6.41:1AA
Accent8.04:1AAA
Destructive4.70:1AA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(1 0 180);
  --foreground: oklch(0 0 0);
  --muted: oklch(0.942 0.009 256.691);
  --muted-foreground: oklch(0.5 0.024 256.785);
  --popover: oklch(1 0 180);
  --popover-foreground: oklch(0 0 0);
  --card: oklch(0.992 0 161.565);
  --card-foreground: oklch(0 0 0);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.719 0.032 256.78);
  --primary-foreground: oklch(0.166 0.008 256.787);
  --secondary: oklch(0.931 0.001 256.656);
  --secondary-foreground: oklch(0.426 0.003 256.684);
  --accent: oklch(0.931 0.001 256.656);
  --accent-foreground: oklch(0.426 0.003 256.684);
  --destructive: oklch(0.468 0.183 30.182);
  --destructive-foreground: oklch(0.939 0.03 23.914);
  --ring: oklch(0.719 0.032 256.78);
  --chart-1: oklch(0.719 0.032 256.78);
  --chart-2: oklch(0.931 0.001 256.656);
  --chart-3: oklch(0.931 0.001 256.656);
  --chart-4: oklch(0.954 0.001 256.654);
  --chart-5: oklch(0.717 0.037 256.791);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.111 0.009 250.961);
  --foreground: oklch(0.984 0.002 256.66);
  --muted: oklch(0.176 0.014 256.826);
  --muted-foreground: oklch(0.674 0.022 256.756);
  --popover: oklch(0.111 0.009 250.961);
  --popover-foreground: oklch(0.984 0.002 256.66);
  --card: oklch(0.127 0.011 251.033);
  --card-foreground: oklch(0.992 0.001 256.656);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.719 0.032 256.78);
  --primary-foreground: oklch(0.166 0.008 256.787);
  --secondary: oklch(0.2 0.01 256.787);
  --secondary-foreground: oklch(0.747 0.024 256.756);
  --accent: oklch(0.2 0.01 256.787);
  --accent-foreground: oklch(0.747 0.024 256.756);
  --destructive: oklch(0.585 0.231 30.033);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.719 0.032 256.78);
  --chart-1: oklch(0.719 0.032 256.78);
  --chart-2: oklch(0.2 0.01 256.787);
  --chart-3: oklch(0.2 0.01 256.787);
  --chart-4: oklch(0.232 0.013 256.795);
  --chart-5: oklch(0.717 0.037 256.791);
}