r/DesignSystems • u/Relative-Chemical-32 • 8d ago
Our design system got a third user: the agent
Enable HLS to view with audio, or disable this notification
With my team, we’re building a design system to be used with agents, we named it: Whisk/UI. It uses the same tokens in Figma and in code: brand palettes, 45 semantic color roles, then component tokens.
A lint runs with every check and fails when the UI uses a raw HTML element instead of a Whisk/UI component, a hardcoded color, an inline style, or text without a text style. A real exception goes in a config file, with the exact file and a written reason. So the agent gets an error it can fix, not just a guideline it can skip, and doesn’t have to guess.
Whisk/UI is part of a bigger project, the Smoothie Framework, which also adds generative UI. It lets AI build screens at runtime, while someone is using the app. You give the model a catalog, the list of components it may use. It replies with a JSON description of the screen, the app validates it, and anything outside the catalog or its limits isn’t rendered.
We built a small demo to show it. Dump a note and the AI files it. Anything that isn’t a task or an expense gets a new space, with a layout generated on the spot. Try “books to read: Dune, Piranesi”, then change the UI of a space, for example "Do not show me tasks as a kanban but use a list instead". You get 3 tries a day, so pick good ones.
We used the same setup with a client. Iteration was much faster, and we mirrored the codebase on Lovable so they could try variants on their own in a safe place. Everything followed the design system, and the code was easy to pick up by hand afterwards.
We’re still working on Whisk/UI, and the next release we have in mind is making it cross-platform. So basically you write a screen once in Whisk markup (it looks like TSX but it’s pure data), and it compiles to a Whisk document that each platform draws with its own native toolkit: GPUI on desktop (Rust), SwiftUI on iOS, Compose on Android (Kotlin), so no webview. If you only ship on one platform, you can also use Whisk/UI directly in Rust, Swift or Kotlin.
Sorry for the long post, this project is hard to explain in a few words. 👉🏻👈🏻
If you want to take a look, here are some links:
- Docs, public but still a work in progress: here
- Figma preview: here
- We opened Founding access a few weeks ago: here ; we are still figuring out the business model.
I am really curious to hear your feedback.