Tuxedo for shadcn/ui

Tuxedo is a shadcn/ui theme built around a light green primary color (#bcf5c1) with light purple accents (#f5bcf1). The light mode uses a neutral background (#ffffff). Dark mode keeps the light green primary (#bcf5c1) on a neutral background (#020803).

Color palette

TokenLightDark
Background
#ffffffwhite
#020803black
Foreground
#000000black
#fcfdfcwhite
Card
#ffffffwhite
#020803black
Card foreground
#000000black
#fcfdfcwhite
Popover
#ffffffwhite
#020803black
Popover foreground
#000000black
#fcfdfcwhite
Primary
#bcf5c1powderblue
#bcf5c1powderblue
Primary foreground
#031605black
#031605black
Secondary
#f5bcf1thistle
#f5bcf1thistle
Secondary foreground
#701068purple
#701068purple
Muted
#e8c9e6thistle
#361733darkslategray
Muted foreground
#6b616adimgray
#9e949ddarkgray
Accent
#f5bcf1thistle
#f5bcf1thistle
Accent foreground
#701068purple
#701068purple
Destructive
#8e2601saddlebrown
#fe5f25tomato
Destructive foreground
#ffd2c2peachpuff
#000000black
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#bcf5c1powderblue
#bcf5c1powderblue

Contrast

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

Light mode
Text on background21.00:1AAA
Text on card21.00:1AAA
Primary button15.18:1AAA
Secondary button6.80:1AA
Muted text3.94:1AA Large
Accent6.80:1AA
Destructive6.26:1AA
Dark mode
Text on background19.82:1AAA
Text on card19.82:1AAA
Primary button15.18:1AAA
Secondary button6.80:1AA
Muted text5.41:1AA
Accent6.80:1AA
Destructive6.86:1AA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(1 0 180);
  --foreground: oklch(0 0 0);
  --muted: oklch(0.871 0.051 328.652);
  --muted-foreground: oklch(0.505 0.019 328.456);
  --popover: oklch(1 0 180);
  --popover-foreground: oklch(0 0 0);
  --card: oklch(1 0 180);
  --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.919 0.092 146.947);
  --primary-foreground: oklch(0.179 0.045 145.573);
  --secondary: oklch(0.863 0.095 329.148);
  --secondary-foreground: oklch(0.384 0.159 332.128);
  --accent: oklch(0.863 0.095 329.148);
  --accent-foreground: oklch(0.384 0.159 332.128);
  --destructive: oklch(0.432 0.145 36.705);
  --destructive-foreground: oklch(0.898 0.055 40.964);
  --ring: oklch(0.919 0.092 146.947);
  --chart-1: oklch(0.919 0.092 146.947);
  --chart-2: oklch(0.863 0.095 329.148);
  --chart-3: oklch(0.863 0.095 329.148);
  --chart-4: oklch(0.89 0.075 328.911);
  --chart-5: oklch(0.92 0.095 146.902);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.122 0.023 146.689);
  --foreground: oklch(0.993 0.002 148.039);
  --muted: oklch(0.261 0.065 330.43);
  --muted-foreground: oklch(0.678 0.018 328.337);
  --popover: oklch(0.122 0.023 146.689);
  --popover-foreground: oklch(0.993 0.002 148.039);
  --card: oklch(0.122 0.023 146.689);
  --card-foreground: oklch(0.993 0.002 148.039);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.919 0.092 146.947);
  --primary-foreground: oklch(0.179 0.045 145.573);
  --secondary: oklch(0.863 0.095 329.148);
  --secondary-foreground: oklch(0.384 0.159 332.128);
  --accent: oklch(0.863 0.095 329.148);
  --accent-foreground: oklch(0.384 0.159 332.128);
  --destructive: oklch(0.686 0.205 38.303);
  --destructive-foreground: oklch(0 0 0);
  --ring: oklch(0.919 0.092 146.947);
  --chart-1: oklch(0.919 0.092 146.947);
  --chart-2: oklch(0.863 0.095 329.148);
  --chart-3: oklch(0.863 0.095 329.148);
  --chart-4: oklch(0.89 0.075 328.911);
  --chart-5: oklch(0.92 0.095 146.902);
}