Upgrade to Pro — share decks privately, control downloads, hide ads and more …

Introduction to PostCSS

KMKLabs
March 22, 2016

Introduction to PostCSS

PostCSS adalah sebuah CSS parser tool yang dapat memanipulasi CSS sesuai dengan plugin JavaScript yang digunakan.
PostCSS mudah dipelajari dan memiliki performa yang sangat baik jika dibandingkan dengan tools CSS yang lain. Namun, daya tarik terbesar dari postCSS adalah kebolehan untuk memanipulasi CSS sesuai keinginan kita dengan kemungkinan yang hampir tidak terbatas.

KMKLabs

March 22, 2016
Tweet

More Decks by KMKLabs

Other Decks in Technology

Transcript

  1. Popularity • 1.290.870 downloads in the last November • Used

    by Google, Twitter, Wordpress, Wikipedia, Shopify, Alibaba, etc. source: npm-stat.com
  2. PostCSSis… “PostCSS is a tool for transforming CSS with JS

    plugins. These plugins can support variables andmixins,transpilefutureCSSsyntax,inline images,andmore.” source: github.com/postcss/postcss
  3. PostCSSPlugin • JavaScript function that receives and, usually, transforms a

    CSS AST from the PostCSS parser • What it can do… • Essentially, no limitations onthe kind of manipulation PostCSS plugins can apply to CSS source: github.com/postcss/postcss o behavelikepreprocessors o optimizeandautoprefixcode o fallbacks o addfutureCSSsyntax o code shortcuts,linting,analytics,languageextension,grid,etc.
  4. Benefits • Modular • Performance • Easytodevelop plugins • Virtuallyunlimited

    possibilitiesin manipulatingCSS source: ai.github.io/about-postcss/en