ldiebold / quasar-unocss

This is a sample project that explores using Quasar with UnoCss
5 stars 2 forks source link

UnoCSS for theming quasar? #2

Open hermesalvesbr opened 1 year ago

hermesalvesbr commented 1 year ago

Would it be possible to define the style of the input form, type border or overlay in the quasar theme, using uno css? or only scss support? #theme #theming #unoCSS

ldiebold commented 1 year ago

I'd take a different approach here, and am thinking of creating a project to solve this exact problem!

What if we had an App Extension that took every Quasar component, and simply wrapped it. E.g. BCard, BTable, BDialog etc.

Then, instead of using QCard, you would use BCard

By default, this wrapping would literally do nothing, but it gives the dev a place where they can start adding their own standards.

We could then have a config file that uses provide/inject for some common stylings like dense, bordered and flat. Every component that had a corresponding attribute, would then use the config by default!


I like this idea better than baking it into the framework. Let's just create an AE for people that want the flexibility.

So to answer your question, we could use this approach, and you could use unocss however you like in all the BSomething components! Maybe even making your own library.