--- layout: '@/layouts/Doc.astro' title: Typography order: 1 --- import Example from '@/components/Example.astro' import HoverSandbox from '@/components/landing/widgets/HoverSandbox.astro' import typographyStylesheet from '@webtui/css/components/typography.css?raw' The **Typography** stylesheet provides styles for headings and inline elements ## Import ```css @import '@webtui/css/components/typography.css'; ``` ## Usage ### `
`
Paragraphs
`, and `` tags
Lorem
Ipsum
Dolor
Sit
Amet
`}
/>
### ``
Block Quotes
Lorem Ipsum Dolor Sit Amet
`}
/>
### ``
Ordered Lists
- One
- Two
- Three
`}
/>
### ``
Unordered Lists
- One
- Two
- Three
`}
/>
#### `` Markers
Add the `marker-` attribute to a `` element to customize its list markers
```html
```
- List
- With
default Markers
- List
- With
bullet Markers
- List
- With
tree Markers
`}
/>
Use the `open` keyword at the start and/or end of the `marker-` attribute to leave the top/bottom tree markers open
```html
```
- Tree
- With
marker-="tree open"
- Tree
- With
marker-="open tree"
- Tree
- With
marker-="open tree open"
`}
/>
### `[is-="typography-block"]`
Apply typography styles to an element's children
```html
Typography block
```
## Scope
- All HTML heading elements
- paragraphs, blockquotes, lists, list items, elements with `is-="typography-block"` and their respective inline elements
```css
h1,
h2,
h3,
h4,
h5 {
/* ... */
}
ul {
/* ... */
}
ol {
/* ... */
}
p,
blockquote,
li,
[is-~='typography-block'] {
/* ... */
strong {
/* ... */
}
a {
/* ... */
}
code {
/* ... */
}
}
```
## Hover Sandbox
A collection of hover-effect variants for body links. Each row uses a
different animation for its `` — hover or tab to one to compare.