I am creating a new desktop macOS app and my stack is rust and dioxus for the UI.
What is your opinion over defining the components ( aka buttons - panels - modals etc. ) as shown in the first screenshot to be used like in the second screenshot.
I feel that that way we can have easily testable tailwind based ( with some extra custom css written just for the colors ) composed components that would also be easily extracted into libraries to create themes and so on.

