Skip to content

区块标题

每个内容区块的开头:等宽字体眉题 + 标题 + 说明。

浅色背景

左对齐用于大多数区块;居中用于流程、联系等独立区块。

examples/section-heading/variants.html

深色背景

examples/section-heading/on-dark.html

规格

部分浅色深色
眉题font-mono text-xs uppercase tracking-[0.2em] text-muted-foregroundtext-sky
标题text-3xl sm:text-4xl font-semibold leading-tight tracking-tight text-balance text-foregroundtext-navy-foreground
说明text-base leading-relaxed text-pretty text-muted-foregroundtext-navy-foreground/75
容器flex max-w-2xl flex-col gap-3;居中加 mx-auto items-center text-center同左

区块间距

  • 区块上下内边距:py-20 lg:py-28
  • 标题与内容之间:gap-12
  • 相邻区块用背景色交替(bg-background / bg-muted / bg-navy)区分,不加分割线

使用建议

推荐

  • 眉题使用英文(所有语言页面保持一致),起到栏目标识作用
  • 标题 20 字以内