Doki Theme: DM: Kanna for shadcn/ui

Doki Theme: DM: Kanna is a shadcn/ui theme built around an indigo primary color (#4746a0) with deep violet accents (#3b2e57). The light mode uses a violet-tinted background (#191325). Dark mode keeps the indigo primary (#4746a0) on a violet-tinted background (#191325).

Color palette

TokenLightDark
Background
#191325black
#191325black
Foreground
#f8f8f2whitesmoke
#f8f8f2whitesmoke
Card
#15101eblack
#15101eblack
Card foreground
#ffffffwhite
#ffffffwhite
Popover
#120e1bblack
#120e1bblack
Popover foreground
#ffffffwhite
#ffffffwhite
Primary
#4746a0darkslateblue
#4746a0darkslateblue
Primary foreground
#ffffffwhite
#ffffffwhite
Secondary
#adadd2lightsteelblue
#adadd2lightsteelblue
Secondary foreground
#1c1b31black
#1c1b31black
Muted
#25222bdarkslategray
#25222bdarkslategray
Muted foreground
#a29bb0darkgray
#a29bb0darkgray
Accent
#3b2e57darkslategray
#3b2e57darkslategray
Accent foreground
#d8d0e6gainsboro
#d8d0e6gainsboro
Destructive
#e80e02red
#e80e02red
Destructive foreground
#ffffffwhite
#ffffffwhite
Border
#262031darkslategray
#262031darkslategray
Input
#2d263bdarkslategray
#2d263bdarkslategray
Ring
#4746a0darkslateblue
#4746a0darkslateblue

Contrast

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

Light mode
Text on background16.92:1AAA
Text on card18.70:1AAA
Primary button7.91:1AAA
Secondary button7.73:1AAA
Muted text5.87:1AA
Accent8.22:1AAA
Destructive4.66:1AA
Dark mode
Text on background16.92:1AAA
Text on card18.70:1AAA
Primary button7.91:1AAA
Secondary button7.73:1AAA
Muted text5.87:1AA
Accent8.22:1AAA
Destructive4.66:1AA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.205 0.035 298.63);
  --foreground: oklch(0.977 0.008 106.548);
  --muted: oklch(0.258 0.018 300.393);
  --muted-foreground: oklch(0.703 0.032 300.763);
  --popover: oklch(0.176 0.026 299);
  --popover-foreground: oklch(1 0 180);
  --card: oklch(0.186 0.029 298.862);
  --card-foreground: oklch(1 0 180);
  --border: oklch(0.259 0.033 299.423);
  --input: oklch(0.287 0.038 299.323);
  --primary: oklch(0.446 0.141 279.755);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.76 0.053 285.839);
  --secondary-foreground: oklch(0.235 0.042 283.417);
  --accent: oklch(0.336 0.072 297.782);
  --accent-foreground: oklch(0.871 0.031 300.917);
  --destructive: oklch(0.588 0.237 29.612);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.446 0.141 279.755);
  --chart-1: oklch(0.446 0.141 279.755);
  --chart-2: oklch(0.76 0.053 285.839);
  --chart-3: oklch(0.336 0.072 297.782);
  --chart-4: oklch(0.789 0.046 286.063);
  --chart-5: oklch(0.44 0.151 278.908);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.205 0.035 298.63);
  --foreground: oklch(0.977 0.008 106.548);
  --muted: oklch(0.258 0.018 300.393);
  --muted-foreground: oklch(0.703 0.032 300.763);
  --popover: oklch(0.176 0.026 299);
  --popover-foreground: oklch(1 0 180);
  --card: oklch(0.186 0.029 298.862);
  --card-foreground: oklch(1 0 180);
  --border: oklch(0.259 0.033 299.423);
  --input: oklch(0.287 0.038 299.323);
  --primary: oklch(0.446 0.141 279.755);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.76 0.053 285.839);
  --secondary-foreground: oklch(0.235 0.042 283.417);
  --accent: oklch(0.336 0.072 297.782);
  --accent-foreground: oklch(0.871 0.031 300.917);
  --destructive: oklch(0.588 0.237 29.612);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.446 0.141 279.755);
  --chart-1: oklch(0.446 0.141 279.755);
  --chart-2: oklch(0.76 0.053 285.839);
  --chart-3: oklch(0.336 0.072 297.782);
  --chart-4: oklch(0.789 0.046 286.063);
  --chart-5: oklch(0.44 0.151 278.908);
}