Preset Styles

HTML base element resets and theme tokens from preset.css (@layer base). No extra utility classes needed β€” these styles apply to native elements automatically.

Notes

Typography

Heading levels

h1 Heading

h2 Heading

h3 Heading

h4 Heading

h5 Heading
h6 Heading

Paragraph & inline text

Regular paragraph text using system UI font stack.

Bold and Strong β€” consistent weight.

Small text with proportional sizing.

H2O (subscript) and E = mc2 (superscript).

Monospace & keyboard

Inline code: npm install beautify

function hello() {
  console.log("monospace");
}

Keyboard: Ctrl+C + Ctrl+V

Link

Default link (color: inherit)

Focus-visible

Tab through to see the outline:

Forms

Text inputs

Textarea

Select

Button & file

Checkbox & Radio

Option A Option B

Male Female

Date / Time

Range slider

Readonly / Disabled

Progress & Meter

Progress

70%

Complete

Indeterminate

Meter

Good (green)

Average (yellow)

Poor (red)

Lists

Unordered list

Ordered list

  1. First step
    1. Sub-step
  2. Second step
  3. Third step

Definition list

Beijing
Population: 21.8 million
Shanghai
Population: 24.7 million

Reset list

Use .reset-ul / .reset-dl to restore default browser styling:

Quotes & Semantics

Blockquote

A blockquote with left accent border and subtle background.

Citation & emphasis

This is a citation with dashed underline.

This is emphasized text (circle dots under CJK text).

This is highlighted text.

Ruby annotation

中Zhong华Hua

Address & Time

Shenzhen, China

Containers

Fieldset & Legend

Personal Info

Horizontal rule

Above


Below

Details / Summary

Click to expand

Hidden content here. Chevron icon rotates on open.

Dialog

Dialog Title

Native dialog with fade-in animation and backdrop.

Table

#CityPopulationType
1Beijing21.8MCapital
2Shanghai24.7MMunicipality
3Guangzhou18.7MCity
4Shenzhen17.6MCity

Scrollbar

Line 1

Line 2

Line 3

Line 4

Line 5

Line 6

Line 7

Line 8

Line 9

Line 10

Line 11

Line 12

Line 13

Line 14

Line 15