Chin for shadcn/ui

Chin is a shadcn/ui theme built around a vivid cyan primary color (#58cef9) with vivid orange accents (#f98358). The light mode uses a neutral background (#f7fbfd). Dark mode keeps the vivid cyan primary (#58cef9) on a cyan-tinted background (#040a0c).

Color palette

TokenLightDark
Background
#f7fbfdghostwhite
#040a0cblack
Foreground
#010304black
#f5f8f9whitesmoke
Card
#f7fbfdghostwhite
#040a0cblack
Card foreground
#010304black
#f5f8f9whitesmoke
Popover
#f7fbfdghostwhite
#040a0cblack
Popover foreground
#010304black
#f5f8f9whitesmoke
Primary
#58cef9lightskyblue
#58cef9lightskyblue
Primary foreground
#01161eblack
#01161eblack
Secondary
#f98358coral
#f98358coral
Secondary foreground
#1e0901black
#1e0901black
Muted
#f7f0eelinen
#110b08black
Muted foreground
#62514bdimgray
#b4a39ddarkgray
Accent
#f98358coral
#f98358coral
Accent foreground
#1e0901black
#1e0901black
Destructive
#6f0a01maroon
#fd2512orangered
Destructive foreground
#feaca4lightpink
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#58cef9lightskyblue
#58cef9lightskyblue

Contrast

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

Light mode
Text on background19.89:1AAA
Text on card19.89:1AAA
Primary button10.22:1AAA
Secondary button7.66:1AAA
Muted text6.66:1AA
Accent7.66:1AAA
Destructive6.76:1AA
Dark mode
Text on background18.71:1AAA
Text on card18.71:1AAA
Primary button10.22:1AAA
Secondary button7.66:1AAA
Muted text8.06:1AAA
Accent7.66:1AAA
Destructive3.86:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.986 0.006 221.354);
  --foreground: oklch(0.094 0.01 215.937);
  --muted: oklch(0.96 0.008 41.238);
  --muted-foreground: oklch(0.451 0.024 40.992);
  --popover: oklch(0.986 0.006 221.354);
  --popover-foreground: oklch(0.094 0.01 215.937);
  --card: oklch(0.986 0.006 221.354);
  --card-foreground: oklch(0.094 0.01 215.937);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.801 0.121 225.472);
  --primary-foreground: oklch(0.186 0.033 223.166);
  --secondary: oklch(0.733 0.156 40.298);
  --secondary-foreground: oklch(0.17 0.042 48.041);
  --accent: oklch(0.733 0.156 40.298);
  --accent-foreground: oklch(0.17 0.042 48.041);
  --destructive: oklch(0.346 0.134 30.834);
  --destructive-foreground: oklch(0.821 0.098 25.152);
  --ring: oklch(0.801 0.121 225.472);
  --chart-1: oklch(0.801 0.121 225.472);
  --chart-2: oklch(0.733 0.156 40.298);
  --chart-3: oklch(0.733 0.156 40.298);
  --chart-4: oklch(0.753 0.142 40.509);
  --chart-5: oklch(0.804 0.124 225.689);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.136 0.013 217.129);
  --foreground: oklch(0.978 0.003 221.333);
  --muted: oklch(0.156 0.013 41.865);
  --muted-foreground: oklch(0.728 0.021 41.106);
  --popover: oklch(0.136 0.013 217.129);
  --popover-foreground: oklch(0.978 0.003 221.333);
  --card: oklch(0.136 0.013 217.129);
  --card-foreground: oklch(0.978 0.003 221.333);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.801 0.121 225.472);
  --primary-foreground: oklch(0.186 0.033 223.166);
  --secondary: oklch(0.733 0.156 40.298);
  --secondary-foreground: oklch(0.17 0.042 48.041);
  --accent: oklch(0.733 0.156 40.298);
  --accent-foreground: oklch(0.17 0.042 48.041);
  --destructive: oklch(0.635 0.245 30.089);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.801 0.121 225.472);
  --chart-1: oklch(0.801 0.121 225.472);
  --chart-2: oklch(0.733 0.156 40.298);
  --chart-3: oklch(0.733 0.156 40.298);
  --chart-4: oklch(0.753 0.142 40.509);
  --chart-5: oklch(0.804 0.124 225.689);
}