01 for shadcn/ui

01 is a shadcn/ui theme built around a light purple primary color (#dca6dd) with light pink accents (#dda6c3). The light mode uses a neutral background (#fefbfe). Dark mode keeps the light purple primary (#dca6dd) on a purple-tinted background (#0c030c).

Color palette

TokenLightDark
Background
#fefbfewhite
#0c030cblack
Foreground
#000000black
#fbf8fbsnow
Card
#fefbfewhite
#0c030cblack
Card foreground
#000000black
#fbf8fbsnow
Popover
#fefbfewhite
#0c030cblack
Popover foreground
#000000black
#fbf8fbsnow
Primary
#dca6ddplum
#dca6ddplum
Primary foreground
#3b163bdarkslategray
#3b163bdarkslategray
Secondary
#c1a6ddplum
#c1a6ddplum
Secondary foreground
#28163bmidnightblue
#28163bmidnightblue
Muted
#dbd7e0gainsboro
#241f28black
Muted foreground
#47424ddarkslategray
#b7b2bdsilver
Accent
#dda6c3plum
#dda6c3plum
Accent foreground
#3b1629darkslategray
#3b1629darkslategray
Destructive
#b70101darkred
#f40101red
Destructive foreground
#ffebeblinen
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#dca6ddplum
#dca6ddplum

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 button7.75:1AAA
Secondary button7.71:1AAA
Muted text6.85:1AA
Accent7.76:1AAA
Destructive6.09:1AA
Dark mode
Text on background19.24:1AAA
Text on card19.24:1AAA
Primary button7.75:1AAA
Secondary button7.71:1AAA
Muted text7.77:1AAA
Accent7.76:1AAA
Destructive4.34:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.991 0.005 325.139);
  --foreground: oklch(0 0 0);
  --muted: oklch(0.884 0.013 307.611);
  --muted-foreground: oklch(0.388 0.02 307.178);
  --popover: oklch(0.991 0.005 325.139);
  --popover-foreground: oklch(0 0 0);
  --card: oklch(0.991 0.005 325.139);
  --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.794 0.097 325.899);
  --primary-foreground: oklch(0.273 0.079 326.841);
  --secondary: oklch(0.768 0.082 306.531);
  --secondary-foreground: oklch(0.246 0.069 304.077);
  --accent: oklch(0.785 0.074 346.571);
  --accent-foreground: oklch(0.265 0.064 350.091);
  --destructive: oklch(0.489 0.2 29.185);
  --destructive-foreground: oklch(0.955 0.022 17.544);
  --ring: oklch(0.794 0.097 325.899);
  --chart-1: oklch(0.794 0.097 325.899);
  --chart-2: oklch(0.768 0.082 306.531);
  --chart-3: oklch(0.785 0.074 346.571);
  --chart-4: oklch(0.797 0.071 306.741);
  --chart-5: oklch(0.793 0.103 325.948);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.124 0.029 326.662);
  --foreground: oklch(0.983 0.005 325.137);
  --muted: oklch(0.249 0.018 306.924);
  --muted-foreground: oklch(0.771 0.017 307.53);
  --popover: oklch(0.124 0.029 326.662);
  --popover-foreground: oklch(0.983 0.005 325.137);
  --card: oklch(0.124 0.029 326.662);
  --card-foreground: oklch(0.983 0.005 325.137);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.794 0.097 325.899);
  --primary-foreground: oklch(0.273 0.079 326.841);
  --secondary: oklch(0.768 0.082 306.531);
  --secondary-foreground: oklch(0.246 0.069 304.077);
  --accent: oklch(0.785 0.074 346.571);
  --accent-foreground: oklch(0.265 0.064 350.091);
  --destructive: oklch(0.607 0.249 29.2);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.794 0.097 325.899);
  --chart-1: oklch(0.794 0.097 325.899);
  --chart-2: oklch(0.768 0.082 306.531);
  --chart-3: oklch(0.785 0.074 346.571);
  --chart-4: oklch(0.797 0.071 306.741);
  --chart-5: oklch(0.793 0.103 325.948);
}