Chronicle is a shadcn/ui theme built around a violet primary color (#b181cf) with muted light violet accents (#d2cdd5). The light mode uses a neutral background (#faf8fc). Dark mode keeps the violet primary (#b181cf) on a neutral background (#060307).
| Token | Light | Dark |
|---|---|---|
| Background | #faf8fcghostwhite | #060307black |
| Foreground | #0e0614black | #faf9fbghostwhite |
| Card | #f8f4fbghostwhite | #08040bblack |
| Card foreground | #0b0510black | #fdfcfdwhite |
| Popover | #f8f4fbghostwhite | #08040bblack |
| Popover foreground | #0b0510black | #fdfcfdwhite |
| Primary | #b181cfmediumpurple | #b181cfmediumpurple |
| Primary foreground | #110816black | #110816black |
| Secondary | #d2cdd5lightgrey | #1c1c1cblack |
| Secondary foreground | #39343ddarkslategray | #b5b5b5silver |
| Muted | #e4dce9gainsboro | #231616black |
| Muted foreground | #423748darkslategray | #c8b7b7silver |
| Accent | #d2cdd5lightgrey | #1c1c1cblack |
| Accent foreground | #39343ddarkslategray | #b5b5b5silver |
| Destructive | #9b1008darkred | #f2180dred |
| Destructive foreground | #fddad8mistyrose | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #b181cfmediumpurple | #b181cfmediumpurple |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 18.83:1 | AAA |
| Text on card | 18.51:1 | AAA |
| Primary button | 6.48:1 | AA |
| Secondary button | 7.77:1 | AAA |
| Muted text | 8.43:1 | AAA |
| Accent | 7.77:1 | AAA |
| Destructive | 6.55:1 | AA |
| Text on background | 19.56:1 | AAA |
| Text on card | 19.84:1 | AAA |
| Primary button | 6.48:1 | AA |
| Secondary button | 8.30:1 | AAA |
| Muted text | 9.14:1 | AAA |
| Accent | 8.30:1 | AAA |
| Destructive | 4.26:1 | AA Large |
Paste this into your globals.css to use Chronicle in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.981 0.007 312.938);
--foreground: oklch(0.143 0.033 312.081);
--muted: oklch(0.906 0.019 312.84);
--muted-foreground: oklch(0.356 0.031 312.39);
--popover: oklch(0.972 0.01 312.914);
--popover-foreground: oklch(0.132 0.029 313.084);
--card: oklch(0.972 0.01 312.914);
--card-foreground: oklch(0.132 0.029 313.084);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.68 0.123 311.708);
--primary-foreground: oklch(0.157 0.031 311.649);
--secondary: oklch(0.855 0.011 312.896);
--secondary-foreground: oklch(0.333 0.017 312.634);
--accent: oklch(0.855 0.011 312.896);
--accent-foreground: oklch(0.333 0.017 312.634);
--destructive: oklch(0.439 0.171 29.415);
--destructive-foreground: oklch(0.917 0.039 21.467);
--ring: oklch(0.68 0.123 311.708);
--chart-1: oklch(0.68 0.123 311.708);
--chart-2: oklch(0.855 0.011 312.896);
--chart-3: oklch(0.855 0.011 312.896);
--chart-4: oklch(0.88 0.009 312.914);
--chart-5: oklch(0.678 0.131 311.609);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.106 0.018 314.445);
--foreground: oklch(0.983 0.003 312.966);
--muted: oklch(0.215 0.021 18.948);
--muted-foreground: oklch(0.793 0.019 17.559);
--popover: oklch(0.122 0.021 314.341);
--popover-foreground: oklch(0.992 0.001 312.976);
--card: oklch(0.122 0.021 314.341);
--card-foreground: oklch(0.992 0.001 312.976);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.68 0.123 311.708);
--primary-foreground: oklch(0.157 0.031 311.649);
--secondary: oklch(0.227 0 164.055);
--secondary-foreground: oklch(0.773 0 180);
--accent: oklch(0.227 0 164.055);
--accent-foreground: oklch(0.773 0 180);
--destructive: oklch(0.61 0.242 29.485);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.68 0.123 311.708);
--chart-1: oklch(0.68 0.123 311.708);
--chart-2: oklch(0.227 0 164.055);
--chart-3: oklch(0.227 0 164.055);
--chart-4: oklch(0.259 0 167.471);
--chart-5: oklch(0.678 0.131 311.609);
}