Doki Theme: YuruCamp: Rin for shadcn/ui

Doki Theme: YuruCamp: Rin is a shadcn/ui theme built around a blue primary color (#6789ad) with muted blue accents (#4b5468). The light mode uses a blue-tinted background (#2b303b). Dark mode keeps the blue primary (#6789ad) on a blue-tinted background (#2b303b).

Color palette

TokenLightDark
Background
#2b303bdarkslategray
#2b303bdarkslategray
Foreground
#f8f8f2whitesmoke
#f8f8f2whitesmoke
Card
#272b35darkslategray
#272b35darkslategray
Card foreground
#ffffffwhite
#ffffffwhite
Popover
#242932darkslategray
#242932darkslategray
Popover foreground
#ffffffwhite
#ffffffwhite
Primary
#6789adlightslategray
#6789adlightslategray
Primary foreground
#000000black
#000000black
Secondary
#333f4ddarkslategray
#333f4ddarkslategray
Secondary foreground
#d1d8e0gainsboro
#d1d8e0gainsboro
Muted
#363b45darkslategray
#363b45darkslategray
Muted foreground
#b5bac5silver
#b5bac5silver
Accent
#4b5468dimgray
#4b5468dimgray
Accent foreground
#f0f2f4whitesmoke
#f0f2f4whitesmoke
Destructive
#fc2727crimson
#fc2727crimson
Destructive foreground
#ffffffwhite
#ffffffwhite
Border
#3c3e44darkslategray
#3c3e44darkslategray
Input
#43464cdarkslategray
#43464cdarkslategray
Ring
#6789adlightslategray
#6789adlightslategray

Contrast

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

Light mode
Text on background12.40:1AAA
Text on card14.14:1AAA
Primary button5.72:1AA
Secondary button7.43:1AAA
Muted text5.81:1AA
Accent6.76:1AA
Destructive3.85:1AA Large
Dark mode
Text on background12.40:1AAA
Text on card14.14:1AAA
Primary button5.72:1AA
Secondary button7.43:1AAA
Muted text5.81:1AA
Accent6.76:1AA
Destructive3.85:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.309 0.021 265.555);
  --foreground: oklch(0.977 0.008 106.548);
  --muted: oklch(0.35 0.019 265.683);
  --muted-foreground: oklch(0.788 0.016 265.902);
  --popover: oklch(0.28 0.019 265.577);
  --popover-foreground: oklch(1 0 180);
  --card: oklch(0.29 0.02 265.57);
  --card-foreground: oklch(1 0 180);
  --border: oklch(0.365 0.01 265.87);
  --input: oklch(0.393 0.01 265.867);
  --primary: oklch(0.617 0.067 250.612);
  --primary-foreground: oklch(0 0 0);
  --secondary: oklch(0.363 0.028 250.316);
  --secondary-foreground: oklch(0.88 0.014 249.792);
  --accent: oklch(0.446 0.034 265.492);
  --accent-foreground: oklch(0.959 0.004 265.988);
  --destructive: oklch(0.635 0.242 27.711);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.617 0.067 250.612);
  --chart-1: oklch(0.617 0.067 250.612);
  --chart-2: oklch(0.363 0.028 250.316);
  --chart-3: oklch(0.446 0.034 265.492);
  --chart-4: oklch(0.392 0.031 250.33);
  --chart-5: oklch(0.616 0.074 250.722);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.309 0.021 265.555);
  --foreground: oklch(0.977 0.008 106.548);
  --muted: oklch(0.35 0.019 265.683);
  --muted-foreground: oklch(0.788 0.016 265.902);
  --popover: oklch(0.28 0.019 265.577);
  --popover-foreground: oklch(1 0 180);
  --card: oklch(0.29 0.02 265.57);
  --card-foreground: oklch(1 0 180);
  --border: oklch(0.365 0.01 265.87);
  --input: oklch(0.393 0.01 265.867);
  --primary: oklch(0.617 0.067 250.612);
  --primary-foreground: oklch(0 0 0);
  --secondary: oklch(0.363 0.028 250.316);
  --secondary-foreground: oklch(0.88 0.014 249.792);
  --accent: oklch(0.446 0.034 265.492);
  --accent-foreground: oklch(0.959 0.004 265.988);
  --destructive: oklch(0.635 0.242 27.711);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.617 0.067 250.612);
  --chart-1: oklch(0.617 0.067 250.612);
  --chart-2: oklch(0.363 0.028 250.316);
  --chart-3: oklch(0.446 0.034 265.492);
  --chart-4: oklch(0.392 0.031 250.33);
  --chart-5: oklch(0.616 0.074 250.722);
}