Novel for shadcn/ui

Novel is a shadcn/ui theme built around a muted light teal primary color (#e1eaea) with muted light teal accents (#c4d4d3). The light mode uses a neutral background (#fcfdfd). Dark mode keeps the muted light teal primary (#e1eaea) on a teal-tinted background (#050f0f).

Color palette

TokenLightDark
Background
#fcfdfdwhite
#050f0fblack
Foreground
#061413black
#f6f8f8whitesmoke
Card
#fcfdfdwhite
#050f0fblack
Card foreground
#061413black
#f6f8f8whitesmoke
Popover
#fcfdfdwhite
#050f0fblack
Popover foreground
#061413black
#f6f8f8whitesmoke
Primary
#e1eaealavender
#e1eaealavender
Primary foreground
#3f5a59darkslategray
#3f5a59darkslategray
Secondary
#dee3e2gainsboro
#191f1fblack
Secondary foreground
#424c4cdarkslategray
#aebcbcsilver
Muted
#e0e6e5gainsboro
#191f1fblack
Muted foreground
#434646darkslategray
#b9bcbbsilver
Accent
#c4d4d3lightgrey
#273a39darkslategray
Accent foreground
#2b3b3adarkslategray
#bfd4d3lightgrey
Destructive
#66270amaroon
#ed7a45coral
Destructive foreground
#f7c3ablightpink
#000000black
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#e1eaealavender
#e1eaealavender

Contrast

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

Light mode
Text on background18.47:1AAA
Text on card18.47:1AAA
Primary button6.08:1AA
Secondary button6.81:1AA
Muted text7.53:1AAA
Accent7.66:1AAA
Destructive7.16:1AAA
Dark mode
Text on background18.17:1AAA
Text on card18.17:1AAA
Primary button6.08:1AA
Secondary button8.53:1AAA
Muted text8.73:1AAA
Accent7.78:1AAA
Destructive7.47:1AAA

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.002 193.571);
  --foreground: oklch(0.177 0.02 191.421);
  --muted: oklch(0.92 0.006 193.477);
  --muted-foreground: oklch(0.392 0.004 193.423);
  --popover: oklch(0.994 0.002 193.571);
  --popover-foreground: oklch(0.177 0.02 191.421);
  --card: oklch(0.994 0.002 193.571);
  --card-foreground: oklch(0.177 0.02 191.421);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.93 0.01 193.398);
  --primary-foreground: oklch(0.446 0.033 192.141);
  --secondary: oklch(0.911 0.005 193.507);
  --secondary-foreground: oklch(0.409 0.013 192.986);
  --accent: oklch(0.858 0.018 193.201);
  --accent-foreground: oklch(0.338 0.021 192.365);
  --destructive: oklch(0.361 0.099 42.084);
  --destructive-foreground: oklch(0.858 0.068 46.119);
  --ring: oklch(0.93 0.01 193.398);
  --chart-1: oklch(0.93 0.01 193.398);
  --chart-2: oklch(0.911 0.005 193.507);
  --chart-3: oklch(0.858 0.018 193.201);
  --chart-4: oklch(0.934 0.003 193.534);
  --chart-5: oklch(0.931 0.011 193.364);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.159 0.017 191.842);
  --foreground: oklch(0.979 0.002 193.558);
  --muted: oklch(0.233 0.008 192.906);
  --muted-foreground: oklch(0.792 0.003 193.53);
  --popover: oklch(0.159 0.017 191.842);
  --popover-foreground: oklch(0.979 0.002 193.558);
  --card: oklch(0.159 0.017 191.842);
  --card-foreground: oklch(0.979 0.002 193.558);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.93 0.01 193.398);
  --primary-foreground: oklch(0.446 0.033 192.141);
  --secondary: oklch(0.233 0.008 192.906);
  --secondary-foreground: oklch(0.785 0.016 193.196);
  --accent: oklch(0.331 0.024 192.18);
  --accent-foreground: oklch(0.853 0.022 193.1);
  --destructive: oklch(0.702 0.156 44.086);
  --destructive-foreground: oklch(0 0 0);
  --ring: oklch(0.93 0.01 193.398);
  --chart-1: oklch(0.93 0.01 193.398);
  --chart-2: oklch(0.233 0.008 192.906);
  --chart-3: oklch(0.331 0.024 192.18);
  --chart-4: oklch(0.267 0.01 192.856);
  --chart-5: oklch(0.931 0.011 193.364);
}