适合场景
学术 / 科普 / 论文排版
以 Distill.pub 为原型的学术科普设计语言:窄列 serif 正文承载论证,边注承载旁白,图表突破版心承载证据。适合科普博客、研究者主页与学术型作品集。
适合场景
学术 / 科普 / 论文排版
设计重点
正文使用 font-serif 窄列 max-w-[42rem] mx-auto,行高 leading-[1.75]
注意事项
禁止任何渐变 bg-gradient-*(论文没有渐变,证据不需要滤镜)
AI 实现文档
默认用硬性提示词让 AI 直接生成前端;Design Spec 用来理解、改写和审核风格;Creative Brief 用来早期探索方向。
默认使用它:复制后追加具体需求,让 AI 直接生成一致、可落地的前端。
什么时候用
怎么用
STYLEKIT_STYLE_REFERENCE
style_name: 学术科普风
style_slug: distill-style
style_source: /styles/distill-style
# Hard Prompt
## 什么时候用
当你希望 AI 严格按风格规则生成代码时使用。它是生产界面最稳的默认选择。
## 怎么用
- 把完整提示词复制到 ChatGPT、Claude、Cursor 或其他编码助手。
- 在提示词后追加具体产品、页面或组件需求。
- 生成后按禁止项和交互状态检查,确认没有风格漂移。
请严格遵守以下风格规则并保持一致性,禁止风格漂移。
## 执行要求
- 优先保证风格一致性,其次再做创意延展。
- 遇到冲突时以禁止项为最高优先级。
- 输出前自检:颜色、排版、间距、交互是否仍属于该风格。
## Style Rules
You are a Distill Style (academic explainer) design expert. This style translates journal-grade paper typography into web-native layouts, modeled on Distill.pub.
## 绝对禁止
- 禁止任何渐变 bg-gradient-*(论文没有渐变,证据不需要滤镜)
- 禁止重阴影:最多 shadow-sm,杜绝 shadow-lg/shadow-2xl 与彩色阴影
- 禁止大圆角:最多 rounded-md,正文与图表容器优先直角
- 禁止正文全宽铺满:正文列宽不得超过 42rem,全宽只属于突破版心的图表
- 禁止多彩装饰与大面积色块:色彩只服务于信息,不服务于气氛
- 禁止 sans-serif 正文:正文必须衬线,无衬线只用于 UI 控件标签与元信息
- 禁止表格竖线与斑马纹底色(booktabs 的两条横线已经足够)
## 必须遵守
- 正文使用 font-serif 窄列 max-w-[42rem] mx-auto,行高 leading-[1.75]
- 边注 sidenote:大屏 xl:absolute 悬浮到右缘的小号灰字(text-xs text-[#6B7280]),小屏折叠为内联浅灰块 bg-[#F3F4F6]
- 编号引用使用上标 <sup>[1]</sup>,学术蓝 text-[#2A7AE2],页脚给出对应参考文献
- figure 突破版心:max-w-4xl mx-auto 居中,figcaption 用 text-[13px] text-[#6B7280] 并以「图 N:」开头
- 分割一律用 hairline:border-t border-[#E5E7EB],粗细不超过 1px
- 学术蓝 #2A7AE2 仅用于链接、引用与关键强调;数据强调只用图表橙 #E4572E
- 作者信息块 byline:作者/机构/日期/DOI 组成 hairline 分隔的元信息网格,标签用小号大写字距 tracking-[0.12em]
- 表格用 booktabs 风:border-t-2 border-b-2 border-[#1F2933] 上下横线 + 表头细线,无竖线
- 标题 font-serif font-semibold text-[#1F2933],层级靠字号与留白而非颜色
## Absolute Rules
- Background: pure white #FFFFFF; secondary surfaces only #F3F4F6
- Body text: font-serif, color #1F2933, column locked at max-w-[42rem] mx-auto, leading-[1.75]
- Academic blue #2A7AE2 is reserved for links, numbered citations, and key emphasis only
- Chart orange #E4572E is reserved for data emphasis inside figures only
- Sidenotes: xl:absolute floating in the right margin as small gray sans text; inline light-gray blocks below xl
- Citations: superscript [1] in academic blue, resolved in a numbered references list at the page end
- Figures break the measure: max-w-4xl mx-auto, always followed by a hairline-topped figcaption starting with "Fig. N:"
- Byline block: authors / affiliations / date / DOI as a hairline-divided meta grid with uppercase tracked labels
- Tables: booktabs only - 2px top and bottom rules, 1px header rule, no vertical rules, no zebra striping
- Radius: rounded-md maximum; shadows: shadow-sm maximum
## Layout & Spacing
- Section rhythm: py-12 md:py-16 between article blocks
- Prose column: max-w-[42rem]; figure column: max-w-4xl; page shell: max-w-5xl
- Hairlines (border-[#E5E7EB]) separate every metadata region
## Responsive
- Mobile: sidenotes collapse inline as bordered light-gray asides; figures go full-width with horizontal scroll for wide tables
- Desktop (xl+): sidenotes float into the right margin; the prose column stays centered
## Self-Check Verification
After generating code, verify:
1. Body text is serif, no wider than 42rem, with leading-[1.75]
2. Blue appears only on links/citations/emphasis; orange appears only on data
3. Every figure has a numbered figcaption; every citation number resolves in the references
4. No gradients, no shadows above shadow-sm, no radius above rounded-md
5. Tables have horizontal rules only
6. All interactive elements have visible hover and focus states
---
# Distill Style (学术科普风) Design System
> 以 Distill.pub 为原型的学术科普设计语言:窄列 serif 正文承载论证,边注承载旁白,图表突破版心承载证据。适合科普博客、研究者主页与学术型作品集。
## 核心理念
学术科普风是"论文排版的网页化":把期刊三百年攒下的排版严谨,翻译成网页原生的呼吸感。
核心理念:
- 论证优先:一切视觉决策服务于论证的可读与可信,装饰是噪音
- 窄列即尊重:正文列宽锁定约 42rem(65-75 字符),这是眼睛完成一次换行扫视的舒适极限
- 三层信息带宽:正文承载主线论证,边注承载旁白与出处,突破版心的图表承载证据
- 引用即链接:编号上标引用是学术写作的超链接原型,在网页上两者合一
- 色彩即语义:墨灰负责陈述,学术蓝只指向可点击与被引用之物,图表橙只强调数据
设计原则:
- 层级靠排版建立:字号、字重、间距和 hairline 细线完成全部层级,不借助色块与阴影
- 图表是一等公民:figure 允许突破正文列宽居中展开,配编号图注(图 1:)说明来源与结论
- 元信息仪式感:作者、机构、日期、DOI 组成 byline 信息块,hairline 分隔,像论文首页一样可信
- 表格用 booktabs 语法:上下粗横线加表头细线,无竖线无斑马纹
- 克制的交互:hover 只做下划线与浅灰底,转场不超过 200ms,禁止一切炫技动效
---
## Token 字典(精确 Class 映射)
### 边框
```
宽度: border
颜色: border-[#E5E7EB]
圆角: rounded-md
```
### 阴影
```
小: shadow-sm
中: shadow-sm
大: shadow-sm
悬停: hover:shadow-sm
聚焦: focus:shadow-none
```
### 交互效果
```
悬停位移: (无)
悬停缩放: (无)
悬停透明度: hover:bg-[#F3F4F6]
过渡动画: transition-colors duration-150
按下状态: active:bg-[#E5E7EB]
```
### 字体
```
标题: font-serif font-semibold text-[#1F2933] tracking-tight
正文: font-serif text-[#1F2933] leading-[1.75]
等宽: font-mono text-[#6B7280] text-sm
```
### 字号
```
Hero: text-3xl md:text-4xl lg:text-5xl
H1: text-3xl md:text-4xl
H2: text-2xl md:text-3xl
H3: text-lg md:text-xl
正文: text-base md:text-[1.0625rem]
小字: text-sm
```
### 间距
```
Section: py-12 md:py-16
容器: px-4 md:px-6
卡片: p-5 md:p-6
小间距: gap-2
中间距: gap-4
大间距: gap-8
```
### 颜色角色
```
背景主色: bg-white
背景辅色: bg-[#F3F4F6]
背景强调色: bg-[#2A7AE2], bg-[#E4572E], bg-[#F3F4F6], bg-[#1F2933]
正文主色: text-[#1F2933]
正文辅色: text-[#6B7280]
正文弱化色: text-[#9CA3AF]
按钮主色: bg-[#1F2933] text-white
按钮辅色: bg-white text-[#1F2933] border border-[#E5E7EB]
```
---
## [FORBIDDEN] 绝对禁止
以下 class 在本风格中**绝对禁止使用**,生成时必须检查并避免:
### 禁止的 Class
- `rounded-lg`
- `rounded-xl`
- `rounded-2xl`
- `rounded-3xl`
- `rounded-full`
- `shadow-md`
- `shadow-lg`
- `shadow-xl`
- `shadow-2xl`
- `bg-gradient-to-r`
- `bg-gradient-to-br`
- `bg-gradient-to-b`
### 禁止的模式
- 匹配 `^rounded-(?:lg|xl|2xl|3xl|full)$`
- 匹配 `^shadow-(?:md|lg|xl|2xl|inner)$`
- 匹配 `^bg-gradient`
### 禁止原因
- `rounded-xl`: Distill Style caps radii at rounded-md; paper layouts prefer square corners
- `rounded-full`: Distill Style avoids pill shapes; hierarchy comes from typography, not geometry
- `shadow-lg`: Distill Style separates regions with hairlines, not elevation
- `bg-gradient-to-r`: Academic surfaces are flat white or #F3F4F6; gradients are forbidden
> WARNING: 如果你的代码中包含以上任何 class,必须立即替换。
---
## [REQUIRED] 必须包含
### 按钮必须包含
```
rounded-md
text-sm font-medium
transition-colors duration-150
```
### 卡片必须包含
```
bg-white
border border-[#E5E7EB]
rounded-md
```
### 输入框必须包含
```
bg-white
border border-[#E5E7EB]
rounded-md
focus:outline-none focus:border-[#2A7AE2] focus:ring-1 focus:ring-[#2A7AE2]/30
```
---
## [COMPARE] Distill Style 错误 vs 正确对比
以下错误示例只代表“未经过当前风格适配的通用默认值”,不要把错误示例当成视觉建议。
### 按钮
[WRONG] **错误示例**(通用组件库默认样式,不要直接复制):
```html
<button class="{GENERIC_LIBRARY_BUTTON_DEFAULT}">
点击我
</button>
```
[CORRECT] **正确示例**(使用当前风格的 token):
```html
<button class="rounded-md text-sm font-medium transition-colors duration-150 bg-[#1F2933] text-white">
点击我
</button>
```
### 卡片
[WRONG] **错误示例**(未经当前风格适配的通用卡片):
```html
<div class="{GENERIC_LIBRARY_CARD_DEFAULT}">
<h3>{TITLE}</h3>
</div>
```
[CORRECT] **正确示例**(使用当前风格的 card token):
```html
<div class="bg-white border border-[#E5E7EB] rounded-md p-5 md:p-6">
<h3 class="font-serif font-semibold text-[#1F2933] tracking-tight text-lg md:text-xl">{TITLE}</h3>
</div>
```
### 输入框
[WRONG] **错误示例**(未经当前风格适配的通用输入框):
```html
<input class="{GENERIC_LIBRARY_INPUT_DEFAULT}" />
```
[CORRECT] **正确示例**(使用当前风格的 input token):
```html
<input class="bg-white border border-[#E5E7EB] rounded-md focus:outline-none focus:border-[#2A7AE2] focus:ring-1 focus:ring-[#2A7AE2]/30" placeholder="{PLACEHOLDER}" />
```
---
## [TEMPLATES] Distill Style 页面骨架模板
以下骨架只使用当前风格的 token。替换 `{PLACEHOLDER}` 时,不要移除或替换这些 token:
### 导航栏骨架
```html
<nav class="bg-white text-[#1F2933] border border-[#E5E7EB] px-4 md:px-6">
<div class="flex items-center justify-between max-w-6xl mx-auto gap-4">
<a href="/" class="font-serif font-semibold text-[#1F2933] tracking-tight text-lg md:text-xl">
{LOGO_TEXT}
</a>
<div class="flex gap-4 font-serif text-[#1F2933] leading-[1.75] text-sm">
{NAV_LINKS}
</div>
</div>
</nav>
```
### Hero 区块骨架
```html
<section class="bg-[#2A7AE2] text-[#1F2933] py-12 md:py-16 px-4 md:px-6">
<div class="max-w-4xl mx-auto">
<h1 class="font-serif font-semibold text-[#1F2933] tracking-tight text-3xl md:text-4xl lg:text-5xl">
{HEADLINE}
</h1>
<p class="font-serif text-[#1F2933] leading-[1.75] text-base md:text-[1.0625rem] max-w-xl">
{SUBHEADLINE}
</p>
<button class="rounded-md text-sm font-medium transition-colors duration-150 bg-[#1F2933] text-white">
{CTA_TEXT}
</button>
</div>
</section>
```
### 卡片网格骨架
```html
<section class="bg-white text-[#1F2933] py-12 md:py-16 px-4 md:px-6">
<div class="max-w-6xl mx-auto">
<h2 class="font-serif font-semibold text-[#1F2933] tracking-tight text-2xl md:text-3xl">{SECTION_TITLE}</h2>
<div class="grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-4">
<!-- Card template - repeat for each card -->
<div class="bg-white border border-[#E5E7EB] rounded-md p-5 md:p-6">
<h3 class="font-serif font-semibold text-[#1F2933] tracking-tight text-lg md:text-xl">{CARD_TITLE}</h3>
<p class="font-serif text-[#1F2933] leading-[1.75] text-base md:text-[1.0625rem] text-[#9CA3AF]">{CARD_DESCRIPTION}</p>
</div>
</div>
</div>
</section>
```
### 表单输入骨架
```html
<input class="bg-white border border-[#E5E7EB] rounded-md focus:outline-none focus:border-[#2A7AE2] focus:ring-1 focus:ring-[#2A7AE2]/30" placeholder="{PLACEHOLDER}" />
```
### 页脚骨架
```html
<footer class="bg-[#F3F4F6] text-[#6B7280] py-12 md:py-16 px-4 md:px-6">
<div class="max-w-6xl mx-auto">
<div class="grid grid-cols-1 md:grid-cols-3 gap-8">
<div>
<span class="font-serif font-semibold text-[#1F2933] tracking-tight text-lg md:text-xl">{LOGO_TEXT}</span>
<p class="font-serif text-[#1F2933] leading-[1.75] text-sm">{TAGLINE}</p>
</div>
<div>
<h4 class="font-serif font-semibold text-[#1F2933] tracking-tight text-lg md:text-xl">{COLUMN_TITLE}</h4>
<ul class="font-serif text-[#1F2933] leading-[1.75] text-sm">
{FOOTER_LINKS}
</ul>
</div>
</div>
</div>
</footer>
```
---
## [CHECKLIST] Distill Style 生成后自检清单
**输出代码前,逐项验证当前风格的 token 和规则。如有违反,先修正再交付:**
### Token 检查
- [ ] 按钮包含: `rounded-md text-sm font-medium transition-colors duration-150`
- [ ] 卡片包含: `bg-white border border-[#E5E7EB] rounded-md`
- [ ] 输入框包含: `bg-white border border-[#E5E7EB] rounded-md focus:outline-none focus:border-[#2A7AE2] focus:ring-1 focus:ring-[#2A7AE2]/30`
### 禁止项检查
- [ ] 没有使用 `rounded-lg`
- [ ] 没有使用 `rounded-xl`
- [ ] 没有使用 `rounded-2xl`
- [ ] 没有使用 `rounded-3xl`
- [ ] 没有使用 `rounded-full`
- [ ] 没有使用 `shadow-md`
- [ ] 没有使用 `shadow-lg`
- [ ] 没有使用 `shadow-xl`
### 风格规则检查
- [ ] 正文使用 font-serif 窄列 max-w-[42rem] mx-auto,行高 leading-[1.75]
- [ ] 边注 sidenote:大屏 xl:absolute 悬浮到右缘的小号灰字(text-xs text-[#6B7280]),小屏折叠为内联浅灰块 bg-[#F3F4F6]
- [ ] 编号引用使用上标 <sup>[1]</sup>,学术蓝 text-[#2A7AE2],页脚给出对应参考文献
- [ ] figure 突破版心:max-w-4xl mx-auto 居中,figcaption 用 text-[13px] text-[#6B7280] 并以「图 N:」开头
- [ ] 分割一律用 hairline:border-t border-[#E5E7EB],粗细不超过 1px
### 风格漂移检查
- [ ] 没有违反:禁止任何渐变 bg-gradient-*(论文没有渐变,证据不需要滤镜)
- [ ] 没有违反:禁止重阴影:最多 shadow-sm,杜绝 shadow-lg/shadow-2xl 与彩色阴影
- [ ] 没有违反:禁止大圆角:最多 rounded-md,正文与图表容器优先直角
- [ ] 没有违反:禁止正文全宽铺满:正文列宽不得超过 42rem,全宽只属于突破版心的图表
- [ ] 没有违反:禁止多彩装饰与大面积色块:色彩只服务于信息,不服务于气氛
### 通用交付检查
- [ ] 响应式布局在手机、平板和桌面下稳定,没有横向溢出
- [ ] 所有交互元素有清晰焦点、可访问名称和 reduced-motion 方案
- [ ] 文本对比度达到 WCAG AA,且没有用颜色单独传递状态
- [ ] 结果仍然能够一眼识别为 Distill Style
---
## [EXAMPLES] 示例 Prompt
### 1. 学术科普文章页
含狩野模型图、边注与参考文献的完整科普文章页
```
Build an academic explainer article page in Distill Style: journal masthead, serif title with an author byline block (authors, affiliations, date, DOI), an abstract, a narrow 42rem serif body with numbered superscript citations and margin sidenotes, one SVG figure of the Kano model (Must-be concave curve, One-dimensional straight line, Attractive convex curve with labeled axes) breaking the measure at max-w-4xl with a 'Fig. 1:' caption, a booktabs results table, and a numbered references footer.
```
### 2. 研究者个人主页
论文列表、研究方向与简历下载的学术主页
```
Create a researcher homepage in Distill Style: white background, serif name and one-line research statement, a hairline-divided meta row (affiliation, email, ORCID), a publications list where each entry shows serif title, gray sans venue metadata, and small [PDF] [BibTeX] [Code] links in academic blue, plus a selected-projects section with abstract cards and a references-style footer.
```
### 3. 学术型作品集
把项目当论文陈列的作品集:摘要、图表与引用式致谢
```
Design an academic portfolio in Distill Style: each project is presented like a paper with a serif title, an abstract paragraph in a narrow column, one wide figure with a numbered caption, tag badges styled like arXiv subject classes, and a credits line formatted as a citation. Keep hairline separators, blue reserved for links, and a booktabs skills table.
```
## 绝对禁止(匹配即拒绝)
以下模式一旦出现,视为风格违规——不找借口,直接重写。
- 任何渐变 bg-gradient-*(论文没有渐变,证据不需要滤镜)
- 重阴影:最多 shadow-sm,杜绝 shadow-lg/shadow-2xl 与彩色阴影
- 大圆角:最多 rounded-md,正文与图表容器优先直角
- 正文全宽铺满:正文列宽不得超过 42rem,全宽只属于突破版心的图表
- 多彩装饰与大面积色块:色彩只服务于信息,不服务于气氛
- sans-serif 正文:正文必须衬线,无衬线只用于 UI 控件标签与元信息
- 表格竖线与斑马纹底色(booktabs 的两条横线已经足够)
## 自检清单(交付前逐条确认)
如果任何一条不通过,说明风格漂移了——修改后再交付。
- [ ] 没有紫色到蓝色的渐变
- [ ] 没有使用 Inter / Roboto / Geist 等过度使用的字体
- [ ] 没有嵌套卡片(卡片里面套卡片)
- [ ] 没有在彩色背景上放灰色文字
- [ ] 正文对比度满足 WCAG AA(≥4.5:1)
- [ ] 没有 bounce / elastic 缓动曲线
- [ ] 动效有 prefers-reduced-motion 备选方案
- [ ] 正文行宽不超过 65-75 个字符
- [ ] 没有单侧粗边框装饰(border-left/right accent stripe)
- [ ] 没有渐变文字(background-clip: text)
- [ ] 没有把玻璃态(glassmorphism)当作默认风格
- [ ] 没有 tiny uppercase tracked eyebrow 放在每个 section 标题上面
- [ ] 禁止任何渐变 bg-gradient-*(论文没有渐变,证据不需要滤镜)
- [ ] 禁止重阴影:最多 shadow-sm,杜绝 shadow-lg/shadow-2xl 与彩色阴影
- [ ] 禁止大圆角:最多 rounded-md,正文与图表容器优先直角
- [ ] 禁止正文全宽铺满:正文列宽不得超过 42rem,全宽只属于突破版心的图表
- [ ] 禁止多彩装饰与大面积色块:色彩只服务于信息,不服务于气氛组件模板
克制的主操作按钮,墨灰底、rounded-md、小字号,像期刊页上的下载入口
真实前端完成度
这层检查这个风格是否已经具备真实网站常见的主题、状态反馈、键盘可访问性和性能约束。
总体覆盖
51%
Fallback 规则
暗色模式
0%
缺失组件状态
79%
部分动效规则
70%
部分可访问性
70%
部分性能代价
35%
通用按钮
默认 / 悬停 / 键盘焦点 / 按下 / 禁用
输入框
默认 / 悬停 / 键盘焦点 / 禁用 / 错误
卡片
默认 / 悬停 / 键盘焦点 / 加载中 / 骨架屏
表单
默认 / 键盘焦点 / 禁用 / 加载中 / 错误
常见问题
.distill-style-article {
max-width: 42rem;
margin-left: auto;
margin-right: auto;
font-family: ui-serif, Georgia, Cambria, "Times New Roman", Times, serif;
font-size: 1.0625rem;
line-height: 1.75;
color: #1F2933;
}
.distill-style-article p + p {
margin-top: 1.25rem;
}
.distill-style-cite {
font-family: ui-sans-serif, system-ui, sans-serif;
font-size: 0.68em;
font-weight: 600;
vertical-align: super;
line-height: 0;
color: #2A7AE2;
text-decoration: none;
cursor: pointer;
}
.distill-style-cite:hover {
text-decoration: underline;
}
.distill-style-sidenote {
display: block;
margin: 1rem 0;
padding: 0.625rem 0.875rem;
border-left: 2px solid rgba(42, 122, 226, 0.4);
border-radius: 0.125rem;
background: #F3F4F6;
font-family: ui-sans-serif, system-ui, sans-serif;
font-size: 0.8125rem;
line-height: 1.6;
color: #6B7280;
}
@media (min-width: 1280px) {
.distill-style-sidenote {
position: absolute;
top: 0;
right: -14rem;
width: 12rem;
margin: 0;
padding: 0.5rem 0 0 0;
border-left: none;
border-top: 1px solid #E5E7EB;
background: transparent;
font-size: 0.75rem;
}
}
.distill-style-figure {
max-width: 56rem;
margin: 2.5rem auto;
}
.distill-style-figcaption {
margin-top: 0.75rem;
padding-top: 0.5rem;
border-top: 1px solid #E5E7EB;
font-family: ui-sans-serif, system-ui, sans-serif;
font-size: 0.8125rem;
line-height: 1.6;
color: #6B7280;
}
.distill-style-table {
width: 100%;
border-collapse: collapse;
border-top: 2px solid #1F2933;
border-bottom: 2px solid #1F2933;
font-family: ui-sans-serif, system-ui, sans-serif;
font-size: 0.875rem;
}
.distill-style-table thead th {
border-bottom: 1px solid #1F2933;
padding: 0.5rem 0.75rem;
text-align: left;
font-weight: 600;
color: #1F2933;
}
.distill-style-table tbody td {
padding: 0.5rem 0.75rem;
color: #1F2933;
}
.distill-style-hairline {
border: none;
border-top: 1px solid #E5E7EB;
}
.distill-style-smallcaps {
font-family: ui-sans-serif, system-ui, sans-serif;
font-size: 0.6875rem;
letter-spacing: 0.14em;
text-transform: uppercase;
color: #6B7280;
}IDE 集成
下载 AI 编码助手的配置文件,使其按照此风格生成代码。
风格包
获取完整的可机器读取风格资源,包括 Design Tokens、Tailwind 预设、CSS 变量和 shadcn/ui 主题。
Metadata
Style metadata including version information
Design Tokens
Figma / Style Dictionary / Tokens Studio 兼容
Tailwind Preset
Tailwind CSS 主题预设,可直接在配置中引用
Global CSS
包含 CSS 变量和基础样式
shadcn Theme
shadcn/ui 主题配置
CSS Variables
纯 CSS 变量,适用于任何项目
SKILL.md
可加载到 Cursor / Claude Code / VS Code 的技能包
学术科普风是"论文排版的网页化":把期刊三百年攒下的排版严谨,翻译成网页原生的呼吸感。
基于颜色对比度和排版可读性的 WCAG 2.1 合规分析。
综合评分
等级: D - 较差
对比度
| 场景 | 颜色 | 比率 | AA | AAA |
|---|---|---|---|---|
| Text on background | /#1F2933 / #ffffff | 14.76:1 | ||
| Secondary text on background | /#6B7280 / #ffffff | 4.83:1 | ||
| Muted text on background | /#9CA3AF / #ffffff | 2.54:1 | ||
| Text on secondary background | /#1F2933 / #F3F4F6 | 13.41:1 | ||
| Secondary text on secondary | /#6B7280 / #F3F4F6 | 4.39:1 | ||
| Button primary | /#ffffff / #1F2933 | 14.76:1 | ||
| Text on accent 1 | /#1F2933 / #2A7AE2 | 3.5:1 | ||
| Alt text on accent 1 | /#6B7280 / #2A7AE2 | 1.15:1 | ||
| Text on accent 2 | /#1F2933 / #E4572E | 4.01:1 | ||
| Alt text on accent 2 | /#6B7280 / #E4572E | 1.31:1 | ||
| Text on accent 3 | /#1F2933 / #F3F4F6 | 13.41:1 | ||
| Alt text on accent 3 | /#6B7280 / #F3F4F6 | 4.39:1 | ||
| Text on accent 4 | /#1F2933 / #1F2933 | 1:1 | ||
| Alt text on accent 4 | /#6B7280 / #1F2933 | 3.05:1 |
可读性
分数
77/100
字号
text-base md:text-[1.0625rem]
字重
font-serif font-semibold text-[#1F2933] tracking-tight
行高
default
评分基于 WCAG 2.1 标准。AA 级要求普通文本对比度 4.5:1、大文本 3:1;AAA 级要求普通文本 7:1、大文本 4.5:1。