Read articles
The title and surrounding space share one destination.
DOS · Design of Simplicity
The color palette draws inspiration from DOS 6.22 and its default colors. This page presents the typography, colors, and interaction styles shared by the website and local tools.
Choose a text role for the purpose of the content, then pair it with a color.
Latin text and digits use Geist Mono throughout both locales: headings, body text, navigation, dates, labels, and code.
The font is served with the website. Regular text uses weight 400 and emphasis uses 500. Fallbacks are SFMono-Regular, Consolas, and available system fonts, in that order.
Geist Mono · Reading, navigation & code · 0123456789
Chinese uses sans-serif fonts already on the device: PingFang SC, followed by Hiragino Sans GB, Microsoft YaHei, and Noto Sans CJK SC. The actual font depends on the device; no additional Chinese font is downloaded.
All text roles share the --font-reading font stack.
混排示例:杨攀 Pan YANG · 2026 · Geist Mono 与系统黑体。
type-title; section headings: type-heading.type-entry-title.type-body; full articles use a type-prose container.type-ui; supporting text: type-meta; primary view switches: type-view-switch.Each element uses one type-* text role, paired with a text-* color class.
Compose colors with text-* :text-muted for supporting information and text-accent for emphasis. Text and swatch colors are tuned separately. Categories and states also retain text labels.
<h2 class="type-heading">章节标题</h2>
<p class="type-body text-muted">辅助说明</p>
<p class="type-body text-green">已完成 / Complete</p>
<article class="type-prose">…</article>Font sizes use rem and follow the browser’s font-size preference. Section headings and the homepage introduction share a 1.5625rem font size and 1.5 line height. Page titles shrink on narrow screens. Each sample shows its computed font size, line height, and color.
.type-titlePage titles
把想法写下来,让作品说话。
Make room for thoughtful work.
Aa Bb Cc · 0123456789 · @ & / —
.type-headingSection headings
把想法写下来,让作品说话。
Make room for thoughtful work.
Aa Bb Cc · 0123456789 · @ & / —
.type-entry-titleArticle, project, and link entry titles
把想法写下来,让作品说话。
Make room for thoughtful work.
Aa Bb Cc · 0123456789 · @ & / —
.type-bodyBody text, introductions, and descriptions
把想法写下来,让作品说话。
Make room for thoughtful work.
Aa Bb Cc · 0123456789 · @ & / —
.type-uiNavigation, buttons, and form controls
把想法写下来,让作品说话。
Make room for thoughtful work.
Aa Bb Cc · 0123456789 · @ & / —
.type-metaDates, labels, captions, and copyright
.type-view-switchPrimary view switches
把想法写下来,让作品说话。
Make room for thoughtful work.
Aa Bb Cc · 0123456789 · @ & / —
.type-prose留白让句子有呼吸的空间。正文中的 重点内容、轻声强调、强调中的重点 和 删除的文字 各有用途;行内链接与引用式链接保持同样的表达。
Good typography gives words room to breathe. The rhythm of a paragraph comes from its measure, spacing, and contrast — quiet details that keep the meaning in focus.
显式换行保留在同一段落中。
A deliberate line break stays in the same paragraph.
段落是阅读的基本单位;标题表达内容之间的关系。
更深的层级复用条目标题的字号,以字重区分。
以斜体补充区分,保持字号数量克制。
结构仍然保留,字重与斜体共同表达层级。
inline code少一点干扰,多一点内容。
A quiet page leaves room for the reader.
嵌套引用 / A quotation within a quotation.
行内代码 const message = 'Hello, world'; 沿用等宽字体。
const page = {
title: '阅读与节奏 · Reading',
language: 'zh-Hans',
canonical: 'https://yangpan.com/design-system',
};
console.log(page.title);
| 元素 / Element | 用途 / Purpose | 对齐 / Alignment | 示例 / Sample |
|---|---|---|---|
| 标题 Heading | 表达内容层级 | 居中 Center | 01 |
| 正文 Body | 中英文混排与连续阅读 | 居中 Center | 02 |
| 代码 Code | const readable = true |
居中 Center | 03 |
图片说明:形状、留白与阅读方向。 / Shapes, whitespace, and reading direction.
分隔线之后继续正文。脚注将补充信息放在文章末尾。1
这是一条脚注示例。A footnote keeps supporting information close, with a link back to the text. ↩
Each color is shown in HEX, RGB, and HSL. HSL represents hue (0–360°), saturation (0–100%), and lightness (0–100%); lower saturation is closer to gray. Each sample displays its own theme values, with HSL rounded to one decimal place.
Light
The steps share a hue and saturation and vary by lightness. Numbers in their names indicate HSL lightness percentages. The scale itself stays the same across themes.
--blue-40--blue-45--blue-50--blue-55--blue-60--blue-65Links use a brighter step on dark backgrounds. Primary buttons use blue backgrounds and near-white text in both themes.
Link text
--linkPrimary button background
--action-backgroundPrimary button hover
--action-background-hoverPrimary button pressed
--action-background-active--backgroundPage background
--surfaceControls & surfaces
--textPrimary text
--mutedSecondary text
--accentLinks & accents
--dividerDecorative dividers
All colors use 68% saturation. Light-theme yellow swatches use 55% lightness and other swatches use 50%; text adjusts in 5% steps. In the dark theme, red and orange use 55%, yellow, green, teal, and blue use 60%, and purple and pink use 65%. Soft and emphasis backgrounds use 90% / 85% lightness in the light theme and 10% / 15% in the dark theme, paired with primary text. Each color shares one hue. HSL shows defined values; HEX and RGB show computed browser values.
--color-red-surface--color-red-surface-strongRed
--color-red--color-red-text.text-red--color-orange-surface--color-orange-surface-strongOrange
--color-orange--color-orange-text.text-orange--color-yellow-surface--color-yellow-surface-strongYellow
--color-yellow--color-yellow-text.text-yellow--color-green-surface--color-green-surface-strongGreen
--color-green--color-green-text.text-green--color-teal-surface--color-teal-surface-strongTeal
--color-teal--color-teal-text.text-teal--color-blue-surface--color-blue-surface-strongBlue
--color-blue--color-blue-text.text-blue--color-purple-surface--color-purple-surface-strongPurple
--color-purple--color-purple-text.text-purple--color-pink-surface--color-pink-surface-strongPink
--color-pink--color-pink-text.text-pink.text-primary
Primary text
The quick brown fox.
.text-muted
Supporting text
The quick brown fox.
.text-accent
Accent text
The quick brown fox.
.text-inverse
Inverse text
The quick brown fox.
Dark
The steps share a hue and saturation and vary by lightness. Numbers in their names indicate HSL lightness percentages. The scale itself stays the same across themes.
--blue-40--blue-45--blue-50--blue-55--blue-60--blue-65Links use a brighter step on dark backgrounds. Primary buttons use blue backgrounds and near-white text in both themes.
Link text
--linkPrimary button background
--action-backgroundPrimary button hover
--action-background-hoverPrimary button pressed
--action-background-active--backgroundPage background
--surfaceControls & surfaces
--textPrimary text
--mutedSecondary text
--accentLinks & accents
--dividerDecorative dividers
All colors use 68% saturation. Light-theme yellow swatches use 55% lightness and other swatches use 50%; text adjusts in 5% steps. In the dark theme, red and orange use 55%, yellow, green, teal, and blue use 60%, and purple and pink use 65%. Soft and emphasis backgrounds use 90% / 85% lightness in the light theme and 10% / 15% in the dark theme, paired with primary text. Each color shares one hue. HSL shows defined values; HEX and RGB show computed browser values.
--color-red-surface--color-red-surface-strongRed
--color-red--color-red-text.text-red--color-orange-surface--color-orange-surface-strongOrange
--color-orange--color-orange-text.text-orange--color-yellow-surface--color-yellow-surface-strongYellow
--color-yellow--color-yellow-text.text-yellow--color-green-surface--color-green-surface-strongGreen
--color-green--color-green-text.text-green--color-teal-surface--color-teal-surface-strongTeal
--color-teal--color-teal-text.text-teal--color-blue-surface--color-blue-surface-strongBlue
--color-blue--color-blue-text.text-blue--color-purple-surface--color-purple-surface-strongPurple
--color-purple--color-purple-text.text-purple--color-pink-surface--color-pink-surface-strongPink
--color-pink--color-pink-text.text-pink.text-primary
Primary text
The quick brown fox.
.text-muted
Supporting text
The quick brown fox.
.text-accent
Accent text
The quick brown fox.
.text-inverse
Inverse text
The quick brown fox.
Controls are 40px tall by default and 44px on touchscreens, with 12px horizontal padding and 16px box padding. Hover or press Tab to inspect hover and keyboard focus states.
Media attachments share image, audio, and video components. Images preserve their aspect ratio and provide alternative text. Audio and video use native controls without autoplay. Captions use muted metadata text, and file links follow the shared link rules.
Prose links are underlined by default. Navigation and entry titles use primary text colors; utility links use gray. Hover and keyboard focus turn links blue, and current navigation stays blue. Internal and external links follow the same functional color rules.
Light
.type-ui text-accentView headingsIn prose, internal links and external links.
.text-interactive.text-interactive / aria-pressedPrimary action / enabled & disabledButton / multiline labelDark
.type-ui text-accentView headingsIn prose, internal links and external links.
.text-interactive.text-interactive / aria-pressedPrimary action / enabled & disabledButton / multiline labelA check mark means selected; a dash means partially selected. Click the label, or focus with Tab and press Space to toggle. Disabled controls retain their current state.
Light
.control-checkbox / .control-choiceDark
.control-checkbox / .control-choiceOnly one option can be selected per group. Tab into the group, then use the arrow keys to switch. A dot marks the selection; there is no partially selected state.
Light
.control-radio / .control-choiceDark
.control-radio / .control-choiceCompare enabled and disabled states. Enabled examples include long labels and unavailable options.
Light
Select / .type-uiSelect / narrow & long labelSelect / disabledDark
Select / .type-uiSelect / narrow & long labelSelect / disabledArticle cards are clickable within each record, with noninteractive gaps between records. Desktop reading sidebars remain visible below the pinned navigation. QR panels settle after a brief entrance and appear immediately with reduced motion. Thoughts use shared prose, muted timestamp links, and ASCII dividers without requiring titles.
Light
The title and surrounding space share one destination.

