agentic-webdesign-shadcn-typeset
Use shadcn/typeset — a CSS-only styling system for HTML and rendered markdown. One class, streaming-safe, theme-aware. Use when styling raw HTML/markdown content in shadcn/ui projects for blog posts, docs, chat messages, or AI-generated content.
- License 许可
- MIT
- 所属仓库
- S3YED/appie-kit
- 最近更新
- 2026-08-27
- Stars
- ★ 14
- Forks
- 3
01 前言 Front Matter
- name
- agentic-webdesign-shadcn-typeset
- metadata
- { "tags": [ "shadcn", "css", "typeset", "markdown", "streaming", "styling" ], "source": "shadcn/ui July 2026 changelog", "created": 1783900800000 }
- description
- Use shadcn/typeset — a CSS-only styling system for HTML and rendered markdown. One class, streaming-safe, theme-aware. Use when styling raw HTML/markdown content in shadcn/ui projects for blog posts, docs, chat messages, or AI-generated content.
03 SKILL.md 正文
shadcn/typeset
A single CSS file that styles HTML elements and rendered markdown. Add one class, everything inside gets styled. No per-element classes needed.
Quick Start
npx shadcn@latest add typeset
<div className="typeset">{markdownContent}</div>
Core Controls (3 CSS custom properties)
| Property | Purpose | Default |
|---|---|---|
--typeset-size |
Base font size | Inherits from container |
--typeset-leading |
Line height multiplier | ~1.6 |
--typeset-flow |
Spacing between block elements | ~1em |
Multiple Contexts
.typeset-chat {
--typeset-leading: 1.6;
--typeset-flow: 1em;
}
.typeset-docs {
--typeset-size: 15px;
--typeset-leading: 1.75;
--typeset-flow: 1.5em;
}
<div className="typeset typeset-chat">{message}</div>
<article className="typeset typeset-docs">{page}</article>
Why This Helps AI Agents
- Single class — agents don't need to add per-element Tailwind classes
- Streaming-safe — new blocks appended during streaming don't restyle earlier ones
- No dependencies — CSS file lives in your project, no package layer
- Theme-aware — uses your existing shadcn theme tokens (colors, fonts)
- Flexible — create as many typesets as you need for different contexts
Use Cases
- Blog posts rendered from MDX/markdown
- Documentation pages
- Chat message content (AI-generated markdown)
- Product descriptions
- Any content where you have raw HTML or markdown that needs consistent typography
Pitfalls
- Typeset only styles semantic HTML elements (h1-h6, p, ul, ol, table, pre, code, etc.)
- If your content has class-based styling already, typeset won't override it
- For streaming, wrap only the content portion, not the entire conversation
04 同仓库更多 Skills
ai-music
AI music generation and audio tools: HeartMuLa lyrics-to-music generation, songwriting craft (+ Suno prompts), and audio spectrogram/feature visualization.
agentic-webdesign-design-system-ingestion
Use v0 Design Systems 2.0, Bolt Design System Agents, or Lovable to generate production UI from a client's real design system components — not generic Tailwind. Use when building a client website where brand consistency matters.
agentic-webdesign-agent-elements
Use 21st.dev Agent Elements — 25 shadcn/ui components purpose-built for AI agent UIs. Tool cards (Bash, Edit, Search, Plan, Subagent, MCP), chat, input, streaming. Open source, shadcn-registry install, no runtime lock-in.
vercel-deployment
Deploy static sites and frontends to Vercel — handles both CLI and REST API paths, including the CLI token sanitization workaround.
software-quality-workflows
Umbrella workflow for TDD, debugging, code simplification, spikes, pre-commit review, and debugger-assisted investigation.
react-component-refactoring
Safely refactor large React components into smaller, maintainable pieces using proven patterns