Executable Codemdxe
Styling
Dynamic CSS generation with BuilderCSS
Styling
The @mdxe/hono runtime includes BuilderCSS, a dynamic CSS generation system for MDXLD documents.
Overview
BuilderCSS generates type-aware stylesheets customizable via URL query parameters:
Quick Example
Query Parameters
| Parameter | Values | Default |
|---|---|---|
color | Tailwind color names | indigo |
bg | gradient, grid, dots, waves, stars | none |
mode | auto, light, dark | auto |
font | system, sans, serif, mono | system |
radius | none, sm, md, lg, xl, full | md |
MDX Frontmatter
Full Documentation
For comprehensive documentation, see the BuilderCSS docs:
- URL Conventions - URL patterns and parameters
- Document Types - Available types and HTML structures
- Backgrounds - Background effects
- Colors - Color system
- CSS Variables - shadcn/ui compatible variables