Dark
The title and surrounding space share one destination.

Single-line fields hold short text; multiline fields hold paragraphs. A neutral surface defines the resting field; hover and keyboard focus reveal a blue border. Errors retain a red border.
Light
TextField / .type-uiTextField / multilineDark
TextField / .type-uiTextField / multilineRead-only content can be selected and copied. Disabled controls cannot be operated. Error states also provide a text message.
Light
TextField / readonlyTextField / disabledTextField / errorDark
TextField / readonlyTextField / disabledTextField / errorCompare the same content in light and dark themes. Press Tab to see actual focus. The focus appearance example keeps its outline visible for comparison.
Light
Record observations clearly to make your next reading more rewarding.
View reading textDark
Record observations clearly to make your next reading more rewarding.
View reading textLight
Dark
Light
.divider-subtle--divider-subtleSite resources
Design system and subscriptions
.type-dropcap我喜欢清晰、简洁的文字。首字放大,让阅读有一个明确的起点。
Every story begins with a single letter. A considered initial gives the opening paragraph its own rhythm.
.text-accent.type-title作品
Projects
.type-bodyText and cursor
.type-meta.type-diagram-title
.type-diagram-note
.type-ascii
(o_) _/ )- | | -----
Dark
.divider-subtle--divider-subtleSite resources
Design system and subscriptions
.type-dropcap我喜欢清晰、简洁的文字。首字放大,让阅读有一个明确的起点。
Every story begins with a single letter. A considered initial gives the opening paragraph its own rhythm.
.text-accent.type-title作品
Projects
.type-bodyText and cursor
.type-meta.type-diagram-title
.type-diagram-note
.type-ascii
(o_) _/ )- | | -----
Copywriting reference:Chinese Copywriting Style Guide (in Chinese)(LeanCloud).