Present for shadcn/ui

Present is a shadcn/ui theme built around a vivid violet primary color (#d487f7) with vivid purple accents (#f787e3). The light mode uses a neutral background (#fdfbfd). Dark mode keeps the vivid violet primary (#d487f7) on a neutral background (#030104).

Color palette

TokenLightDark
Background
#fdfbfdsnow
#030104black
Foreground
#100514black
#ffffffwhite
Card
#fdfbfdsnow
#030104black
Card foreground
#100514black
#ffffffwhite
Popover
#fdfbfdsnow
#030104black
Popover foreground
#100514black
#ffffffwhite
Primary
#d487f7violet
#d487f7violet
Primary foreground
#330548midnightblue
#330548midnightblue
Secondary
#9c87f7mediumpurple
#9c87f7mediumpurple
Secondary foreground
#110548midnightblue
#110548midnightblue
Muted
#eceaf6lavender
#0c0915black
Muted foreground
#3f3c48darkslategray
#b9b7c3silver
Accent
#f787e3violet
#f787e3violet
Accent foreground
#48053cindigo
#48053cindigo
Destructive
#c92e13firebrick
#ec4e32tomato
Destructive foreground
#ffffffwhite
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#d487f7violet
#d487f7violet

Contrast

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

Light mode
Text on background19.39:1AAA
Text on card19.39:1AAA
Primary button6.85:1AA
Secondary button6.34:1AA
Muted text9.03:1AAA
Accent7.00:1AAA
Destructive5.42:1AA
Dark mode
Text on background20.76:1AAA
Text on card20.76:1AAA
Primary button6.85:1AA
Secondary button6.34:1AA
Muted text9.96:1AAA
Accent7.00:1AAA
Destructive3.69:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.991 0.003 315.414);
  --foreground: oklch(0.144 0.037 314.984);
  --muted: oklch(0.941 0.016 294.505);
  --muted-foreground: oklch(0.364 0.021 293.764);
  --popover: oklch(0.991 0.003 315.414);
  --popover-foreground: oklch(0.144 0.037 314.984);
  --card: oklch(0.991 0.003 315.414);
  --card-foreground: oklch(0.144 0.037 314.984);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.745 0.173 314.317);
  --primary-foreground: oklch(0.248 0.116 311.459);
  --secondary: oklch(0.691 0.161 289.948);
  --secondary-foreground: oklch(0.203 0.113 278.277);
  --accent: oklch(0.775 0.174 334.343);
  --accent-foreground: oklch(0.277 0.115 337.434);
  --destructive: oklch(0.546 0.195 32.128);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.745 0.173 314.317);
  --chart-1: oklch(0.745 0.173 314.317);
  --chart-2: oklch(0.691 0.161 289.948);
  --chart-3: oklch(0.775 0.174 334.343);
  --chart-4: oklch(0.727 0.141 290.883);
  --chart-5: oklch(0.743 0.179 314.268);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.085 0.015 316.977);
  --foreground: oklch(1 0 180);
  --muted: oklch(0.151 0.025 291.51);
  --muted-foreground: oklch(0.784 0.017 294.423);
  --popover: oklch(0.085 0.015 316.977);
  --popover-foreground: oklch(1 0 180);
  --card: oklch(0.085 0.015 316.977);
  --card-foreground: oklch(1 0 180);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.745 0.173 314.317);
  --primary-foreground: oklch(0.248 0.116 311.459);
  --secondary: oklch(0.691 0.161 289.948);
  --secondary-foreground: oklch(0.203 0.113 278.277);
  --accent: oklch(0.775 0.174 334.343);
  --accent-foreground: oklch(0.277 0.115 337.434);
  --destructive: oklch(0.639 0.199 32.37);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.745 0.173 314.317);
  --chart-1: oklch(0.745 0.173 314.317);
  --chart-2: oklch(0.691 0.161 289.948);
  --chart-3: oklch(0.775 0.174 334.343);
  --chart-4: oklch(0.727 0.141 290.883);
  --chart-5: oklch(0.743 0.179 314.268);
}