Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

jhipster and bootstrap template : how to change the theme

Tags:

jhipster

Is it easily possible to change and apply a new bootstrap theme/template (like this one for example : https://elements.envato.com/admin-io-GG5ENR) to my Jhipster Angular 5 web app?

Is there a procedure to follow?

Thank you

like image 290
thomas Avatar asked Nov 17 '22 18:11

thomas


1 Answers

I managed to change themes by editing the file from darkly (commented out) to lumen:

src\main\webapp\content\scss\vendor.scss

/***************************
put Sass variables here:
eg $input-color: red;
****************************/
// @import '~bootswatch/dist/darkly/variables';
@import '~bootswatch/dist/lumen/variables';
// Override Bootstrap variables
@import 'bootstrap-variables';
// Import Bootstrap source files from node_modules
@import '~bootstrap/scss/bootstrap';
// @import '~bootswatch/dist/darkly/bootswatch';
@import '~bootswatch/dist/lumen/bootswatch';

/* jhipster-needle-scss-add-vendor JHipster will add new css style */

Then I ran the command:

npm run webpack:build

The changes were hot reloaded.

like image 175
Al Grant Avatar answered Feb 24 '23 17:02

Al Grant