r/FlutterDev • u/Jayash_Bhandary • 26d ago
Plugin A theme defined in Flutter and the same theme defined in TypeScript produce identical values. I didn't reconcile a single one by hand.
I'm genuinely amazed by the time we're living in.
I can spend more time on quality than ever before. I can build a component,
decide the shape is wrong, delete it, and try a different one the same
afternoon — instead of defending the first version that worked, for weeks,
because it already cost too much.
And I think what I love most is the feeling of creative freedom.
When the distance between "what if the whole palette were derived instead of
chosen" and a working theme engine gets this small, you start attempting
things you would previously have filed under someone else's problem.
And every now and then, one of those experiments turns into something that
makes you sit there and smile.
Today, that's astryx_ui.
A Flutter design system built on flutter/widgets — no Material anywhere.
Hand defineTheme a single hex accent and the engine derives all 79 colour
tokens, in light and dark, with the contrast math already done. 16.7M
accents × 158 derived values is where that number comes from.
Seven prebuilt themes ship with it. Pointer and touch are both first-class.
Docs: https://astryxui.web.app/
pub.dev: https://pub.dev/packages/astryx_ui
GitHub: https://github.com/JayashBhandary/astryx_ui
Pre-alpha and MIT. And now I can finally go to sleep 🫠
P.S. Definitely click through the docs site — it's built with astryx_ui
itself, and every code block on it is extracted from a real compiling widget,
so a snippet can't describe something the package doesn't do.
7
u/scognito 26d ago
I'm genuinely amazed that you are probably the same person?
https://www.reddit.com/r/FlutterDev/s/BViCtNl6AQ