blganesh101
blganesh101

Reputation: 3695

Changing default theme in Jhipster project

Hi I am new to jhipster. I could get the default project working fine and it is very good. What I want to change is the default bootstrap theme.
I have already tried

bower install flat-admin-bootstrap-templates --save

but somehow it does not change anything.

I tried bootswatch as well, but I am not sure how to keep one theme always selected by default. I am sure i can do this by changing code. But i am sure there is another easier way.

Could someone throw some light. How do i change the default theme?

Upvotes: 4

Views: 10541

Answers (2)

Julien Richard
Julien Richard

Reputation: 131

I had same problem and solved it by replacing content of _variable.scss in \node_modules\bootstrap\scss\_variables.scss by the _variable.scss provided by bootswatch for bootstrap 4.0.0-alpha

Upvotes: 0

Gaël Marziou
Gaël Marziou

Reputation: 16284

As of JHipster 6, Bootswatch theme selection is included in questions when generating a new project: 'Would you like to use a Bootswatch theme (https://bootswatch.com/)?'

For older versions, try one of the themes available in JHipster's module market.

You can also read this tip about bootswatch which is no longer valid for JHipster 3.x but give you an idea of the steps that are executed by the modules above.

Upvotes: 2

Related Questions