Use flexbox in your HTML as part of the layout.
- Customizable breakpoints
- Layout in the HTML
- Quick sketching
FlexProperties enables you to create layouts as quickly as you can sketch a wireframe.
Check out the FlexProperties playground
npm install flexproperties -D
yarn add flexproperties
There are some built files in
dist/ one that has the vendor prefixes and one that isn't.
Can you build it for me?
FlexProperties consists of many different settings that define features, breakpoints and file-size. There is a build tool in progress.
If you are not satisfied with the default setup, feel free to change the variables before importing FlexProperties. Default setup:
// Sets breakpoints;// Sets features to use, available globally;// Features for each breakpoint;;// Defines grid percentages// 100/5 = 20 steps (5,10,15,20,25, etc)// 100/10 = 10 steps (10,20,30, etc)// available values: (1,2,5,10,20,25,50);
With webpack, you can import the file using
Of course you still have to define your config.
Reviving the once popular angular material grid property framework.
As demonstrated on their official website. Since flexbox, this is the greatest grid framework/library that I have found so far. Every other flexbox grid framework lacks very fundamental usage features.
Currently, I'm looking to improve on the code output (smart selectors) I created a codepen to showcase all different layout-align scenarios with the reduced code.
Can I use it in production?
Yes! Flexbox is safe to use for IE10 and upwards.
See some real websites using flexproperties:
I'm creating an online build tool, that lets you interactively choose features you want for your own breakpoints. Flexgrid outputs a lot of rules (see comparison below). Sometimes, you won't need
flex-offset for every breakpoint. While the SASS file is already very powerful to do that, a tool has to be created for that.
The original Source Code belongs to Angular licensed as MIT They had flexbox as html properties in their original angular material package. However, they do not provide a customizable or standalone version.
Since then, I heavily optimized and adapted flex-grid to serve as general purpose layout library. It is almost a complete rewrite.