-
Notifications
You must be signed in to change notification settings - Fork 1
Themes
b-ber comes packaged with two themes, b-ber-theme-serif
and b-ber-theme-sans
. A user can activate a theme on the command line using the bber theme
command.
When a theme is activated, it does three things:
- Updates the
config.yml
file with the new theme name - Copy over any assets in the theme directory (sprites, fonts, etc) to the appropritate top-level directory
- Create a
_settings.scss
and_overrides.scss
in the_project/_stylesheets/<theme-name>
directory
If _settings.scss
or _overrides.scss
already exist in the _project/_stylesheets/<theme-name>
directory, b-ber will not overwrite them.
b-ber parses code blocks using highlight.js, and the default b-ber themes (b-ber-theme-serif
and b-ber-theme-sans
) come packaged with highlight.js
CSS files. The default code highlighting theme is tomorrow
, and cannot currently be changed by user settings.
When creating custom themes, it's necessary to include styles for syntax highlighting in the theme's SCSS.
b-ber Comes with a serif
and sans-serif
theme. Change them using the theme
command on the CLI.
$ bber theme list
b-ber info The following themes are available:
b-ber info
✓ b-ber-theme-serif
○ b-ber-theme-sans
$ bber theme --set=b-ber-theme-sans
Created [_project/_stylesheets/b-ber-theme-sans/_settings.scss]
Successfully set theme theme to [b-ber-theme-sans]
This will add a new directory to the _project/_stylesheets/
directory with an overrides file, and a theme settings file. It will also copy any
The _settings.scss
file contains a list of variables for adjusting the appearance of the theme.
// _settings.scss
$white: #fff !default;
$black: #222 !default;
$grey: #eee !default;
$info: #5050c5 !default;
Update the variables to customize the theme.
b-ber guarantees that the styles _overrides.scss
will be the last entries to the bundled application.css
that is injected into the XHTML. Add any custom overrides here.
- Adding metadata
- Creating content
- Generating new content
- Authoring and editing content
- Reading order (Table of Contents)
- Configuring the build
- Adding a cover image
- All directives
- Text
- Media
- Misc