Novel for shadcn/ui

Novel is a shadcn/ui theme built around a light teal primary color (#beeee2) with light red accents (#eebeca). The light mode uses a neutral background (#ffffff). Dark mode keeps the light teal primary (#beeee2) on a teal-tinted background (#070d0c).

Color palette

TokenLightDark
Background
#ffffffwhite
#070d0cblack
Foreground
#000000black
#f7f8f8whitesmoke
Card
#fcfcfcsnow
#09110fblack
Card foreground
#000000black
#f9fafaghostwhite
Popover
#ffffffwhite
#070d0cblack
Popover foreground
#000000black
#f7f8f8whitesmoke
Primary
#beeee2paleturquoise
#beeee2paleturquoise
Primary foreground
#04100dblack
#04100dblack
Secondary
#eebecapink
#eebecapink
Secondary foreground
#61192bmaroon
#61192bmaroon
Muted
#efe6e8linen
#191012black
Muted foreground
#6c5158dimgray
#ae939arosybrown
Accent
#eebecapink
#eebecapink
Accent foreground
#61192bmaroon
#61192bmaroon
Destructive
#7a120bmaroon
#eb2719crimson
Destructive foreground
#f9c1bdlightpink
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#beeee2paleturquoise
#beeee2paleturquoise

Contrast

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

Light mode
Text on background21.00:1AAA
Text on card20.54:1AAA
Primary button15.25:1AAA
Secondary button7.65:1AAA
Muted text5.79:1AA
Accent7.65:1AAA
Destructive6.97:1AA
Dark mode
Text on background18.38:1AAA
Text on card18.32:1AAA
Primary button15.25:1AAA
Secondary button7.65:1AAA
Muted text6.63:1AA
Accent7.65:1AAA
Destructive4.34:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(1 0 180);
  --foreground: oklch(0 0 0);
  --muted: oklch(0.932 0.011 0.2);
  --muted-foreground: oklch(0.465 0.037 2.009);
  --popover: oklch(1 0 180);
  --popover-foreground: oklch(0 0 0);
  --card: oklch(0.992 0 161.565);
  --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.913 0.052 178.129);
  --primary-foreground: oklch(0.161 0.02 177.285);
  --secondary: oklch(0.848 0.057 1.709);
  --secondary-foreground: oklch(0.338 0.104 9.861);
  --accent: oklch(0.848 0.057 1.709);
  --accent-foreground: oklch(0.338 0.104 9.861);
  --destructive: oklch(0.375 0.139 29.505);
  --destructive-foreground: oklch(0.861 0.065 23.207);
  --ring: oklch(0.913 0.052 178.129);
  --chart-1: oklch(0.913 0.052 178.129);
  --chart-2: oklch(0.848 0.057 1.709);
  --chart-3: oklch(0.848 0.057 1.709);
  --chart-4: oklch(0.876 0.046 1.304);
  --chart-5: oklch(0.915 0.055 178.043);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.153 0.011 178.446);
  --foreground: oklch(0.978 0.002 179.817);
  --muted: oklch(0.185 0.017 2.387);
  --muted-foreground: oklch(0.69 0.033 1.174);
  --popover: oklch(0.153 0.011 178.446);
  --popover-foreground: oklch(0.978 0.002 179.817);
  --card: oklch(0.167 0.012 177.596);
  --card-foreground: oklch(0.985 0.001 179.833);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.913 0.052 178.129);
  --primary-foreground: oklch(0.161 0.02 177.285);
  --secondary: oklch(0.848 0.057 1.709);
  --secondary-foreground: oklch(0.338 0.104 9.861);
  --accent: oklch(0.848 0.057 1.709);
  --accent-foreground: oklch(0.338 0.104 9.861);
  --destructive: oklch(0.604 0.229 29.638);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.913 0.052 178.129);
  --chart-1: oklch(0.913 0.052 178.129);
  --chart-2: oklch(0.848 0.057 1.709);
  --chart-3: oklch(0.848 0.057 1.709);
  --chart-4: oklch(0.876 0.046 1.304);
  --chart-5: oklch(0.915 0.055 178.043);
}