Aa 0.14.1

Design system 1

Aa is the text editor that goes with Design system 1, the design system its apps are built on. It draws every block as Design system 1’s prose sheet draws the same Markdown read on a page, so writing in Aa and reading it elsewhere look the same.

Prose, as Design system 1 draws it

A line a square, a square between blocks, two before a heading.

What it stores

Design system 1’s Prose draws long-form writing in native HTML on its grid: headings, paragraphs, lists, quotes, code, rules and tables, under data-ds-prose. Aa’s aa.css draws its blocks with the same measures:

Measure
A lineOne square, 20px
Between blocksOne square, two before a heading
The title20px on two squares
## and ###17px and 15px
Code13px on the same lines, in a hairline frame
LinksUnderlined, in the text’s colour
QuotesOn a muted hairline
TablesTwo squares a row

A measure is changed in Design system 1’s prose sheet first, then in Aa.

Every measure and colour in aa.css is a --ds-* token with its value as the fallback. With Design system 1’s stylesheet on the page, Aa follows its theme, scale and accent; without it, Aa still draws every measure. One thing changes with an --aa-* property; see Styling.

  • The toolbar is Design system 1’s context bar, from its context.css.
  • Tooltips are Design system 1’s, naming each cell with its shortcut.
  • The block menu is drawn in the Context face, and the insert sheet on a phone is Design system 1’s sheet.
  • Checkboxes, avatars and tabs in boxes and comments are drawn as Design system 1 draws them.
  • On a phone every measure follows Design system 1’s scale, --sf; see Scaling.
  • Diagrams stand on Design system 1’s squares and palette.

An app built on Design system 1 takes Aa for everything people write: notes, comments, messages, descriptions. Load Design system 1’s root stylesheet and the editor, which brings aa.css itself, and it draws in the app’s theme, at its scale, with its accent.