An example visua plugin that generates Bootstrap 4.x themes.
See theming bootstrap to know how to build your Bootstrap assets from the generated scss variables file.
See visua.io to get started with visua and visua plugins.
$ npm i visua-bootstrap
$ visua run bootstrap [--outFile]
This plugin uses the following variables. They are all optional: undefined variables will not appear in the exported variable file.
Variable | Type | Exports to |
---|---|---|
--primary-color |
<color> |
$primary |
--secondary-color |
<color> |
$secondary |
--success-color |
<color> |
$success |
--info-color |
<color> |
$info |
--warning-color |
<color> |
$warning |
--error-color |
<color> |
$danger |
--light-color |
<color> |
$light |
--dark-color |
<color> |
$dark |
--background-color |
<color> |
$body-bg |
--secondary-text-color |
<color> |
$body-color |
--spacer |
<length> |
$spacer |
--font-family |
[<family-name>|<generic-family>]# |
$font-family-base |
--code-font-family |
[<family-name>|<generic-family>]# |
$font-family-monospace |
--font-size |
<length> |
$font-size-base |
--font-weight |
<length> |
$font-weight-base |
--line-height |
<length> |
$line-height-base |
--headings-font-family |
[<family-name>|<generic-family>]# |
$headings-font-family |
--primary-text-color |
<color> |
$headings-color |
--headings-color |
<color> |
$headings-color |
--headings-line-height |
<color> |
$headings-line-height |
--headings-font-weight |
<color> |
$headings-font-weight |
The path where the variables file is generated
Examples
--outFile=filename.scss
--outFile=path/to/filename.scss
--outFile="path/to/filename.scss"
Default value variables.scss
Required No