HomeDocsTypography and content
Plain HTML text elements are styled inside .veylo with no classes. This page covers them and the article-style content blocks.
| Element | Style |
|---|---|
p | Base size (--fs, 13px), line height --lh, bottom margin |
h1 to h4 | Bold, base size. h2 is larger with a thin rule under it; h3 is slightly larger; h4 is dimmed. Window titles use .veylo-title instead |
a | Underlined, link colour, hand cursor. Visited and active states use --visited and --err |
small, .sm | Small size (--fs-sm) |
hr | Etched two-pixel divider |
ul, ol, dl | Compact lists with tight margins |
blockquote | Accent bar on the left over a faint stripe |
code, kbd, samp, pre | Monospace; code and kbd sit in a small sunken box |
::selection | Accent background with white text |
<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.
.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>| Part | Purpose |
|---|---|
.veylo-infobox | Summary table. A th colspan="2" first row is the title bar; other rows are label and value |
.veylo-fig | Figure with a placeholder box (div) and a figcaption |
.veylo-hat | Italic hatnote line above the article |
.veylo-toc | Boxed table of contents with a header and a nested ordered list. Shrinks to fit its content |
.veylo-refs | Reference list in small type |
.veylo-cat | Category footer line |
<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.
<ul class="veylo-log">
<li><time>2026-10-26</time>Shipped 1.0.0</li>
</ul><div class="veylo-media"><span class="veylo-avatar">AB</span><div><b>Ada B.</b>Posted a comment.</div></div><div class="veylo-divider">or</div>A horizontal rule with a centred label. Leave it empty for a plain line.
<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.
<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.
.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).