Docs menu
@import '@memomori-app/charon/styles.css';
<article class="charon">…</article>

The CSS is plain: no Tailwind and no build step. The parser loads no CSS, so import the styles yourself.

Add not-prose to any element inside .charon that should keep its own styles.

Dark mode #

Every color is a light-dark() pair, so the theme follows color-scheme. Set it on the page:

:root {
  color-scheme: light dark;
}

Set color-scheme: dark to force the dark colors.

Colors #

Override any --charon-* property. The defaults sit in :where(:root), so any rule of yours wins:

:root {
  --charon-links: #0f766e;
  --charon-callout-tip: light-dark(#15803d, #4ade80);
}
Token Colors
--charon-background page background
--charon-body, --charon-lead, --charon-headings, --charon-bold, --charon-links, --charon-quotes text
--charon-counters, --charon-bullets, --charon-captions, --charon-kbd list markers, captions, keys
--charon-hr, --charon-quote-borders, --charon-th-borders, --charon-td-borders rules and borders
--charon-code, --charon-code-inline-background inline code
--charon-code-background, --charon-code-foreground, --charon-code-<token> code blocks and highlighting
--charon-callout-note, -tip, -important, -warning, -danger, -quote callouts
--charon-tag, --charon-wiki-broken, --charon-wiki-ambiguous tags and unresolved links

Diagrams read pele's --pele-* properties. Charon sets them on .mermaid from the same palette, with no specificity, so a .mermaid rule of yours wins. See pele's theming for the full list.

Files #

File Holds
styles.css the three below
reset.css a reset scoped to .charon: the part of Tailwind's preflight the theme needs
typography.css spacing, sizes and base colors, from Tailwind Typography
charon.css tokens, code, callouts, tags, links and KaTeX

Each optional module has its own file: heading-links.css, examples.css, assets.css and contents.css. A docs site built with Elysium adds its own docs.css; see Labels and styles.

With Tailwind #

Skip reset.css, since preflight does its job. Put typography.css in the components layer, so utilities beat it:

@import 'tailwindcss';
@import '@memomori-app/charon/typography.css' layer(components);
@import '@memomori-app/charon/charon.css';

typography.css and reset.css come from Tailwind CSS, under its MIT license. See THIRD-PARTY-NOTICES in the package.