Skip to contents

Theme creation

Tools for creating customized Bootstrap themes.

bs_theme() bs_theme_update() is_bs_theme()
Create a Bootstrap theme
bs_add_variables() bs_add_rules() bs_add_functions() bs_add_mixins() bs_bundle()
Add low-level theming customizations
font_face font_link font_google font_collection
Helpers for importing web fonts

Interactive theming

Interactively customize themes.

bs_theme_preview()
Preview the currently set theme
run_with_themer() bs_themer()
Theme customization UI

Cards

Create cards

Value box

Highlight important findings

Create (tabbed) sections of content.

Accordions

Create collapsable sections of content

Layout multiple UI elements

Useful layout templates

layout_column_wrap()
A grid-like, column-first, layout

Page layouts

Dynamic theming

Create dynamically themable HTML widgets.

bs_dependency() bs_dependency_defer()
Themeable HTML components
bs_theme_dependencies()
Compile Bootstrap Sass with (optional) theming
bs_current_theme()
Obtain the currently active theme at render time

Global theme creation

Use Bootstrap themes globally.

Theme subsetting

Reduce the final CSS bundle size.

bs_remove() bs_retrieve()
Remove or retrieve Sass code from a theme

Bootstrap SASS compilation

Compile themes into HTML dependencies and CSS strings.

bs_theme_dependencies()
Compile Bootstrap Sass with (optional) theming
bs_dependency() bs_dependency_defer()
Themeable HTML components

Other utility functions

bs_get_variables() bs_get_contrast()
Retrieve Sass variable values from the current theme
theme_version()
Obtain a theme's Bootstrap version
theme_bootswatch()
Obtain a theme's Bootswatch theme name
bootswatch_themes()
Obtain a list of all available bootswatch themes.
versions() version_default()
Available Bootstrap versions