Frontsize is not a set of widgets ready to be used in your website, it's a set of mixins and functions to build BEM widgets, it's a tool to generate your sets.
- It's BEM ready
- It's build to work with multiple themes in the same project
- It's born to be flexible and customization oriented
- It's covered by tests
The project was originally developed in LESS, now only the SASS version is mantained.
- Folder
widgets
is renamed toblocks
necause of frontsize's BEM based nature
- Adds
$invalidate-cache
var to lettheme
functions for background images generates also a random unique id
- Fix
vertical-gradient
mixin
- Adds
$frontsize-release-infos
to theme config - Removes
a-pollo
module from node dependencies
npm install --save frontsize
yarn add frontsize
Run this command inside frontsize module:
cd node_modules/frontsize && npm run styleguideServe
This will open a browser window with the documented code.
Once you have downloaded it, copy your theme to the project front-end development folder:
cp -r node_modules/frontsize/themes frontend/frontsize
Then change core references to let it point to module folder:
In frontend/frontsize/_config/import.scss
file:
@import '../../node_modules/frontsize/core/import';
Now the core can be easily upgraded with npm update frontsize-sass --save
when a new release is available.
To test frontsize:
npm install && npm run test
Created by Vittorio Vittori and Alessandro Minoccheri @ ideato srl