shadcn 发布 typeset.css:统一 markdown 排版的新方案
shadcn 出了个 typeset.css,解决写博客、文档、聊天时反复调字体间距的痛点,一个文件搞定,还支持流式渲染。
shadcn 推出了 typeset.css,一个用于排版 markdown 内容的 CSS 文件。
该文件能自动处理标题、段落、列表、表格等元素的间距和大小,避免开发者重复设置。它支持流式 markdown 渲染,只需在项目中引入一个文件即可。
I love that @shadcn has managed to build the best UI infrastructure for agents and for humans. It's so so satisfying to play with the new typeset configurator. shadcn @shadcn Introducing shadcn/typeset. You know how you render markdown and get back plain, unstyled HTML? Headings, paragraphs, lists, tables. So you style the elements one by one: font sizes, line heights, spacing. You do it for your blog. Then you do it again for docs. Then again for the chat. Every time, you're fighting the same thing: sizing and spacing. To fix this, we created typeset.css: one file that styles everything inside a typeset container. It lives in your project, so you can change it directly when you need to. And we made it work beautifully with streaming markdown.
本条情报归属 AITOP「产品」核心追踪栏目。涉及核心实体与技术议题包括:shadcn、typeset.css、markdown、CSS排版,读者可通过下方标签进入对应专题页查阅历史脉络与关联对比。
信源核验说明:本文原始线索采编自「Guillermo Rauch」(@rauchg),经 AITOP 多维评分管线结构化提炼。