Skip to content

Prose

Text written for reading: a measure of about 72 characters, headings with room above them, links that are clearly links.

import Prose from '@sypnia/ui/astro/Prose.astro'

On this page
  1. An article
  2. When to use it
  3. For everyone

An article

Wrap Markdown output in it. Text keeps the reading measure; code, tables and figures use the whole column.

How tables keep your data

A table is a set of rows with the same columns. Each column has a type, and Sypnia checks every value against it, so a date is always a date. Read the column types for the whole list.

  • Text, numbers, dates and true or false.
  • A link to a row of another table.
  • A file, kept next to the row.

When a value does not fit

The row is not saved, and the message says which column and why: amount must be a number.

Text sits on the page; only machine objects get a plate.
Code
---
import Prose from '@sypnia/ui/astro/Prose.astro';
---
<div class="sy-docs" style="min-height:0;background:none">
<Prose>
  <h2>How tables keep your data</h2>
  <p>A <strong>table</strong> is a set of rows with the same columns. Each column has a type, and Sypnia checks every value against it, so a date is always a date. Read <a href="#">the column types</a> for the whole list.</p>
  <ul><li>Text, numbers, dates and true or false.</li><li>A link to a row of another table.</li><li>A file, kept next to the row.</li></ul>
  <h3>When a value does not fit</h3>
  <p>The row is not saved, and the message says which column and why: <code>amount must be a number</code>.</p>
  <blockquote>Text sits on the page; only machine objects get a plate.</blockquote>
</Prose>
</div>

When to use it

Use it when

  • Any long text: a guide, a reference page, a policy.

Do not use it when

  • Interface text: labels, buttons and short messages use the components' own styles.

For everyone

  • Headings keep their levels; links are underlined, not only coloured.
  • Line length and spacing follow reading guidelines (about 72 characters, line height 1.68).
  1. An article
  2. When to use it
  3. For everyone

    Search pages, sections and terms