Tide for shadcn/ui

Tide is a shadcn/ui theme built around a light purple primary color (#faeffb) with muted light purple accents (#c9b9ca). The light mode uses a neutral background (#fdfbfe). Dark mode keeps the light purple primary (#faeffb) on a purple-tinted background (#0f0410).

Color palette

TokenLightDark
Background
#fdfbfewhite
#0f0410black
Foreground
#000000black
#f8f6f8whitesmoke
Card
#fcf8fcsnow
#130614black
Card foreground
#000000black
#fbf9fbsnow
Popover
#fcf8fcsnow
#130614black
Popover foreground
#000000black
#fbf9fbsnow
Primary
#faeffblavenderblush
#faeffblavenderblush
Primary foreground
#8b2692darkmagenta
#8b2692darkmagenta
Secondary
#d3ced4lightgrey
#212121black
Secondary foreground
#3b353bdarkslategray
#bababasilver
Muted
#f6eef6whitesmoke
#110909black
Muted foreground
#725874dimgray
#a78b8brosybrown
Accent
#c9b9casilver
#332e2edarkslategray
Accent foreground
#2e232fdarkslategray
#cdc6c6silver
Destructive
#8b2709saddlebrown
#f15627tomato
Destructive foreground
#fcd6cabisque
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#faeffblavenderblush
#faeffblavenderblush

Contrast

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

Light mode
Text on background20.46:1AAA
Text on card19.93:1AAA
Primary button6.72:1AA
Secondary button7.73:1AAA
Muted text5.49:1AA
Accent8.08:1AAA
Destructive6.51:1AA
Dark mode
Text on background18.64:1AAA
Text on card18.87:1AAA
Primary button6.72:1AA
Secondary button8.28:1AAA
Muted text6.29:1AA
Accent7.97:1AAA
Destructive3.43:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.991 0.004 323.654);
  --foreground: oklch(0 0 0);
  --muted: oklch(0.958 0.013 323.709);
  --muted-foreground: oklch(0.497 0.055 324.185);
  --popover: oklch(0.983 0.007 323.673);
  --popover-foreground: oklch(0 0 0);
  --card: oklch(0.983 0.007 323.673);
  --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.964 0.02 323.742);
  --primary-foreground: oklch(0.471 0.184 325.076);
  --secondary: oklch(0.858 0.009 323.692);
  --secondary-foreground: oklch(0.337 0.014 323.855);
  --accent: oklch(0.805 0.03 323.824);
  --accent-foreground: oklch(0.274 0.026 324.104);
  --destructive: oklch(0.427 0.14 35.726);
  --destructive-foreground: oklch(0.904 0.045 37.598);
  --ring: oklch(0.964 0.02 323.742);
  --chart-1: oklch(0.964 0.02 323.742);
  --chart-2: oklch(0.858 0.009 323.692);
  --chart-3: oklch(0.805 0.03 323.824);
  --chart-4: oklch(0.882 0.008 323.681);
  --chart-5: oklch(0.963 0.021 323.748);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.137 0.033 324.973);
  --foreground: oklch(0.976 0.004 323.656);
  --muted: oklch(0.15 0.015 18.951);
  --muted-foreground: oklch(0.662 0.035 18.065);
  --popover: oklch(0.15 0.038 324.882);
  --popover-foreground: oklch(0.984 0.003 323.649);
  --card: oklch(0.15 0.038 324.882);
  --card-foreground: oklch(0.984 0.003 323.649);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.964 0.02 323.742);
  --primary-foreground: oklch(0.471 0.184 325.076);
  --secondary: oklch(0.248 0 173.29);
  --secondary-foreground: oklch(0.789 0 171.254);
  --accent: oklch(0.306 0.008 17.624);
  --accent-foreground: oklch(0.832 0.007 17.301);
  --destructive: oklch(0.657 0.199 36.573);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.964 0.02 323.742);
  --chart-1: oklch(0.964 0.02 323.742);
  --chart-2: oklch(0.248 0 173.29);
  --chart-3: oklch(0.306 0.008 17.624);
  --chart-4: oklch(0.28 0 180);
  --chart-5: oklch(0.963 0.021 323.748);
}