Skip to content

Latest commit

 

History

History
48 lines (30 loc) · 937 Bytes

README.md

File metadata and controls

48 lines (30 loc) · 937 Bytes

Neomad's Styleguide

Installation

npm install

To build css for prod npm run build

To build a preview for test npm run watch

Built with postcss.

Builds are in ./content/dist/

Linter

Linter is propulse by stylehint.io

To run the linter npm run linter

To change CSS rule, change postcss.linter.json

Support

To see which support is provide in prod: Use npx autoprefixer --info in project root.

Change staging process according cssdb.org

Organizing CSS properties

To keep every CSS declaration readable, let's follow some rules:

  • put spaces at the proper spaces:
.my-class {
  property: value;
}
  • follow the order:
    • Display values (for Flexbox, add children properties after)
    • Positionning value
    • Box values (width, height, margin, padding, border)