newsletter-builder
  • Type to search the documentation.

Variables & Theming

Accessibility and dark mode

How the builder and its exported emails support keyboard use, screen readers and colour schemes.

In the editor

  • Every block can be reordered without a pointer using the move up and move down buttons, or the keyboard shortcuts shown in tooltips.
  • Tooltips appear on focus as well as hover and are linked with aria-describedby.
  • Tabs, toggles and dialogs use proper roles and keep visible focus rings.
  • Rich text toolbar buttons expose pressed state to assistive technology.

In the exported email

  • Layout tables carry role="presentation".
  • Headings compile to real <h1>-<h3> elements.
  • The root element has a lang attribute and the document has a <title>.
  • Images always output an alt attribute; the linter flags empty ones.
  • Links stay underlined by default so they do not rely on colour alone.

Dark mode

Define both a light and dark palette on the theme. Light colours are inlined everywhere for maximum client support. Dark colours are emitted inside a prefers-color-scheme: dark block with !important, and color-scheme meta tags tell supporting clients that both schemes are handled.