Products

shadcn 发布 typeset.css:统一 markdown 排版的新方案

Why we picked it

shadcn 出了个 typeset.css,解决写博客、文档、聊天时反复调字体间距的痛点,一个文件搞定,还支持流式渲染。

shadcn 推出了 typeset.css,一个用于排版 markdown 内容的 CSS 文件。

Body

该文件能自动处理标题、段落、列表、表格等元素的间距和大小,避免开发者重复设置。它支持流式 markdown 渲染,只需在项目中引入一个文件即可。

Original · Guillermo Rauch

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.

Industry Coordinates & Source Verification

This report is categorized under AITOP's "Products" desk. Key entities and technical topics under continuous tracking include shadcn, typeset.css, markdown.

Source attribution: curated from Guillermo Rauch (@rauchg).

Spotted an error in the summary or translation? Tell us