Doki Theme: BunnySenpai: Mai for shadcn/ui

Doki Theme: BunnySenpai: Mai is a shadcn/ui theme built around a muted indigo primary color (#4f5287) with light red accents (#e5bdb8). The light mode uses a red-tinted background (#faf1f0). Dark mode keeps the muted indigo primary (#4f5287) on a red-tinted background (#faf1f0).

Color palette

TokenLightDark
Background
#faf1f0seashell
#faf1f0seashell
Foreground
#4e4e4bdarkslategray
#4e4e4bdarkslategray
Card
#f7eae9linen
#f7eae9linen
Card foreground
#41413edarkslategray
#41413edarkslategray
Popover
#f6e7e5linen
#f6e7e5linen
Popover foreground
#343432darkslategray
#343432darkslategray
Primary
#4f5287darkslateblue
#4f5287darkslateblue
Primary foreground
#ffffffwhite
#ffffffwhite
Secondary
#b5b6c9silver
#b5b6c9silver
Secondary foreground
#20212cdarkslategray
#20212cdarkslategray
Muted
#e9e3e2gainsboro
#e9e3e2gainsboro
Muted foreground
#564543darkslategray
#564543darkslategray
Accent
#e5bdb8lightpink
#e5bdb8lightpink
Accent foreground
#4f221cmaroon
#4f221cmaroon
Destructive
#d00b01red
#d00b01red
Destructive foreground
#ffffffwhite
#ffffffwhite
Border
#f1e2e0mistyrose
#f1e2e0mistyrose
Input
#ecd8d5gainsboro
#ecd8d5gainsboro
Ring
#4f5287darkslateblue
#4f5287darkslateblue

Contrast

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

Light mode
Text on background7.51:1AAA
Text on card8.73:1AAA
Primary button7.26:1AAA
Secondary button7.99:1AAA
Muted text7.11:1AAA
Accent7.80:1AAA
Destructive5.62:1AA
Dark mode
Text on background7.51:1AAA
Text on card8.73:1AAA
Primary button7.26:1AAA
Secondary button7.99:1AAA
Muted text7.11:1AAA
Accent7.80:1AAA
Destructive5.62:1AA

CSS variables

Paste this into your globals.css to use Doki Theme: BunnySenpai: Mai in your shadcn/ui project.

:root {
  --radius: 0.5rem;
  --background: oklch(0.965 0.009 26.505);
  --foreground: oklch(0.423 0.005 106.61);
  --muted: oklch(0.92 0.006 26.483);
  --muted-foreground: oklch(0.408 0.023 26.908);
  --popover: oklch(0.938 0.016 26.564);
  --popover-foreground: oklch(0.324 0.004 106.595);
  --card: oklch(0.947 0.014 26.543);
  --card-foreground: oklch(0.375 0.004 106.604);
  --border: oklch(0.923 0.017 26.568);
  --input: oklch(0.897 0.023 26.625);
  --primary: oklch(0.461 0.086 280.181);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.782 0.027 283.347);
  --secondary-foreground: oklch(0.251 0.022 282.336);
  --accent: oklch(0.832 0.047 26.919);
  --accent-foreground: oklch(0.315 0.068 29.196);
  --destructive: oklch(0.541 0.218 29.695);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.461 0.086 280.181);
  --chart-1: oklch(0.461 0.086 280.181);
  --chart-2: oklch(0.782 0.027 283.347);
  --chart-3: oklch(0.832 0.047 26.919);
  --chart-4: oklch(0.809 0.024 283.448);
  --chart-5: oklch(0.454 0.095 279.585);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.965 0.009 26.505);
  --foreground: oklch(0.423 0.005 106.61);
  --muted: oklch(0.92 0.006 26.483);
  --muted-foreground: oklch(0.408 0.023 26.908);
  --popover: oklch(0.938 0.016 26.564);
  --popover-foreground: oklch(0.324 0.004 106.595);
  --card: oklch(0.947 0.014 26.543);
  --card-foreground: oklch(0.375 0.004 106.604);
  --border: oklch(0.923 0.017 26.568);
  --input: oklch(0.897 0.023 26.625);
  --primary: oklch(0.461 0.086 280.181);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.782 0.027 283.347);
  --secondary-foreground: oklch(0.251 0.022 282.336);
  --accent: oklch(0.832 0.047 26.919);
  --accent-foreground: oklch(0.315 0.068 29.196);
  --destructive: oklch(0.541 0.218 29.695);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.461 0.086 280.181);
  --chart-1: oklch(0.461 0.086 280.181);
  --chart-2: oklch(0.782 0.027 283.347);
  --chart-3: oklch(0.832 0.047 26.919);
  --chart-4: oklch(0.809 0.024 283.448);
  --chart-5: oklch(0.454 0.095 279.585);
}