Another for shadcn/ui

Another is a shadcn/ui theme built around a purple primary color (#d95ecf) with green accents (#5ed968). The light mode uses a neutral background (#fbf8fb). Dark mode keeps the purple primary (#d95ecf) on a purple-tinted background (#0a050a).

Color palette

TokenLightDark
Background
#fbf8fbsnow
#0a050ablack
Foreground
#170315black
#faf5f9whitesmoke
Card
#fbf8fbsnow
#0a050ablack
Card foreground
#170315black
#faf5f9whitesmoke
Popover
#fbf8fbsnow
#0a050ablack
Popover foreground
#170315black
#faf5f9whitesmoke
Primary
#d95ecforchid
#d95ecforchid
Primary foreground
#040104black
#040104black
Secondary
#5ed968mediumseagreen
#5ed968mediumseagreen
Secondary foreground
#010401black
#010401black
Muted
#d3e9d5gainsboro
#162c18black
Muted foreground
#434c44darkslategray
#b3bcb4silver
Accent
#5ed968mediumseagreen
#5ed968mediumseagreen
Accent foreground
#010401black
#010401black
Destructive
#9e2f00saddlebrown
#eb4600orangered
Destructive foreground
#ffffffwhite
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#d95ecforchid
#d95ecforchid

Contrast

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

Light mode
Text on background18.84:1AAA
Text on card18.84:1AAA
Primary button6.38:1AA
Secondary button11.40:1AAA
Muted text6.94:1AA
Accent11.40:1AAA
Destructive7.31:1AAA
Dark mode
Text on background18.75:1AAA
Text on card18.75:1AAA
Primary button6.38:1AA
Secondary button11.40:1AAA
Muted text7.64:1AAA
Accent11.40:1AAA
Destructive3.88:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.983 0.005 328.116);
  --foreground: oklch(0.15 0.052 330.911);
  --muted: oklch(0.912 0.036 147.646);
  --muted-foreground: oklch(0.405 0.017 147.612);
  --popover: oklch(0.983 0.005 328.116);
  --popover-foreground: oklch(0.15 0.052 330.911);
  --card: oklch(0.983 0.005 328.116);
  --card-foreground: oklch(0.15 0.052 330.911);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.675 0.203 330.885);
  --primary-foreground: oklch(0.085 0.022 329.522);
  --secondary: oklch(0.791 0.189 145.021);
  --secondary-foreground: oklch(0.097 0.02 146.592);
  --accent: oklch(0.791 0.189 145.021);
  --accent-foreground: oklch(0.097 0.02 146.592);
  --destructive: oklch(0.471 0.154 38.099);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.675 0.203 330.885);
  --chart-1: oklch(0.675 0.203 330.885);
  --chart-2: oklch(0.791 0.189 145.021);
  --chart-3: oklch(0.791 0.189 145.021);
  --chart-4: oklch(0.804 0.177 145.325);
  --chart-5: oklch(0.676 0.211 330.99);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.127 0.017 328.885);
  --foreground: oklch(0.975 0.008 328.151);
  --muted: oklch(0.269 0.046 146.023);
  --muted-foreground: oklch(0.786 0.014 147.869);
  --popover: oklch(0.127 0.017 328.885);
  --popover-foreground: oklch(0.975 0.008 328.151);
  --card: oklch(0.127 0.017 328.885);
  --card-foreground: oklch(0.975 0.008 328.151);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.675 0.203 330.885);
  --primary-foreground: oklch(0.085 0.022 329.522);
  --secondary: oklch(0.791 0.189 145.021);
  --secondary-foreground: oklch(0.097 0.02 146.592);
  --accent: oklch(0.791 0.189 145.021);
  --accent-foreground: oklch(0.097 0.02 146.592);
  --destructive: oklch(0.627 0.21 37.051);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.675 0.203 330.885);
  --chart-1: oklch(0.675 0.203 330.885);
  --chart-2: oklch(0.791 0.189 145.021);
  --chart-3: oklch(0.791 0.189 145.021);
  --chart-4: oklch(0.804 0.177 145.325);
  --chart-5: oklch(0.676 0.211 330.99);
}