Based on Bootswatch Brite (available from bslib 0.11.0), with KIT's colors; all text uses the
rounded typeface Chiron GoRound TC, code uses JetBrains Mono. Both typefaces are downloaded by
the browser from Google Fonts on demand (local = FALSE): CJK typefaces are split into hundreds
of unicode-range pieces, so the server does not fetch every font file at startup.
Usage
kit_theme(brand = kit_current_brand())Arguments
- brand
The brand (
kit_brand()); defaults tokit_current_brand()(KIT when not set).
Value
A bslib::bs_theme() object.
Details
You usually do not need to call it yourself: kit_page() already uses it.
Colors come from the brand (kit_brand()): primary, success, navbar-bg, and link-color
are the brand's primary; link-hover-color is primary_hover; body-bg is page;
border-color is ink. info, warning, danger, and secondary are Bootstrap's own dark
colors and do not change with the brand (the background colors of callouts and status boxes are
in the CSS --nb-* variables, which do change with the brand).
brand.yml is not read (bslib::bs_theme(brand = FALSE)): when the working directory or a parent
has a _brand.yml (for example brand/_brand.yml), the theme does not change.
Examples
theme <- kit_theme()
bslib::theme_bootswatch(theme)
#> [1] "brite"