Veylo Docs

HomeDocsTypography and content

Typography and content

Plain HTML text elements are styled inside .veylo with no classes. This page covers them and the article-style content blocks.

Base text

ElementStyle
pBase size (--fs, 13px), line height --lh, bottom margin
h1 to h4Bold, base size. h2 is larger with a thin rule under it; h3 is slightly larger; h4 is dimmed. Window titles use .veylo-title instead
aUnderlined, link colour, hand cursor. Visited and active states use --visited and --err
small, .smSmall size (--fs-sm)
hrEtched two-pixel divider
ul, ol, dlCompact lists with tight margins
blockquoteAccent bar on the left over a faint stripe
code, kbd, samp, preMonospace; code and kbd sit in a small sunken box
::selectionAccent background with white text

Heading 2

Heading 3

Heading 4

Body text with a link, inline code, Ctrl+S and small text.

A quotation.

Code blocks

<pre class="veylo-code"><code>$ npm install</code>

pre.veylo-code (also pre.veylo-cmd) is a sunken block with a text cursor and scrolls horizontally. Wrap it in .veylo-codebox with a button.veylo-copy to get a Copy button. The button needs data-veylo-copy set to the id of the code element, and veylo.js:

<div class="veylo-codebox">
  <pre class="veylo-code" id="cb"><code>npm install</code>

Every code sample on this site uses it.

Article layout

.veylo-article is a two-column text layout: the main text on the left and an <aside> (usually an infobox) on the right, 15rem wide. On narrow screens it becomes one column. It is designed for wiki-style articles.

<article class="veylo-article">
  <aside>
    <table class="veylo-infobox"><tbody>
      <tr><th colspan="2">Title</th></tr>
      <tr><td>Type</td><td>Browser</td></tr>
    </tbody></table>
    <figure class="veylo-fig"><div></div><figcaption>Fig. 1. Caption.</figcaption></figure>
  </aside>
  <p class="veylo-hat">For other uses, see <a href="#">Disambiguation</a>.</p>
  <h2 id="heading">Heading</h2>
  <p>Text with a citation<sup><a href="#">[1]</a></sup>.</p>
  <nav class="veylo-toc" aria-label="Contents"><b>Contents</b>
    <ol><li><a href="#">History</a></li><li><a href="#">See also</a></li></ol></nav>
  <ol class="veylo-refs"><li>Reference text.</li></ol>
  <p class="veylo-cat"><b>Categories:</b> <a href="#">Software</a></p>
</article>
PartPurpose
.veylo-infoboxSummary table. A th colspan="2" first row is the title bar; other rows are label and value
.veylo-figFigure with a placeholder box (div) and a figcaption
.veylo-hatItalic hatnote line above the article
.veylo-tocBoxed table of contents with a header and a nested ordered list. Shrinks to fit its content
.veylo-refsReference list in small type
.veylo-catCategory footer line

Key/value and definition lists

Version
1.0.0
Licence
Open source
PlanPro
Seats5
<dl class="veylo-dl"><dt>Version</dt><dd>1.0.0</dd></dl>
<div class="veylo-kv"><span>Plan</span><b>Pro</b></div>

.veylo-dl is a bordered two-column box for a dl. .veylo-kv is a single row with the label left, the value right, and a dotted rule below; stack several for a compact summary.

Timeline log

  • Shipped 1.0.0
  • Project start
<ul class="veylo-log">
  <li><time>2026-10-26</time>Shipped 1.0.0</li>
</ul>

Media object

AB
Ada B.Posted a comment 5 minutes ago.
<div class="veylo-media"><span class="veylo-avatar">AB</span><div><b>Ada B.</b>Posted a comment.</div></div>

Divider

or
<div class="veylo-divider">or</div>

A horizontal rule with a centred label. Leave it empty for a plain line.

Hero

<div class="veylo-hero">
  <h1>Headline</h1>
  <p>Supporting text.</p>
  <button class="primary lg">Get started</button>
</div>

A sunken, centred banner with a larger heading (24px) and dimmed text.

Stats

1,204KB
3Releases
99%Uptime
<div class="veylo-stats">
  <div class="veylo-stat"><b>1,204</b><span>KB</span></div>
  <div class="veylo-stat"><b>3</b><span>Releases</span></div>
</div>

.veylo-stats is an auto-fitting grid of stat tiles, each at least 7rem wide.

Price

.veylo-price sets a large price figure with a smaller <small> unit: <span class="veylo-price">$9 <small>/ month</small></span>. It is meant for pricing cards (Containers).