google / mesop

Build delightful web apps quickly in Python
https://google.github.io/mesop/
Apache License 2.0
4.17k stars 190 forks source link

Class/Tailwind support on Box component #438

Open ducan-ne opened 2 weeks ago

ducan-ne commented 2 weeks ago

Is your feature request related to a problem? Please describe. as mentioned in #123. As a dev has properly understood the web app. I want to reuse my web skills to mesop instead of writing raw styles.

Describe the solution you'd like Support for passing classes to Box would be great.

wwwillchen commented 2 weeks ago

I prototyped this: https://github.com/google/mesop/pull/476, but there's a few hurdles which I've noted in the PR. I'm going to mark this as votes needed and see if more people want this before investing more into this. I know tailwind is very popular in the FE community, but it also seems quite duplicative with Mesop's Style API and I think most of the use cases that Tailwind does can be covered already (there's some exceptions like state selector, pseudo classes, and groups).