Novel for shadcn/ui

Novel is a shadcn/ui theme built around a light teal primary color (#e3f2f1) with light blue accents (#e3ecf2). The light mode uses a neutral background (#fbfdfd). Dark mode keeps the light teal primary (#e3f2f1) on a neutral background (#000000).

Color palette

TokenLightDark
Background
#fbfdfdwhite
#000000black
Foreground
#000000black
#f9fbfbghostwhite
Card
#f8fcfbmintcream
#030303black
Card foreground
#000000black
#fcfdfdwhite
Popover
#f8fcfbmintcream
#030303black
Popover foreground
#000000black
#fcfdfdwhite
Primary
#e3f2f1lavender
#e3f2f1lavender
Primary foreground
#132a28darkslategray
#132a28darkslategray
Secondary
#e3f2e9honeydew
#e3f2e9honeydew
Secondary foreground
#132a1cblack
#132a1cblack
Muted
#d7e5dcgainsboro
#1a2820black
Muted foreground
#424342darkslategray
#bcbdbdsilver
Accent
#e3ecf2lavender
#e3ecf2lavender
Accent foreground
#335971darkslategray
#335971darkslategray
Destructive
#682008maroon
#ef5725chocolate
Destructive foreground
#f9bdaalightpink
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#e3f2f1lavender
#e3f2f1lavender

Contrast

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

Light mode
Text on background20.64:1AAA
Text on card20.30:1AAA
Primary button13.14:1AAA
Secondary button13.21:1AAA
Muted text7.62:1AAA
Accent6.26:1AA
Destructive7.14:1AAA
Dark mode
Text on background20.21:1AAA
Text on card20.29:1AAA
Primary button13.14:1AAA
Secondary button13.21:1AAA
Muted text8.14:1AAA
Accent6.26:1AA
Destructive3.46:1AA Large

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 188.858);
  --foreground: oklch(0 0 0);
  --muted: oklch(0.908 0.019 159);
  --muted-foreground: oklch(0.381 0.002 159.338);
  --popover: oklch(0.988 0.004 188.805);
  --popover-foreground: oklch(0 0 0);
  --card: oklch(0.988 0.004 188.805);
  --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.95 0.017 188.494);
  --primary-foreground: oklch(0.266 0.03 185.859);
  --secondary: oklch(0.948 0.021 158.974);
  --secondary-foreground: oklch(0.262 0.04 155.326);
  --accent: oklch(0.939 0.013 234.707);
  --accent-foreground: oklch(0.445 0.059 237.37);
  --destructive: oklch(0.354 0.109 37.262);
  --destructive-foreground: oklch(0.848 0.074 39.225);
  --ring: oklch(0.95 0.017 188.494);
  --chart-1: oklch(0.95 0.017 188.494);
  --chart-2: oklch(0.948 0.021 158.974);
  --chart-3: oklch(0.939 0.013 234.707);
  --chart-4: oklch(0.968 0.013 159.169);
  --chart-5: oklch(0.951 0.018 188.462);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0 0 0);
  --foreground: oklch(0.986 0.002 188.86);
  --muted: oklch(0.261 0.025 157.116);
  --muted-foreground: oklch(0.798 0.002 159.417);
  --popover: oklch(0.092 0 180);
  --popover-foreground: oklch(0.993 0.001 188.885);
  --card: oklch(0.092 0 180);
  --card-foreground: oklch(0.993 0.001 188.885);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.95 0.017 188.494);
  --primary-foreground: oklch(0.266 0.03 185.859);
  --secondary: oklch(0.948 0.021 158.974);
  --secondary-foreground: oklch(0.262 0.04 155.326);
  --accent: oklch(0.939 0.013 234.707);
  --accent-foreground: oklch(0.445 0.059 237.37);
  --destructive: oklch(0.654 0.196 37.463);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.95 0.017 188.494);
  --chart-1: oklch(0.95 0.017 188.494);
  --chart-2: oklch(0.948 0.021 158.974);
  --chart-3: oklch(0.939 0.013 234.707);
  --chart-4: oklch(0.968 0.013 159.169);
  --chart-5: oklch(0.951 0.018 188.462);
}