bs_theme_quick
supports both Bootstrap 3 and 4 (and 4+3), but the
implementation differs greatly.
For Bootstrap 4, the vast majority of default colors are directly or
indirectly based on the $black
, $white
, and $gray-100
through
$gray-900
variables; or on the theme colors (primary, secondary, danger,
warning, info, etc.). bs_theme_quick
sets $white
to the bg
color,
$black
to the fg
color, and interpolates the grays between them. If
provided, the accent
argument is used to set the $primary
variable, and
the secondary
argument is used to set $secondary
and $default
variables.
For Bootstrap 3, a similar set of $black
, $white
, and $gray-darker
through $gray-lighter
variables exist, and these are populated using the
same strategy as with Bootstrap 4. However, unlike Bootstrap 4, in Bootstrap
3 many of the default colors are hard-coded hex colors, that also happen to
be shades of gray. bs_theme_quick
overrides these hard-coded values with
colors interpolated between bg
and fg
.