by murilo_rcc · 2d ago · 0 comments
Most Material libraries on the web are still on M2/M3 baseline. M3 Expressive adds spring-based motion and 35 "Material Shapes" (cookies, clovers, flowers...). ExpressiveUI ships those shapes and uses them throughout the components, including the new charts: pies and donuts can be cut by any shape, and progress rings run along a shape's outline.
How it's built: - tokens: one tokens.json → CSS variables, Tailwind v4 theme and TS; dynamic themes from a seed color via material-color-utilities - schema: every component's props are defined once in Zod, which generates the TS types, a JSON Schema and an LLM tool definition - core: headless logic and geometry (chart layouts, shape outlines, springs), no DOM - react / native: thin renderers (SVG on web, react-native-svg on native)
The schema part is what I'm most curious about: an LLM can return a JSON tree, RenderUI validates it and renders real components on web or native ("Prompt-to-UI"). There's a playground on the site.
Current state: v0.5.0, 9 chart types and the usual form/navigation/feedback components. Some things are web-only for now (e.g. DataTable), and native charts don't have entry animations yet.
npm: @expressive-ui/react, @expressive-ui/native
I'd love feedback on the API design and the schema/LLM approach.
No comments yet.