The first beta version for PrestaShop 1.7 is approaching quickly, so we have started to work on the new 1.7 default theme, currently named “He who must be named” — tentatively named “classic” for now, for lack of a better name :) It is based on the Starter Theme that we’ve been telling you about here on Build — what best way to test what we’ve been working on for a while?
We have decided to work on a dedicated branch on the main PrestaShop GitHub repository. This branch is frequently rebased (or ‘updated’, if you will) on the
feat/starter-theme branch, which is then itself rebased on the main
develop branch — where all the 1.7 fun happens. This way, we get all the evolutions without disturbing the other projects.
The project team is composed of Léa (UI/UX), Jessica (UI/UX), Nicolas (Front-End Developer), Ivan (Front-End Developer), François-Marie (Product Manager) and myself (coordinating with the Starter Theme team).
Let’s talk about technic
In the new Prestashop 1.7 default theme, we will minify all the media files by compiling them into one single file per media type:
In order to do that, we are using webpack, a module bundler, working with Node.js.
It prevents us from making too many HTTP(S) requests to the webserver to load all the assets when you access to the website.
The default theme includes the Bootstrap 4 framework, and uses Sass in association with Bourbon to generate all the CSS assets. Bourbon eases the front-end developer’s life by providing some helpers to automatically generate all the prefixes needed by the browsers.
An example is better than a long speech:
Also, we have decided to structure our CSS-naming according to the rscss guidelines. Here are some of its recommandations:
- The CSS content should be thought in components: each piece of UI is an individual CSS component.
- Components will be named with at least two words, separated by a dash (
- Prefer to use the > child selector whenever possible (
dropup > .btn > .caret,
.table-active > th)
- Helpers must be prefixed by an underscore (
Those are just a few examples, we invite you to read more here.
What about compatibility?
Of course, we will support all the modern browsers, and we will be IE9+ compliant.
What about UI/UX?
The main guideline we wanted to follow when we designed the default theme is that it must be easily adapted to any kind of products sold on the website. We chose to make something visually lighter than usual, so that the real stars of the shop will be the products!
To help our front-ends developers, our designers have made a style guide. It allows us to ensure a graphical consistency in the new default theme.
Here is a preview of the style guide for the new default theme:
Now, I’m sure you want to see what this new default theme looks like Here it is!
The new default theme is still a work in progress — and the Starter Theme is being fine-tuned throughout its development. Both will be released in beta at the same time that PrestaShop 1.7 beta version. Soon, then!
We want this to be a community effort! All your comments and feedbacks are welcome, and we will be glad to hear them. Come talk to us on the Gitter channel, and if you have a good idea for the Starter Theme or the default theme, don’t hesitate to make a PR on their respective GitHub repository!