Tweet for shadcn/ui

Tweet is a shadcn/ui theme built around a vivid purple primary color (#f34fda) with vivid green accents (#4ff367). The light mode uses a neutral background (#fefbfe). Dark mode keeps the vivid purple primary (#f34fda) on a purple-tinted background (#0e060d).

Color palette

TokenLightDark
Background
#fefbfewhite
#0e060dblack
Foreground
#000000black
#fbf9fasnow
Card
#fefbfewhite
#0e060dblack
Card foreground
#000000black
#fbf9fasnow
Popover
#fefbfewhite
#0e060dblack
Popover foreground
#000000black
#fbf9fasnow
Primary
#f34fdaorchid
#f34fdaorchid
Primary foreground
#0e010cblack
#0e010cblack
Secondary
#4ff367mediumseagreen
#4ff367mediumseagreen
Secondary foreground
#010e03black
#010e03black
Muted
#dde4degainsboro
#1b221cblack
Muted foreground
#535f55dimgray
#a0aca1darkgray
Accent
#4ff367mediumseagreen
#4ff367mediumseagreen
Accent foreground
#010e03black
#010e03black
Destructive
#d23a14firebrick
#ea441aorangered
Destructive foreground
#ffffffwhite
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#f34fdaorchid
#f34fdaorchid

Contrast

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

Light mode
Text on background20.42:1AAA
Text on card20.42:1AAA
Primary button6.73:1AA
Secondary button13.43:1AAA
Muted text5.16:1AA
Accent13.43:1AAA
Destructive4.83:1AA
Dark mode
Text on background19.03:1AAA
Text on card19.03:1AAA
Primary button6.73:1AA
Secondary button13.43:1AAA
Muted text6.89:1AA
Accent13.43:1AAA
Destructive3.94:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.991 0.005 330.307);
  --foreground: oklch(0 0 0);
  --muted: oklch(0.911 0.011 150.095);
  --muted-foreground: oklch(0.473 0.023 149.597);
  --popover: oklch(0.991 0.005 330.307);
  --popover-foreground: oklch(0 0 0);
  --card: oklch(0.991 0.005 330.307);
  --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.699 0.246 334.518);
  --primary-foreground: oklch(0.119 0.045 332.637);
  --secondary: oklch(0.85 0.227 145.625);
  --secondary-foreground: oklch(0.146 0.037 148.349);
  --accent: oklch(0.85 0.227 145.625);
  --accent-foreground: oklch(0.146 0.037 148.349);
  --destructive: oklch(0.573 0.195 34.124);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.699 0.246 334.518);
  --chart-1: oklch(0.699 0.246 334.518);
  --chart-2: oklch(0.85 0.227 145.625);
  --chart-3: oklch(0.85 0.227 145.625);
  --chart-4: oklch(0.858 0.214 146.086);
  --chart-5: oklch(0.701 0.252 334.634);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.14 0.02 331.63);
  --foreground: oklch(0.984 0.002 330.277);
  --muted: oklch(0.243 0.015 149.437);
  --muted-foreground: oklch(0.731 0.021 149.874);
  --popover: oklch(0.14 0.02 331.63);
  --popover-foreground: oklch(0.984 0.002 330.277);
  --card: oklch(0.14 0.02 331.63);
  --card-foreground: oklch(0.984 0.002 330.277);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.699 0.246 334.518);
  --primary-foreground: oklch(0.119 0.045 332.637);
  --secondary: oklch(0.85 0.227 145.625);
  --secondary-foreground: oklch(0.146 0.037 148.349);
  --accent: oklch(0.85 0.227 145.625);
  --accent-foreground: oklch(0.146 0.037 148.349);
  --destructive: oklch(0.624 0.209 34.287);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.699 0.246 334.518);
  --chart-1: oklch(0.699 0.246 334.518);
  --chart-2: oklch(0.85 0.227 145.625);
  --chart-3: oklch(0.85 0.227 145.625);
  --chart-4: oklch(0.858 0.214 146.086);
  --chart-5: oklch(0.701 0.252 334.634);
}