Newsletter
Join the Community
Subscribe to our newsletter for the latest news and updates
Web components, classes, and utilities for building single-page PWAs with Lit, by Blackstone Publishing.
Blackstone UI (BUI) is an open-source library of low-level custom elements, full-featured presenters, utility functions, and an application router for building single-page progressive web apps, built with Lit and maintained by Blackstone Publishing.
Blackstone UI is a collection of web components built on top of the Lit library, created by Blackstone Publishing for internal production applications. It takes reusable UI component code and provides it as a set of custom elements that can be imported selectively or used together to create a full featured application, plus Node.js server classes for building RESTful APIs. The library runs entirely in the JavaScript ecosystem, works with any framework that supports web components, and is distributed as an npm package.
BUI is built for JavaScript developers who want to assemble applications from standardized, encapsulated UI components rather than writing markup and styles from scratch. Teams at Blackstone Publishing use it in multiple internal production environments; external developers can use the same library to create single-page apps, dashboards, and PWAs. It also suits full-stack developers who want both client components and Node.js server classes in one toolkit.
Web components in BUI use Shadow DOM for style and DOM encapsulation, CSS custom properties for theming, and CSS parts for targeted styling overrides. To start, install the package directly from the GitHub repository, then import the components you need. The demo can be run locally by installing Parcel globally, cloning the repo, and running npm install and npm start.
Run npm install https://github.com/kjantzer/bui.git --save to get the latest version directly from GitHub. The package is also available on npm as blackstone-ui, but the README recommends installing from the repository because releases may be infrequent.
Yes, the library includes built-in dark/light mode support that can be toggled across its components.
BUI is built with Lit, the web components library, and uses Shadow DOM and CSS custom properties for encapsulation and theming.
Yes, because BUI is a set of standard web components, it is extensible and interoperable with other frameworks.
