Repository navigation

#

PostCSS

Created by Andrey Sitnik, Ben Briggs, Bogdan Chadkin

发布于 November 4, 2013

postcss
postcss.org
维基百科

相关主题

SassLessParsing

PostCSS is a tool for transforming CSS with JavaScript. It can be used to develop a template language such as Sass and LESS. The PostCSS core consists of:

  • CSS parser that generates an abstract syntax tree
  • Set of classes that comprises the tree
  • CSS generator that generates a CSS line for the object tree
  • Code map generator for the CSS changes made#

There are official tools making it possible to use PostCSS with build systems such as Webpack, Gulp, and Grunt. There is also a console interface available. Browserify or Webpack can be used to open PostCSS in a browser.

The complete plugin list can be found on postcss.parts, with some examples listed below.

  • Autoprefixer to add and clear browser prefixes.
  • CSS Modules to get CSS selectors isolated and code organized. It is supplied as part of Webpack.
  • stylelint to analyze CSS code for mistakes and check style consistency.
  • stylefmt fixes the CSS code according to the stylelint settings.
  • PreCSS to perform some Sass/Less preprocessing functions.
  • postcss-preset-env to emulate features from unfinished CSS specification drafts.
  • cssnano to make CSS smaller in size by getting rid of the spaces and rewriting the code.
  • RTLCSS to change CSS code so that the design should be suitable for right-to-left writing (such is applied in Arabic and Hebrew).
  • postcss-assets, postcss-inline-svg and postcss-sprites to work with graphics.
tailwindlabs/tailwindcss

A utility-first CSS framework for rapid UI development.

TypeScript
87241
8 小时前
postcss/postcss

Transforming styles with JS plugins

TypeScript
28749
7 天前

😎 Awesome things related to Tailwind CSS

14109
2 个月前
stylelint/stylelint

A mighty CSS linter that helps you avoid errors and enforce conventions.

JavaScript
11222
4 天前
JavaScript
9427
10 个月前
TypeScript
7909
15 天前

A web tool to explore the ASTs generated by various parsers.

JavaScript
6340
1 年前

`postcss-cssnext` has been deprecated in favor of `postcss-preset-env`.

JavaScript
5292
10 个月前

⚡A zero-config bundler for JavaScript applications.

JavaScript
5218
3 年前

A modular minifier, built on top of the PostCSS ecosystem.

CSS
4848
11 天前
peterramsing/lost

LostGrid is a powerful grid system built in PostCSS that works with any preprocessor and even vanilla CSS.

JavaScript
4490
1 年前

Style tools for UI components

HTML
3804
3 年前
twbs/rfs
CSS
3353
8 个月前

A plugin for PostCSS that generates viewport units (vw, vh, vmin, vmax) from pixel units. The best choice to create a scalable interface on different displays by one design size.

JavaScript
3132
10 个月前

📦 Configure webpack using functional feature blocks.

JavaScript
2976
6 个月前

A lightweight, scalable, mobile-first CSS framework

CSS
2332
8 年前

A simple but powerful API for processing & compiling assets built around Webpack

JavaScript
2234
10 天前

Convert pixel units to rem (root em) units using PostCSS

JavaScript
2113
1 年前