Inline icon chips pack dense proof cleanly
Baseline-aligned project chips let a dozen major libraries appear inside prose without turning the page into a heavy logo grid.
Words
232
Action candidates
0
Links
18/34
HTML
15 KB

antfu.me
Anthony Fu
Anthony Fu's Portfolio
Baseline-aligned project chips let a dozen major libraries appear inside prose without turning the page into a heavy logo grid.
With only four script tags and subtle edge-anchored generative strokes, the page feels fast and unhurried.
When ten or more pill badges wrap across consecutive lines on 390px screens, vertical rhythm tightens.
Increase line-height slightly on chip-heavy paragraphs or split core vs. personal projects on narrow viewports.
ABCDEFGHIJKLMNOPQRSTUVWXYZ · 0123456789
A calligraphed signature, inline project chips and faint generative branches weave prolific open-source work into readable prose.
TYPE SCALE
36px / 16px
2.25× display ratio
RHYTHM
LH 24px
Wt 800 · Track normal
CORNERS
/* Extracted design tokens from antfu.me via VibeCheck */
:root {
--color-bg: #ffffff;
--color-surface: #f4f4f4;
--color-ink: #000000;
--color-muted: #cccccc;
--color-line: #e5e7eb;
--font-display: "Inter", system-ui, -apple-system, "PingFang SC", "Noto Sans SC", sans-serif;
--font-body: "Inter", system-ui, -apple-system, "PingFang SC", "Noto Sans SC", sans-serif;
--text-h1: 36px;
--text-body: 16px;
--leading-body: 24px;
--tracking-display: normal;
--radius-button: 4px;
--radius-card: 0px;
--space-section: 40px;
--space-card: 0px;
/* Source custom properties sample */
--c-bg: #fff;
--color-tip: #1a7f37;
--un-rotate: 0;
--un-shadow: 0 0 #0000;
--un-skew-x: 0;
--un-skew-y: 0;
--color-note: #0969da;
--un-scale-x: 1;
}Parameters are element samples. Empty values are unknown, and individual samples are not site-wide rules.
When ten or more pill badges wrap across consecutive lines on 390px screens, vertical rhythm tightens.
→ Increase line-height slightly on chip-heavy paragraphs or split core vs. personal projects on narrow viewports.
mobile.png: tightly wrapped inline project chips in second paragraphA CSP is the standard way to limit script sources. Vibe-coded pages often load anything, including injected scripts.
→ Start with a report-only CSP, then default-src 'self' and an explicit script-src.
content-security-policy missingWithout nosniff, browsers may interpret a file as a different type than you sent. It is a one-line header.
→ Set X-Content-Type-Options: nosniff.
x-content-type-options missingThe default referrer can leak internal paths and query strings to third parties.
→ Set Referrer-Policy: strict-origin-when-cross-origin.
referrer-policy missingSwitch between page fixes, style recreation, DESIGN.md, or a reusable SKILL.md guardrail file.
Improve the current project using the 2026-11-11T06:46:23.221Z snapshot of https://antfu.me. First identify changes since capture; do not revert newer behavior to the old snapshot.
Design baseline
A top-right text bar leads into a centered single column headed by a bold 36px name, embedding miniature icon chips for Nuxt, Vitest and UnoCSS directly inside narrative paragraphs.
{
"colors": [
{
"role": "bg",
"hex": "#ffffff"
},
{
"role": "surface",
"hex": "#f4f4f4"
},
{
"role": "ink",
"hex": "#000000"
},
{
"role": "muted",
"hex": "#cccccc"
},
{
"role": "line",
"hex": "#e5e7eb"
}
],
"fonts": {
"body": "Inter",
"display": "Inter",
"stack": [
"Inter",
"Roboto Condensed",
"ui-serif",
"DM Mono"
]
},
"radius": {
"button": "4px",
"card": "0px",
"field": ""
},
"space": {
"section": "40px",
"card": "0px"
},
"type": {
"h1": "36px",
"body": "16px",
"weight": "800",
"lineHeight": "24px",
"letterSpacing": "normal"
}
}
Values come from one capture. Fonts, radii and spacing are element samples, not a universal site-wide specification. Empty values are unknown. HTML bytes are source size, not compressed transfer size; script counts are DOM tags, not network requests.
Actions
1. Ease line-height around dense chip clusters
Increase line-height slightly on chip-heavy paragraphs or split core vs. personal projects on narrow viewports.
Evidence: mobile.png: tightly wrapped inline project chips in second paragraph
2. No Content-Security-Policy
Start with a report-only CSP, then default-src 'self' and an explicit script-src.
Evidence: content-security-policy missing
3. No X-Content-Type-Options
Set X-Content-Type-Options: nosniff.
Evidence: x-content-type-options missing
4. No Referrer-Policy
Set Referrer-Policy: strict-origin-when-cross-origin.
Evidence: referrer-policy missing
Acceptance
- Check text, layout and the main action “Projects” at 1440×900 and 390×844.
- Preserve branding, authentication and business behavior. A screenshot does not prove broken interaction.
- Change only evidence-backed issues. Validate security headers against existing resources and authentication in report-only mode where supported.
- Compare before/after screenshots and run relevant functional tests. Do not claim untested behavior passed.A warm-white canvas, short copy and a dark download button frame the coding agent as a working tool.
A central composer followed by template work gives visitors two starting points: describe an idea or choose an example.
Warm-white surfaces and orange details surround a natural-language composer, with output choices making an open-ended question easier to approach.
A near-black canvas, large white headline and detailed product interface establish a professional tool through a concrete workspace.