Megabit / Blazorise

Blazorise is a component library built on top of Blazor with support for CSS frameworks like Bootstrap, Tailwind, Bulma, AntDesign, and Material.
https://blazorise.com/
Other
3.26k stars 528 forks source link

Implement Blazorise.Theme into MVC proj? #4810

Open alexr151 opened 1 year ago

alexr151 commented 1 year ago

My team and I are working to standardize our existing UIs. Our existing project was originally built following the MVC pattern (eventually will get moved to a Blazor Server App). We've used Blazorise to build new and upgrade existing UIs.

Being able to integrate Blazorise Theming into our MVC project would solve a lot of our current issues and make our move to Blazor Server App a lot smoother. I could not find any resources for adding Blazorise Theming to anything beyond a Blazor Server/Web App.

Is there a way to easily add Theming to our MVC project?

stsrki commented 1 year ago

I haven't worked on an MVC project for a long time, but as far as I remember, it should work. Any Blazor framework should work. Blazorise is not an exception. You can follow this guide to get started https://medium.com/capgemini-microsoft-team/using-blazor-in-your-existing-asp-net-core-mvc-applications-f1b09bd66f4b

Regarding the Blazorise Theming, as long as you put ThemeProvider somewhere as a root/wrapper component it will work.