3.0.1 • Published 6 years ago

bhp-ui v3.0.1

Weekly downloads
9
License
-
Repository
-
Last release
6 years ago

BHP UI

BHP UI library. A customised Bootstrap deployment with two themes, along with some extra components.

Getting started: NPM

If you are using npm or yarn in your project, run

yarn add bhp-ui

to install this library. The required peer dependencies for the package (currently bootstrap and material-design-icons) will be listed, so install those too.

You can now reference the compiled CSS files in the css directory, or access the SCSS directly via the scss directory.

Getting started: no NPM

Download the css/index-dark.css or css/index-light.css files and add them to your static site. You need to add class="light-theme" or class="dark-theme" to the root html element of your project.

Structure

In order to support multiple themes is important that files are loaded as described below:

@import 'base';
@import 'themes/light/light-colors';
@import 'themes/light/light-variables';

.light-theme {
  @import 'components';
}
  1. base: loads the core base functions, variables and mixins;
  2. themes/light/light-color: specifies the colour pattern for the theme;
  3. themes/light/light-variables: specifies the styling variables for the theme;
  4. components: contains the bulk component styles