Gradient and shadow effects
Bootstrap 4 has built-in custom variables which begin with $enable-
(see Sass options). You can enable gradient and shadow effects with setting $enable-gradients
and $enable-shadows
to true
.
This page shows style variations affected by those variables and compares differences for each component. As differences are slight, you may need to check with an imaging software.
<kbd>
is affected by $enable-shadows
. But it is difficult to recognize the difference because the background is vary dark (90% gray). See below.
No shadow and With shadow.
Below are modified examples with changing background color to 40% gray (you can see the shadow at bottom).
No shadow and With shadow
.btn.btn-primary |
|
.btn.btn-secondary |
|
.btn.btn-success |
|
.btn.btn-danger |
|
.btn.btn-warning |
|
.btn.btn-info |
|
.btn.btn-light |
|
.btn.btn-dark |