Novel is a shadcn/ui theme built around a muted light teal primary color (#bbd3d3) with muted light red accents (#d3bbbb). The light mode uses a neutral background (#f7fcfc). Dark mode keeps the muted light teal primary (#bbd3d3) on a neutral background (#030707).
| Token | Light | Dark |
|---|---|---|
| Background | #f7fcfcmintcream | #030707black |
| Foreground | #010909black | #f4fafamintcream |
| Card | #f7fcfcmintcream | #030707black |
| Card foreground | #010909black | #f4fafamintcream |
| Popover | #f7fcfcmintcream | #030707black |
| Popover foreground | #010909black | #f4fafamintcream |
| Primary | #bbd3d3lightsteelblue | #bbd3d3lightsteelblue |
| Primary foreground | #243838darkslategray | #243838darkslategray |
| Secondary | #d3bbbbsilver | #d3bbbbsilver |
| Secondary foreground | #382424darkslategray | #382424darkslategray |
| Muted | #ded8d8gainsboro | #272121black |
| Muted foreground | #645454dimgray | #ab9b9bdarkgray |
| Accent | #d3bbbbsilver | #d3bbbbsilver |
| Accent foreground | #382424darkslategray | #382424darkslategray |
| Destructive | #cf3f17firebrick | #e95c35tomato |
| Destructive foreground | #ffffffwhite | #000000black |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #bbd3d3lightsteelblue | #bbd3d3lightsteelblue |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.49:1 | AAA |
| Text on card | 19.49:1 | AAA |
| Primary button | 7.88:1 | AAA |
| Secondary button | 7.99:1 | AAA |
| Muted text | 5.09:1 | AA |
| Accent | 7.99:1 | AAA |
| Destructive | 4.81:1 | AA |
| Text on background | 19.17:1 | AAA |
| Text on card | 19.17:1 | AAA |
| Primary button | 7.88:1 | AAA |
| Secondary button | 7.99:1 | AAA |
| Muted text | 5.97:1 | AA |
| Accent | 7.99:1 | AAA |
| Destructive | 6.03:1 | AA |
Paste this into your globals.css to use Novel in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.989 0.005 197.071);
--foreground: oklch(0.128 0.017 195.233);
--muted: oklch(0.888 0.006 17.275);
--muted-foreground: oklch(0.461 0.022 17.977);
--popover: oklch(0.989 0.005 197.071);
--popover-foreground: oklch(0.128 0.017 195.233);
--card: oklch(0.989 0.005 197.071);
--card-foreground: oklch(0.128 0.017 195.233);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.849 0.026 196.664);
--primary-foreground: oklch(0.324 0.026 195.95);
--secondary: oklch(0.812 0.028 17.749);
--secondary-foreground: oklch(0.285 0.031 19.166);
--accent: oklch(0.812 0.028 17.749);
--accent-foreground: oklch(0.285 0.031 19.166);
--destructive: oklch(0.573 0.187 35.15);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.849 0.026 196.664);
--chart-1: oklch(0.849 0.026 196.664);
--chart-2: oklch(0.812 0.028 17.749);
--chart-3: oklch(0.812 0.028 17.749);
--chart-4: oklch(0.838 0.024 17.643);
--chart-5: oklch(0.852 0.03 196.604);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.123 0.01 195.918);
--foreground: oklch(0.982 0.006 197.054);
--muted: oklch(0.254 0.009 17.743);
--muted-foreground: oklch(0.704 0.02 17.625);
--popover: oklch(0.123 0.01 195.918);
--popover-foreground: oklch(0.982 0.006 197.054);
--card: oklch(0.123 0.01 195.918);
--card-foreground: oklch(0.982 0.006 197.054);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.849 0.026 196.664);
--primary-foreground: oklch(0.324 0.026 195.95);
--secondary: oklch(0.812 0.028 17.749);
--secondary-foreground: oklch(0.285 0.031 19.166);
--accent: oklch(0.812 0.028 17.749);
--accent-foreground: oklch(0.285 0.031 19.166);
--destructive: oklch(0.651 0.183 36.106);
--destructive-foreground: oklch(0 0 0);
--ring: oklch(0.849 0.026 196.664);
--chart-1: oklch(0.849 0.026 196.664);
--chart-2: oklch(0.812 0.028 17.749);
--chart-3: oklch(0.812 0.028 17.749);
--chart-4: oklch(0.838 0.024 17.643);
--chart-5: oklch(0.852 0.03 196.604);
}