- B01LER
B01LER is a fully customisable design system (DS) that enables you to easily create cohesive and consistent digital products across multiple platforms and brands.
B01LER provides pre-built components that exist in design in the form of a component library in Figma, as well as in code in a repository (the one you have opened right now), which is also displayed in the web using Storybook. Both the components in design and in code are connected via a token system.
A token system is a collection of values which represent the visual properties of a design system, such as typography, color and spacing.
Utilizing tokens, B01LER is simultaneously consistent and flexible. By changing the tokens, you have the power to change the appearance of the whole design, including all the components and all the digital products build with it. In Figma and in code.
Overall, B01LER is a powerful tool that helps you work smarter, not harder. By streamlining the design and development processes B01LER empowers you to create better products faster.
- Increased efficiency in building design systems on brand, because semantic structure and architecture are pre-built
- Increased efficiency, through automated processes. Documentation, DEV Handover, and more
- Increased effectivity, because the time saved on building all the components can be used to build features right away
- Increased acceptance of DS because components work right from the beginning of project phase
- Immense cost savings, because the DS ramp-up phase is reduced from multiple months to days
Some articles claim, that Web Components are not accessible or that they are not complying with standard accessibility guidelines. The argument says that assistive technologies like screenreaders can not access the shadow DOM and for example are not able to "see" aria or role attributes that are needed to make components accessible. This is wrong. Modern screenreaders are not "looking" at the DOM. Instead they are accessing the accessibility tree, which is provided by the browser and also contains information from the shadow DOM.
Slack is our main internal communications channel and will most likely be the place where you can reach us best. Join the #boiler channel and say hi 👋 (you need to be part of the Accenture Org to join).
We are also on Microsoft Teams. Join the B01LER channel and say hi 👋 (you need to be part of the Accenture Org to join).
You can send us messages via [email protected], which the team will try to respond to as quickly as possible.
Join the B01LER Monthly Session and ask questions, if you have any. The session takes place on the last Thursday of each month from 4 PM to 4:30 PM (CET). You can add the session to your calendar by following the guide in the pinned post of our dedicated Teams channel for the session (you need to be part of the Accenture Org to join).
We are happy about anyone who wants to participate in our community. To ask questions or give us feedback please open a discussion on GitHub. For feature requests please use our feature request template.
Please let us know in case you are finding any bugs by reporting them with our bug report template. The template can also be used to report issues with our documentation. In case you discover a security vulnerability please review our security policy for more details on how to report it.
Get to know about our Architecture here.
BO1LER uses the 'blr' prefix in three main areas: custom component tag names, events and icons
The names of BO1LER components follow the W3C Custom Elements specification. Component prefixes can easily be customized
by updating the exported TAG_NAME in each renderFunction
file. The renderFunction
file can be found in the directory
of each component in our ui-library
package. In order for your component to be valid, the name must contain at least
one dash, it must start with a lowercase character of the alphabet and it cannot contain reserved tag names that already
exist in the HTML spec. For a full list of reserved tag names and more tips on naming Custom Elements, please explore
this guide to ensure that your naming convention
is compliant.
BO1LER uses custom event names in our components that come prefixed with blr
by default. This is done to avoid using
the same names in HTML. Users may still need to use native events without having to worry about naming collisions. The
exported event names can be customized in the events.ts file. For
example, the focus event can be updated with a new prefix of your choosing by changing the value:
export const BlrFocusEventName = 'blrFocus';
The prefixes of our icons can easily be renamed by opening the index.mjs file in
the icons
directory. This file is responsible for optimizing our icons, assigning a prefix and exporting their type
and exporting their keys. Simply replace the value of the variable withPrefix
with a prefix of your choosing and run
yarn compile:icons
from the root directory for your changes to take effect. Remember to update the test files and the
.stories.ts files with your chosen prefix for the app to function as expected.
- First you need to install Git. Git is needed to clone the project to your local machine. If you don't have it installed yet you can follow this installation guide.
- This project is a Node.js package. You need Node Version 18 or higher in order to run it. Check your installed version with node -v. For more information check out the Node.js Documentation.
- If you don't have Yarn installed, please install it (any version, we will pick the right settings later). For more information check out the Yarn Documentation.
In addition, you might need to install Corepack. For more information checkout Corepack Documentation.
Figma is a collaborative tool used for designing user interfaces. Figma can be run on any operating system that can run a browser which can help designers, developers and various other stakeholders to collaborate seamlessly. Sharing designs, managing permissions on a granular level and requesting feedback are some of the many features that help teams work in a more agile fashion.
Tokens Studio for Figma (also known as Figma Tokens) is a plugin for Figma that allows users to integrate design tokens into their Figma designs. Before you start working with B01LER Design System for Figma, make sure to install the Tokens Studio for Figma (Figma Tokens) plugin so you can access and customize the UI kit easily.
The plugin allows both designers and developers to inspect tokens that have been applied to components. An overview of all tokens for a component can be viewed with deep inspect or the specific tokens used for the building blocks of a component can also be viewed
Note: You need to run terminal as administrator on Windows machines.
-
First, open a terminal and navigate to the folder you want to fork or clone this project
$ cd git_projects
-
If you want to use B01LER as a starting point for your own design system, the first step is to fork the repository. You can do this via the GitHub web interface and just follow the instructions or read the documentation here. This step is only required for the initial setup of you repository.
In case you want to contribute to this repository, the first step is to clone the repository:
$ git clone https://github.com/deven-org/boiler.git
-
Now we enable corepack for yarn and choose right version
$ corepack enable $ yarn set version 4.0.2
-
Next, install the app
$ yarn
-
Now start up your app
$ yarn start:storybook
Note: This command will also open up Storybook locally. This provides you with a full list of available components that you can experiment with. Each component in Storybook also contains detailed documentation how to use them and the parameters that they can accept.
Note: To be able to edit tokens, you must own a pro license of token studio
- First, open your Copy of the B01LER and bookmark Tokens Studio in the Plugins panel.
- Launch Tokens Studio using 'New Empty File' since no tokens have been defined yet.
- Connect your repository to Tokens Studio. First, generate and copy a new Personal Access Token in Github. You can use either Tokens (Classic) or 'Fine-grained tokens'. Next, use the copied token to add GitHub as a Sync Provider. Click the 'Settings tab' in Tokens Studio and in the 'Add new menu', select GitHub. Use the Personal Token that you copied to authenticate yourself and to connect your cloned B01LER repository.
- If the entered credential are correct you will be asked to Pull from git. Please accept this dialog. The tokens tab should now contain all tokens sets of B01LER available.
Please refer to the 'Getting Started' section in our Figma file (the link to the Figma file above is exclusively for members of the Accenture organization, while those outside the organization can download the file here) for more detailed instructions on how to set up the library, configure Figma Tokens Studio and customize the project assets to meet your requirements.
The 'Getting Started' section also explains the logic behind our token names and enable you to find and change the right tokens when rebranding B01LER or when you want to extend or change some functionality of a component.
After you setup the project, you can start implementing your desired icons. B01LER comes with a set of predefined icons in the variety of sizes: small, extra small, extra extra small, medium (default), large, extra large. All the default icons can be seen in our Storybook.
In the project you will find 2 folders containing icons. One of them represents an input folder and the other one - output after compiling.
└── packages
└── icons // Icon configuration files and a collection of icon files in svg format
└── icon-set // Input folder for the icons
└── icons-optimized // Output folder (after building icons)
To properly compile icons inside the B01LER project you need to follow a naming convention for them, as an example:
icon_name_md.svg
. In this case we are looking at a medium sized icon ..._md.svg
(each icon has multiple size
variations: xxs, xs, sm, md, lg, xl). After you compile your Icons Set, every icon's name will be converted to
blrIconName
and you will be referencing them by this name in your project.
For the new icons to work properly, you should add each of your icons in all size variations. Follow these steps to add your first icon:
Note: B01LER only supports icons in black and white.
- Navigate to
/icon-set
folder, paste your icon here (with all according resolutions) and run:$ yarn compile:icons
- To check that your icon has been added run your project locally and inspect the Icons tab:
$ yarn start:storybook
It is also possible to just change existing icon file without renaming it.
- Navigate to
/icon-set
folder - Pick and open an icon you want to replace. For example:
packages/icons/icon-set/Book_md.svg
- Replace the
<svg>
and<path>
tags with yours - Compile and run your project locally with:
$ yarn start:storybook
- If now you navigate to the local Storybook and inspect Icons tab, you will see that the icon
blrBook
is updated
Note: Remember that every icon has multiple files with different icon sizes. You need to replace all of them with new icons in respective sizes.
Some of the components have the default icons connected to them (you can see the full list of these components in Removing Icons section), but it is possible to change them.
We will take packages/ui-library/src/components/checkbox
component as an example in this case. If you open this folder
and navigate to index.stories.ts
file, inside you will be able to see the default parameters for this component.
const defaultParams: BlrCheckboxType = {
...
size: 'md',
checked: false,
checkedIcon: 'blrCheckmark', // the default icon is set to 'blrCheckmark'
...
};
To change the default icon you simply need to replace the value of checkedIcon
with the name of the icon you want. For
example:
const defaultParams: BlrCheckboxType ={
...
checkedIcon: 'blr360',
...
};
To check that changes have applied do the following:
- Run you project locally with:
$ yarn start:storybook
- Navigate to the Checkbox tab in your local Storybook
- Check the checkbox
Removing is slightly more difficult than adding, because there are multiple components which are using some of the icons by default. You can see the full list of these components below:
- Button Icon
- Button Text
- Checkbox
- Form Caption
- Icon
- Input Field Number
- Input Field Text
- Select
- TabBar
- Toggle Switch
Note: If you use any of those components, make sure that you either haven't removed the icons they use from the project, or replaced missing icons with yours.
To remove any icon, simply navigate to /icon-set
folder, delete icons you don't need in all resolutions and run:
$ yarn compile:icons
Learn about our testing approach here.
Note: Each command must be run from the root directory of the project
The B01LER UI Library can be built using the following command:
$ yarn build:ui-library
B01LER can also be built with Storybook bundled alongside it which provides you with a sandbox to experiment with our components:
$ yarn build:storybook
B01LER comes with an example vanilla JS application to demonstrate how easy it is to use components in your app. To build this example app, run the following command:
$ yarn build:js-example
In the generated dist
folder, the generated index.html
file can be opened in the browser to preview our components.
Learn about our approach to deployment in our deployment documentation.
Note: This is not filled out yet! ...
For a detailed documentation on how to contribute to the B01LER project, have a look at our contribution documentation.
New members of the B01LER Core Team, should also have a look at our get started documentation.
This project is licensed under the MIT license.
The B01LER is using the Contributor Covenant Code of Conduct.