从产品经理到独立开发者
9 年产品经理转型 AI builder 的心路历程,以及为什么我选择一个人做一个团队。
本站的组件库与 Web UI 设计规范参考。包含颜色、排版、组件、图标和视觉效果的完整规范。
50
100
200
300
400
500
600
700
800
900
亮色模式用 amber-500,暗色模式用 amber-400
50
100
200
300
400
500
600
700
800
900
950
black
text-5xl · 48px · Display
AI-Native Builder
text-4xl · 32px · H1
页面主标题
text-xl · 20px · H2
章节标题
text-base · 16px · Body
正文内容,行高 1.75,为中文长篇阅读而优化。
text-sm · 14px · Small
卡片描述、辅助文本
text-xs · 13px · Caption
时间戳、标签
利器君
Bold · 700
页面主标题
利器君
Semibold · 600
卡片标题、链接
利器君
Medium · 500
导航、按钮
利器君
Regular · 400
正文、描述
页面主标题、卡片标题、Section 标题
zinc-800 / zinc-100 — 标题
Panel.Header、局部强调标题
zinc-900 / zinc-100 — 强调型小标题
Prose 中的 h2 / h3
zinc-900 / zinc-200 — MDX 标题
段落文本、描述内容
zinc-600 / zinc-400 — 正文
次要说明文字
zinc-500 / zinc-400 — 辅助
时间戳、标签、占位符
zinc-400 / zinc-500 — 弱化
支持 primary / secondary 变体,有 href 时渲染为 Link,否则渲染为 button
import { Button } from '@/components/Button'
支持 default / amber 变体,用于标签和状态标识
import { Badge } from '@/components/Badge'
forwardRef 实现,完整亮/暗模式、focus ring、placeholder 样式
import { Input } from '@/components/Input'
分隔线,支持 soft 变体(更浅的透明度)
Default
Soft
import { Divider } from '@/components/Divider'
圆形图标容器,支持 sm / md / lg 尺寸。提取自首页、工具页、产品页中重复的圆形 icon 包裹
sm
md
lg
lg + emoji
import { IconContainer } from '@/components/IconContainer'
带边框面板,复合组件。Panel.Header 支持 icon + title + 可选 href 箭头链接。支持 as 多态(可渲染为 form 等)
无链接的面板,仅展示标题和图标。
标题右侧带箭头链接。
import { Panel } from '@/components/Panel'
多态卡片,支持 Card.Title, Card.Eyebrow, Card.Description, Card.Cta, Card.Link 子组件。通过 as 可渲染为 article、li 等
9 年产品经理转型 AI builder 的心路历程,以及为什么我选择一个人做一个团队。
import { Card } from '@/components/Card'
双模式:无 children 为纯图标模式(首页),有 children 为图标+文字列表项模式(关于页)
列表项模式(有 children)
import { SocialLink } from '@/components/SocialLink'
MDX 内容排版容器,自动应用 typography 插件样式和暗色模式反转
正文段落,行高 1.75,为中文长篇阅读而优化。这是一段示例文本,用于展示 Prose 容器的排版效果。链接样式如 这个链接 所示。
内联代码如 npm run dev,以及引用段落:
过去需要一个团队才能搞定的事,现在一个人就能拿下。
import { Prose } from '@/components/Prose'
左侧竖线分隔的区块,标题 1 列 + 内容 3 列网格布局。内部使用 useId 生成 aria-labelledby
这是 Section 组件的内容区域,在桌面端会显示为标题 1 列 + 内容 3 列的网格布局,左侧有竖线装饰。
import { Section } from '@/components/Section'
结构性组件,用于页面骨架搭建
Container
页面内容容器,外层 max-w-7xl,内层 max-w-5xl
@/components/Container
SimpleLayout
静态页面通用布局,统一标题 + 副标题 + 内容区
@/components/SimpleLayout
ArticleLayout
MDX 文章页布局,带返回按钮和 Prose 排版
@/components/ArticleLayout
Layout
全局 Layout,背景层 + Header + main + Footer
@/components/Layout
Header
固定导航栏,含 Avatar、DesktopNav、ThemeToggle
@/components/Header
Footer
页脚,导航链接 + 版权信息
@/components/Footer
Wrench
Briefcase
PenLine
ArrowLeft
ChevronRight
Sun
Moon
Claude
Figma
GitHub
统一从 @/components/SocialIcons 导出,源自 lucide-react 和 react-icons/fa6
XIcon
GitHubIcon
RedditIcon
GoogleAdsIcon
GoogleAnalyticsIcon
16px · 内联
20px · 标准/社交
24px · 品牌/自定义
full · 头像
3xl · 代码块
2xl · 卡片
xl · 工具图标
lg · 内联代码
md · 按钮
shadow-md + ring-1(IconContainer / Input)
shadow-lg + ring-1(Avatar / 导航)
border(Panel)
2 (8px) — 紧凑元素
4 (16px) — 标准元素
6 (24px) — 卡片组
16 (64px) — 区块间
20 (80px) — 页面顶部(移动)
32 (128px) — 页面顶部(桌面)