ASP.NET App_Themes with Bootstrap

I have an ASP.NET Web Forms project with CSS, Images and Skins in the App_Themes folder. We would like to integrate Boostrap into the project without losing the look and feel defined by App_Themes. Does anyone know the best way to integrate Bootstrap into an ASP.NET WebForms project using App_Themes?

+3


source to share


1 answer


My experience with Bootstrap (4) is to implement my own sass file that overrides bootstrap sass variables. The bootstrap.sass file out of the box simply references all mixload, utilities and boostrap component files and has no content of its own, so you can either make a copy of the bootstrap file or modify it yourself. Copying and configuring it to reference additional files such as override variables, etc. is lightweight and makes it easy to enable bootstrap update without losing your own changes.



So, you can put the bootsrap files anywhere, and in the app_themes \ theme directory, create your own sass file which is a copy of the boostrap file, and then link to the resulting .css file from your application. The cavitation is that you will need to refactor your css to sass which uses the boostrap framework.

0


source







All Articles