Doki Theme: Chuunibyou: Rikka for shadcn/ui

Doki Theme: Chuunibyou: Rikka is a shadcn/ui theme built around a pink primary color (#dd2c64) with muted deep violet accents (#423758). The light mode uses a violet-tinted background (#1f1a29). Dark mode keeps the pink primary (#dd2c64) on a violet-tinted background (#1f1a29).

Color palette

TokenLightDark
Background
#1f1a29black
#1f1a29black
Foreground
#f8f8f2whitesmoke
#f8f8f2whitesmoke
Card
#1a1623black
#1a1623black
Card foreground
#ffffffwhite
#ffffffwhite
Popover
#18141fblack
#18141fblack
Popover foreground
#ffffffwhite
#ffffffwhite
Primary
#dd2c64mediumvioletred
#dd2c64mediumvioletred
Primary foreground
#ffffffwhite
#ffffffwhite
Secondary
#d2acb8silver
#d2acb8silver
Secondary foreground
#321b22black
#321b22black
Muted
#2a2631darkslategray
#2a2631darkslategray
Muted foreground
#a7a1b5darkgray
#a7a1b5darkgray
Accent
#423758darkslategray
#423758darkslategray
Accent foreground
#ded9e7gainsboro
#ded9e7gainsboro
Destructive
#ff0800red
#ff0800red
Destructive foreground
#ffffffwhite
#ffffffwhite
Border
#2c2834darkslategray
#2c2834darkslategray
Input
#332f3ddarkslategray
#332f3ddarkslategray
Ring
#dd2c64mediumvioletred
#dd2c64mediumvioletred

Contrast

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

Light mode
Text on background15.98:1AAA
Text on card17.81:1AAA
Primary button4.54:1AA
Secondary button7.87:1AAA
Muted text5.92:1AA
Accent7.91:1AAA
Destructive3.97:1AA Large
Dark mode
Text on background15.98:1AAA
Text on card17.81:1AAA
Primary button4.54:1AA
Secondary button7.87:1AAA
Muted text5.92:1AA
Accent7.91:1AAA
Destructive3.97:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.229 0.03 299.342);
  --foreground: oklch(0.977 0.008 106.548);
  --muted: oklch(0.277 0.02 300.355);
  --muted-foreground: oklch(0.72 0.03 300.826);
  --popover: oklch(0.2 0.024 299.54);
  --popover-foreground: oklch(1 0 180);
  --card: oklch(0.21 0.026 299.467);
  --card-foreground: oklch(1 0 180);
  --border: oklch(0.286 0.022 300.234);
  --input: oklch(0.314 0.025 300.187);
  --primary: oklch(0.593 0.211 8.639);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.782 0.047 357.297);
  --secondary-foreground: oklch(0.255 0.038 359.713);
  --accent: oklch(0.363 0.057 298.864);
  --accent-foreground: oklch(0.894 0.02 301.139);
  --destructive: oklch(0.629 0.256 29.493);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.593 0.211 8.639);
  --chart-1: oklch(0.593 0.211 8.639);
  --chart-2: oklch(0.782 0.047 357.297);
  --chart-3: oklch(0.363 0.057 298.864);
  --chart-4: oklch(0.809 0.041 357.037);
  --chart-5: oklch(0.597 0.216 9.308);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.229 0.03 299.342);
  --foreground: oklch(0.977 0.008 106.548);
  --muted: oklch(0.277 0.02 300.355);
  --muted-foreground: oklch(0.72 0.03 300.826);
  --popover: oklch(0.2 0.024 299.54);
  --popover-foreground: oklch(1 0 180);
  --card: oklch(0.21 0.026 299.467);
  --card-foreground: oklch(1 0 180);
  --border: oklch(0.286 0.022 300.234);
  --input: oklch(0.314 0.025 300.187);
  --primary: oklch(0.593 0.211 8.639);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.782 0.047 357.297);
  --secondary-foreground: oklch(0.255 0.038 359.713);
  --accent: oklch(0.363 0.057 298.864);
  --accent-foreground: oklch(0.894 0.02 301.139);
  --destructive: oklch(0.629 0.256 29.493);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.593 0.211 8.639);
  --chart-1: oklch(0.593 0.211 8.639);
  --chart-2: oklch(0.782 0.047 357.297);
  --chart-3: oklch(0.363 0.057 298.864);
  --chart-4: oklch(0.809 0.041 357.037);
  --chart-5: oklch(0.597 0.216 9.308);
}