Skip to content

Using the design system

The Open Beekeeping design system (“Bracket”) is the shared look of Open Beekeeping and its products: colours, type, fonts, logos and plain-CSS components, with no JavaScript. These docs use it.

Terminal window
npm install github:OpenBeekeeping/design#v0.1.0
// e.g. in a SvelteKit root layout
import '@openbeekeeping/design/openbeekeeping.css';
<html lang="en" data-theme="dark"> <!-- dark, light, or leave off to follow the device -->
<body data-product="bka"> <!-- parent, bka or apiary: sets the logo’s product colour -->
  • Dark is the home theme. Without data-theme, pages follow the visitor’s light or dark setting.
  • Components are classes starting ob-: ob-header, ob-lockup, ob-btn, ob-field, ob-input, ob-card, ob-badge, ob-readout, ob-code.
  • Fonts are included, so pages make no outside requests.