Well, bootstrap is heavily relied upon by the Spark framework. It would be futile to try and change. Even if you managed to change it over, you would not be able to update without difficulties. However, You could use what ever you wanted for the front-end. And, there is a few .less files that you could change the look a bit to match your front-end.
Using Materialize in lieu of Bootstrap
So, in Spark, I am wanting to replace bootstrap with Materialize. I'm still getting used to Gulp and how that works, wondering if I have this process right:
- I have installed Materialize-css using NPM
- in resources\assets\less\app.less comment out
@import "node_modules/bootstrap/less/bootstrap"; - I created a new folder and file resources\assets\sass\app.scss and in it I put:
@import "node_modules/materialize-css/sass/materialize"; - In gulpfile add:
mix.sass('app.sass')is that everything I need to do for the CSS?
For the javascript part I am not really sure what to do, I see under resources\assets\js there is a bootstrap.js file, and in it there is:
/**
* We'll load jQuery and the Bootstrap jQuery plugin which provides support
* for JavaScript based Bootstrap features such as modals and tabs. This
* code may be modified to fit the specific needs of your application.
*/
window.$ = window.jQuery = require('jquery');
require('bootstrap-sass');
Also, is this a bad idea? I like the look of materialize but I am not sure how well it works on mobile devices. When I was exploring the framework on my ipad there were a few instances where the sample elements didn't render correctly. maybe I should just stick with bootstrap, expecially inside a spark app?
Any thoughts, advice, further instruction is greatly appreciated. Thanks in advance to an who answer.
Please or to participate in this conversation.