2 points · by murilo_rcc · 2d ago · 0 comments
How are the spring motions implemented on native: Reanimated, or the built-in Animated API? Expressive leans heavily on springs and shape morphing, and that's where JS-driven animation tends to drop frames on mid-range Android phones.
And do the components do anything different on iOS? Material on an iPhone often feels foreign around back-swipe and large-title navigation bars, so an iOS-aware mode, or at least guidance on which components to swap for platform ones, would help people shipping one codebase to both stores.
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.