口语化直白标题零废话
“Just copy-paste real designs”直接说出独立开发者来这里要做的动作,不绕任何概念弯子。
正文
378
操作候选
38
内/外链
158/3
HTML
389 KB

21st.dev
React Components, Templates & Themes — 12,000+ Crafted UI | 21st
12,000+ hand-crafted React and Tailwind CSS components, templates, and shadcn themes by real design engineers. Preview live, install with one command — for you and your AI agent.
“Just copy-paste real designs”直接说出独立开发者来这里要做的动作,不绕任何概念弯子。
避开了俗套的粉紫彩虹字,标题保持纯白实色,把唯一的 #0033ff 电光蓝留给主按钮与氛围底光。
实测未返回 CSP、X-Content-Type-Options 与 Referrer-Policy 响应头。
先在报告模式下校验第三方媒体与预览沙箱域名,再逐步开启 CSP、nosniff 与 Referrer-Policy。
ABCDEFGHIJKLMNOPQRSTUVWXYZ · 0123456789
深黑底与电光宝蓝光晕烘托一句直白口号“Just copy-paste real designs”,下方直接摆出可拿走的真实组件卡片。
字阶比例
84.96px / 16px
标题约为正文 5.31×
阅读节奏
行高 24px
字重 700 · 字距 -4.248px
圆角轮廓
/* Extracted design tokens from 21st.dev via VibeCheck */
:root {
--color-bg: #09090b;
--color-surface: #1c2c64;
--color-ink: #f6f6f8;
--color-accent: #0033ff;
--color-muted: #3c3c3c;
--font-display: "Inter", system-ui, -apple-system, "PingFang SC", "Noto Sans SC", sans-serif;
--font-body: "General Sans", system-ui, -apple-system, "PingFang SC", "Noto Sans SC", sans-serif;
--text-h1: 84.96px;
--text-body: 16px;
--leading-body: 24px;
--tracking-display: -4.248px;
--radius-button: 10px;
--space-section: 0px;
--shadow-surface: rgba(255, 255, 255, 0.22) 0px 1px 0px 0px inset;
/* Source custom properties sample */
--card: 1 0 0;
--ring: .485 .291 264.121;
--muted: .939 0 0;
--accent: .968 .001 286.375;
--border: .92 .004 286.32;
--radius: .5rem;
--blur-lg: 16px;
--blur-xl: 24px;
}参数来自页面元素采样,空值表示未取得;不将单个元素的参数当作全站规范。
实测未返回 CSP、X-Content-Type-Options 与 Referrer-Policy 响应头。
→ 先在报告模式下校验第三方媒体与预览沙箱域名,再逐步开启 CSP、nosniff 与 Referrer-Policy。
evidence.json: no-csp, no-xcto, no-referrer-policyCSP 是限制脚本源的标准做法。vibe 页面常常什么都加载,包括被注入的脚本。
→ 先开 report-only CSP,再收成 default-src 'self' 和明确的 script-src。
content-security-policy missing没有 nosniff,浏览器可能按错误类型解释文件。这是一行响应头。
→ 设置 X-Content-Type-Options: nosniff。
x-content-type-options missing默认 referrer 可能把站内路径和查询串漏给第三方。
→ 设置 Referrer-Policy: strict-origin-when-cross-origin。
referrer-policy missing按需切换修复当前页、做同款参考、导出 DESIGN.md 或保存为项目级 SKILL.md。
请基于 https://21st.dev 的 2026-11-11T06:50:32.853Z 页面快照优化当前项目。先确认当前实现与快照差异,不要把已变化的内容重新改回旧版。
设计基线
#09090b 深色画布居中放置紧字距 85px 大标题、宝蓝 #0033ff 主按钮与 Browse components 次入口,首屏下半部直接露出带作者署名的真实组件预览。
{
"colors": [
{
"role": "bg",
"hex": "#09090b"
},
{
"role": "surface",
"hex": "#1c2c64"
},
{
"role": "ink",
"hex": "#f6f6f8"
},
{
"role": "accent",
"hex": "#0033ff"
},
{
"role": "muted",
"hex": "#3c3c3c"
}
],
"fonts": {
"body": "General Sans",
"display": "Inter",
"stack": [
"General Sans",
"Inter",
"ui-rounded",
"-apple-system"
]
},
"radius": {
"button": "10px",
"card": "",
"field": ""
},
"space": {
"section": "0px",
"card": ""
},
"type": {
"h1": "84.96px",
"body": "16px",
"weight": "700",
"lineHeight": "24px",
"letterSpacing": "-4.248px"
}
}
数据来自同次页面采集;字体、圆角和间距为具体元素采样,不代表全站唯一设计规范。空值为未取得。HTML 为源码体积,不是压缩传输量;脚本数为 DOM 标签数,不是请求数。
执行事项
1. 补齐公开首页的安全响应头
先在报告模式下校验第三方媒体与预览沙箱域名,再逐步开启 CSP、nosniff 与 Referrer-Policy。
依据: evidence.json: no-csp, no-xcto, no-referrer-policy
2. 没有 Content-Security-Policy
先开 report-only CSP,再收成 default-src 'self' 和明确的 script-src。
依据: content-security-policy missing
3. 没有 X-Content-Type-Options
设置 X-Content-Type-Options: nosniff。
依据: x-content-type-options missing
4. 没有 Referrer-Policy
设置 Referrer-Policy: strict-origin-when-cross-origin。
依据: referrer-policy missing
验收
- 在 1440×900 和 390×844 分别核对文字、布局和主要操作“Get 21st free”。
- 保留已有品牌、登录和业务链路,不从静态截图推断交互故障。
- 只修复有证据的项;涉及安全响应头时先用报告模式验证现有资源及认证兼容性。
- 对比修改前后的截图,并执行相关功能测试。不要声称未经测试的功能已通过。