Backup JavaTMP project and apply the following steps before continuing:
./web/assets/src/sass/common/variables.scss
and BEFORE
the imports of required bootstrap SASS parts and at
comment //--- override default bootstrap variables here
.
You can Override any bootstrap or javatmp variables that will be used in the remaining files including bootstrap itself../web/assets/src/sass/main.scss
, You can Override any bootstrap or javatmp variables too to be used in all styles../web/assets/src/sass|-rtl/
, You can Override any bootstrap or javatmp variables too to be used in that part only../web/assets/src/sass/plugins/custom-fullcalendar.scss
file will effect this plugin’s style only.generate-dist
by invoking gulp sass
command. or run default gulp’task by invoking gulp
command
that will generate ./src/main/webapp/assets/dist
folder with updated styles.$primary
variableUpdating $primary
variable or "primary"
key value will automatically update the $theme-colors(“primary”)
which will update the following components:
.alert-primary, .badge-primary, .btn-primary, .btn-outline-primary, .list-group-item-primary,
.table-primary, .bg-primary, .bg-gradient-primary, .border-primary, .text-primary.
$theme-colors
entryAt the same way adding new entry to the $theme-colors
map will automatically generate all above components for that key.
for example the following customization add new entry to $theme-colors
and keep everything else same:
./web/assets/src/sass/common/variables.scss
.// --- override default bootstrap variables
, add the following line
$theme-colors: ("javatmp": #598234);
like this:
...
// --- override default bootstrap variables here
$theme-colors: ("javatmp": #598234);
...
./web/assets/src/sass/main.scss
, and add your overriding CSS styling for
adjusting components after the last import statement of Bootstrap Sass and before importing of the first JavaTMP Sass file.gulp generate-dist
or gulp
.javatmp
with #598234
color and generated
the following new components or classes for that theme:
.text-javatmp, .bg-javatmp, .alert-javatmp, .badge-javatmp, .btn-javatmp, .btn-outline-javatmp,
.list-group-item-javatmp, .table-javatmp, .bg-gradient-javatmp, .border-javatmp, .bg-gradient-javatmp
.So, at the same way you can update all Bootstrap or JavaTMP Theme Colors or introduce a new set of different keys with their new components.