Novel for shadcn/ui

Novel is a shadcn/ui theme built around a cyan primary color (#70dce6) with green accents (#dce670). The light mode uses a neutral background (#fbfefe). Dark mode keeps the cyan primary (#70dce6) on a cyan-tinted background (#040f10).

Color palette

TokenLightDark
Background
#fbfefewhite
#040f10black
Foreground
#010404black
#f9fbfbghostwhite
Card
#f7fcfdghostwhite
#051314black
Card foreground
#000000black
#fcfdfdwhite
Popover
#f7fcfdghostwhite
#051314black
Popover foreground
#000000black
#fcfdfdwhite
Primary
#70dce6skyblue
#70dce6skyblue
Primary foreground
#051c1eblack
#051c1eblack
Secondary
#e670dcorchid
#e670dcorchid
Secondary foreground
#1e051cblack
#1e051cblack
Muted
#eddeeclavender
#211220black
Muted foreground
#5b485adimgray
#b7a4b6darkgray
Accent
#dce670khaki
#dce670khaki
Accent foreground
#1c1e05black
#1c1e05black
Destructive
#8f2b0fsaddlebrown
#ec6a46tomato
Destructive foreground
#fbded5antiquewhite
#000000black
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#70dce6skyblue
#70dce6skyblue

Contrast

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

Light mode
Text on background20.24:1AAA
Text on card20.32:1AAA
Primary button10.96:1AAA
Secondary button7.04:1AAA
Muted text6.44:1AA
Accent12.58:1AAA
Destructive6.55:1AA
Dark mode
Text on background18.67:1AAA
Text on card18.54:1AAA
Primary button10.96:1AAA
Secondary button7.04:1AAA
Muted text7.68:1AAA
Accent12.58:1AAA
Destructive6.71:1AA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.994 0.003 203.556);
  --foreground: oklch(0.099 0.012 200.784);
  --muted: oklch(0.916 0.026 328.354);
  --muted-foreground: oklch(0.428 0.039 328.963);
  --popover: oklch(0.988 0.005 203.531);
  --popover-foreground: oklch(0 0 0);
  --card: oklch(0.988 0.005 203.531);
  --card-foreground: oklch(0 0 0);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.834 0.1 203.287);
  --primary-foreground: oklch(0.21 0.029 203.289);
  --secondary: oklch(0.719 0.194 330.602);
  --secondary-foreground: oklch(0.177 0.058 331.044);
  --accent: oklch(0.893 0.142 113.207);
  --accent-foreground: oklch(0.228 0.042 113.605);
  --destructive: oklch(0.439 0.14 35.369);
  --destructive-foreground: oklch(0.921 0.034 35.944);
  --ring: oklch(0.834 0.1 203.287);
  --chart-1: oklch(0.834 0.1 203.287);
  --chart-2: oklch(0.719 0.194 330.602);
  --chart-3: oklch(0.893 0.142 113.207);
  --chart-4: oklch(0.741 0.177 330.33);
  --chart-5: oklch(0.839 0.103 203.323);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.159 0.018 202.291);
  --foreground: oklch(0.986 0.002 203.566);
  --muted: oklch(0.209 0.037 329.757);
  --muted-foreground: oklch(0.74 0.034 328.529);
  --popover: oklch(0.175 0.021 202.762);
  --popover-foreground: oklch(0.993 0.001 203.574);
  --card: oklch(0.175 0.021 202.762);
  --card-foreground: oklch(0.993 0.001 203.574);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.834 0.1 203.287);
  --primary-foreground: oklch(0.21 0.029 203.289);
  --secondary: oklch(0.719 0.194 330.602);
  --secondary-foreground: oklch(0.177 0.058 331.044);
  --accent: oklch(0.893 0.142 113.207);
  --accent-foreground: oklch(0.228 0.042 113.605);
  --destructive: oklch(0.677 0.169 36.34);
  --destructive-foreground: oklch(0 0 0);
  --ring: oklch(0.834 0.1 203.287);
  --chart-1: oklch(0.834 0.1 203.287);
  --chart-2: oklch(0.719 0.194 330.602);
  --chart-3: oklch(0.893 0.142 113.207);
  --chart-4: oklch(0.741 0.177 330.33);
  --chart-5: oklch(0.839 0.103 203.323);
}