Bloomreach Banana Theme
About
The Bloomreach Banana Theme is a design system that is used to create a consistent look and feel across all
Bloomreach products. It is a collection of reusable components, guided by clear standards, that can be assembled
together to build any number of applications.
This project is currently in development. The goal is to start small and build up the system over time. The first
step is to create a set of design tokens that are exported to different platforms, starting with CSS variables.
Getting Started
Prerequisites
Installation
npm install @bloomreach/banana-theme
Usage
After installing the package, you can import the CSS variables into your project.
@import '@bloomreach/banana-theme/css/variables.css';
You can then use the variables in your CSS.
button {
background-color: var(--banana-background-button-primary);
}
Development
The design tokens are defined in the tokens
directory. The build.js
file defines the build process. The
dist
directory is where the built files are output.
Build
Build the design tokens and output them to the dist
directory. It will generate the following files:
Ensure the dependencies are installed with npm ci
before running the build
command.
npm run build
Clean
Delete the dist
directory.
Note: the build
command will automatically clean the files in the dist
directory before building, but only
the files that are generated by the current build process. If you want to clean the entire dist
directory,
including files that were generated by previous builds, you can run the clean
command.
npm run clean