Typography
The Typography stylesheet provides styles for headings and inline elements
Import
@import "@webtui/css/components/typography.css";
Usage
<h1>
-<h6>
<h1>Heading 1</h1>
<h2>Heading 2</h2>
<h3>Heading 3</h3>
<h4>Heading 4</h4>
<h5>Heading 5</h5>
<h6>Heading 6</h6>
<p>
<p>Lorem <strong>Ipsum</strong> <em>Dolor</em> <code>Sit</code> <a href="https://example.com">Amet</a></p>
<blockquote>
<blockquote>Lorem Ipsum Dolor Sit Amet</blockquote>
<ol>
<ol>
<li>One</li>
<li>Two</li>
<li>Three</li>
</ol>
<ul>
<ul>
<li>One</li>
<li>Two</li>
<li>Three</li>
</ul>
<ul>
Markers
Add the marker-
attribute to a <ul>
element to customize its list markers
<ul><!--...--></ul>
<ul marker-="bullet"><!--...--></ul>
<ul marker-="tree"><!--...--></ul>
Use the open
keyword at the start and/or end of the marker-
attribute to leave the top/bottom tree markers open
<ul marker-="tree open"><!--...--></ul>
<ul marker-="open tree"><!--...--></ul>
<ul marker-="open tree open"><!--...--></ul>
[is-="typography-block"]
<div is-="typography-block">
Typography block
</div>
Scope
- All HTML heading elements
- paragraphs, blockquotes, lists, list items, elements with
is-="typography-block"
and their respective inline elements
h1, h2, h3, h4, h5 {/* ... */}
ul {/* ... */}
ol {/* ... */}
p,
blockquote,
li,
[is-~="typography-block"] {
/* ... */
strong {/* ... */}
a {/* ... */}
code {/* ... */}
}