StefanH
StefanH
KPCKevin Powell - Community
Created by Raheel on 11/15/2024 in #front-end
Using different resources to style pages #
It's possible to mix libraries but I wouldn't recommend it. This is a constant pain in the application i'm building. We're mixing mui with our own custom code and other ui libraries are mixing in too, which turns into a big mess very quickly. I'd recommend you to stick to one system and keep that consistent. Honestly with modern css it's pretty easy to build your own stuff. The only hard thing about css is naming classes. If you want to use a component library you'll have to add in your own styles at some point anyway. Try to keep that clean and avoid mixing multiple component libraries, that's where it becomes really messy. In the project i'm working on we use styled components which removes the need for naming classes. You still need to name the components, which are react elements, but they're namespaced to that file unless you export them. I find this works really well to keep your own code nicely distinct from whatever other libraries you're importing
16 replies
KPCKevin Powell - Community
Created by amitsoni on 4/16/2024 in #front-end
Seeking Guidance: Achieving Desired Border Effect in Design Section
I guess you could overlay two divs with slight margin and a different border radius to compensate for the inset?
7 replies
KPCKevin Powell - Community
Created by amitsoni on 4/16/2024 in #front-end
Seeking Guidance: Achieving Desired Border Effect in Design Section
If somebody figures this out can I also get a ping? Been wondering about this myself
7 replies