cjcenizal/flexbox-patterns

Patterns for using flexbox CSS to build awesome UI components.

CSS

2,445

23 commits

updated Jan 11, 2017

See the code

README

Flexbox Patterns

This repository contains the original CSS used for the components at www.flexboxpatterns.com. Feel free to use these styles however you like!

Getting started

Assuming you have Node installed, you can install the project dependencies with npm install. This will install PostCSS and Autoprefixer; two critical tools for making your CSS cross-browser compatible.

Commands

npm run build

This command will concatenate the source CSS files into a single CSS file, and then use PostCSS to add various vendor-prefixed properties. Open up dist/index.html to see a demo page of the various flexbox patterns in the browser.

Things to keep in mind

I don't recommend copy-pasting these examples directly into production code. I'm only trying to demonstrate different ways of using flexbox through these examples, so they may not incorporate some accessibility best practices (such as using semantic HTML5 elements and the role attribute). Before using this code in production you should make sure it meets your accessibility needs.

cjcenizal/flexbox-patterns

Patterns for using flexbox CSS to build awesome UI components.

CSS

2,445

23 commits

updated Jan 11, 2017

See the code

README

Flexbox Patterns

This repository contains the original CSS used for the components at www.flexboxpatterns.com. Feel free to use these styles however you like!

Getting started

Assuming you have Node installed, you can install the project dependencies with npm install. This will install PostCSS and Autoprefixer; two critical tools for making your CSS cross-browser compatible.

Commands

npm run build

This command will concatenate the source CSS files into a single CSS file, and then use PostCSS to add various vendor-prefixed properties. Open up dist/index.html to see a demo page of the various flexbox patterns in the browser.

Things to keep in mind

I don't recommend copy-pasting these examples directly into production code. I'm only trying to demonstrate different ways of using flexbox through these examples, so they may not incorporate some accessibility best practices (such as using semantic HTML5 elements and the role attribute). Before using this code in production you should make sure it meets your accessibility needs.

Project health

Overall

1.5/10

Maintained

0/10

Code review

0/10
OpenSSF Scorecard

Latest release

0.3.0 · Jan 21, 2018

Releases this year

0

Significant stargazers

Henry

5,350 followers · starred Apr 2016

Dmitry Maganov

50 followers · starred Apr 2016

Austin Cherry

170 followers · starred Apr 2016

Colby Fayock

1,833 followers · starred Jul 2016