A Saber theme using BootstrapVue with Bootswatch support.
- [BootstrapVue][bootstrap-vue] included, all components allowed.
- Bootswatch theme support
- Bootstrap
variables.scssandoverrides.scssstyle override support - Custom style support
- Flexible layouts, with options
- Sweet, sugary goodness
- Not known to cause cancer (except in the state of California)
- Plus Ultra!
NPM
$ npm install saber-theme-bootstrapYarn
$ yarn add saber-theme-bootstrapBelow is the list of included layouts. All layouts support the bootswatch property in their front-matter. This allows the bootswatch theme to be overridden on a per-page basis.
If a layout has a layout-options section, these are additional properties that can be set in the page's front-matter, under the key layout-options.
default- Contains the header and footer, wrapping content in a bootstrapcontainer.layout-options:fluid- Iftrue, wraps the content in acontainer-fluidinstead.
This theme supports all the normal properties of a Saber site (i.e. title), but adds favicon and logo:
siteConfig:
title: My Site
favicon: assets/images.favicon.png
logo: assets/images/logo.pngThese paths are relative to the project's root directory, and will be required through webpack.
Part of the point of Bootstrap (and hence this theme) is to allow people to get up and going very quickly, while still having the ability to customize the look and feel of their site as they grow. To me, this means that this theme needs to make it easy to pick a theme other than the default Bootstrap theme, and even be able to easily customize the theme to be something entirely unique. That is why the theme's main configuration is centered around the ability to modify the bootstrap theme.
For most people, it's easiest to simply pick one of the excellent Bootswatch themes. Simply specify the one you want with the bootswatch key:
themeConfig:
bootswatch: 'cyborg'If, however, you want to override some (or all) of the bootstrap variables, you cant specify a variables.scss file. You can also specify a overrides.scss file, if you want to override some portion of bootstrap after the variables and mixins have been imported. Simply specify the paths to the files. (All paths are assumed relative to the project root.)
themeConfig:
variables: 'style/variables.scss'
overrides: 'style/overrides.scss'Sometimes, however, you want to go crazy and do your own thing. That's totally fine; you can specify your own styles, and as long as you have the appropriate loader installed, they'll be included after the bootstrap styles.
themeConfig:
styles:
- 'style/custom-theme.scss'
- 'style/other-styles.scss'
- 'style/other-other-style.css'