Notice: You are browsing the documentation for PrestaShop 9, which is currently in development.
You might want to look at the current version, PrestaShop 8. Read the current version of the documentation
The UIKit is a project extending Bootstrap 4 in order to provide some components with PrestaShop’s colors. You can see every component on this page.
We use it by adding it into our npm dependency, and then you’ve multiple possibilities to use it.
@import "~prestakit/dist/css/bootstrap-prestashop-ui-kit";
@import "~prestakit/scss/application";
Some components are not provided from Bootstrap, they have been done for our own use, here is a list of them:
It’s mainly used on migrated pages, legacy pages rely on Bootstrap 3 and use the UI Kit only to expose CSS variables throughout the BO. The UI Kit can also be used inside modules, even if they are on legacy pages, by overriding styles within their specific markup.
You can contribute to UIKit on its own repository but keep in mind that your changes won’t be effective until we provide a new release on npm and your changes won’t be effective on the PrestaShop project until we update the dependency inside the new-theme directory.