Steps to integrate a bootstrap theme into ember in the context of sb-admin-2
ember new bootstrap-example --yarn
ember install ember-cli-sass
(I then removedapp.css
)ember install ember-bootstrap
- its worth noting that this step added
@import "ember-bootstrap/bootstrap";
automatically to myapp.scss
file.
-
copied the whole
scss
dir containing all scss files from the theme intovendor/sb-admin-2/scss
-
Cleaned up the imports inside the main
sb-admin-2.scss
since it contained references to its own path tobootstrap.scss
-
added this
scss
dir to myember-cli-build.js
sassOptions
includePaths
array:sassOptions: { includePaths: [ 'vendor/sb-admin-2/scss', ] }
-
Copy and pasted their login markup (inside of the body) into my some route template (in my case the
application.hbs
template b/c this isn't a real project).-
I needed to then add a class to the body so I did this:
activate(){ this._super(...arguments); document.body.classList.add('bg-gradient-primary'); }
-