Typography
Default styles and utilities for HTML typography, lists, inline and block elements.
- Source file
- src/css/typography.css
- View on GitHub
- https://github.com/pmbrown/ming-css/blob/main/src/css/typography.css
Included with:
- ming.css
- ming.min.css
- ming.mono.css
- ming.mono.min.css
- ming.restart.css
- ming.restart.min.css
Headings (anchor)
Heading 1
Heading 2
Heading 3
Heading 4
Heading 5
Heading 6
Text (anchor)
The quick brown fox jumps over the lazy dog.
ABCDEFGHIJKLMNOPQRSTUVWXYZ
abcdefghijklmnopqrstuvwxyz
123456789
The quick brown fox jumps over the lazy dog.
ABCDEFGHIJKLMNOPQRSTUVWXYZ
abcdefghijklmnopqrstuvwxyz
123456789
Lists (anchor)
- Item
- Item
- Item
- Item
- Item
- Item
- Item
- Item
- Term 1
- Description 1
- Term 2
- Description 2
Inline elements (anchor)
Bold/strong
Italic/emphasis
Superscript(1)
Subscript(2)
Delete
Mark
Small
Keyboard
Code
Abbr
Block elements (anchor)
<blockquote>
— Editor Daily Blog
The quick brown fox jumps over the lazy dog.
<pre>
:where(html) {
color-scheme: light dark;
color: CanvasText;
background-color: Canvas;
}
<details>
Details summary
Details content
<hr>
<figure>
Utilities (anchor)
Heading sizes (anchor)
Heading font-size property styles include a utility class for resizing text with the heading size values:
:where(h4), .h4 {
font-size: var(--h4-fs, 1.375rem);
}
Example heading text
<p class="h4">Example heading text</p>
Visually hidden (anchor)
Content accessibility utilities that hide text visually but available for screen readers:
.vis-hidden, .vis-hidden-focus:not(:focus):not(:focus-within) {
position: absolute;
block-size: 1px;
inline-size: 1px;
margin: -1px;
overflow: hidden;
clip-path: inset(50%);
white-space: nowrap;
}
The '.vis-hidden-focus' class is viewable when tabbed to for use with page skip to content links.
Light & dark (anchor)
Fixed color-scheme utilities included with the backgrounds work with the default color values used with the block elements <pre> and <blockquote>.
<pre class="light">
.light {
color-scheme: light;
}
<pre class="dark">
.dark {
color-scheme: dark;
}
<blockquote class="light">
— Editor Daily Blog
The quick brown fox jumps over the lazy dog.
<blockquote class="dark">
— Editor Daily Blog
The quick brown fox jumps over the lazy dog.