2023-08-17 09:47:40 +00:00
|
|
|
|
# PostCSS
|
2022-01-21 08:28:41 +00:00
|
|
|
|
|
|
|
|
|
<img align="right" width="95" height="95"
|
|
|
|
|
alt="Philosopher’s stone, logo of PostCSS"
|
2023-08-17 09:47:40 +00:00
|
|
|
|
src="https://postcss.org/logo.svg">
|
2022-01-21 08:28:41 +00:00
|
|
|
|
|
|
|
|
|
PostCSS is a tool for transforming styles with JS plugins.
|
|
|
|
|
These plugins can lint your CSS, support variables and mixins,
|
|
|
|
|
transpile future CSS syntax, inline images, and more.
|
|
|
|
|
|
|
|
|
|
PostCSS is used by industry leaders including Wikipedia, Twitter, Alibaba,
|
|
|
|
|
and JetBrains. The [Autoprefixer] PostCSS plugin is one of the most popular
|
|
|
|
|
CSS processors.
|
|
|
|
|
|
|
|
|
|
PostCSS takes a CSS file and provides an API to analyze and modify its rules
|
|
|
|
|
(by transforming them into an [Abstract Syntax Tree]).
|
|
|
|
|
This API can then be used by [plugins] to do a lot of useful things,
|
2023-08-17 09:47:40 +00:00
|
|
|
|
e.g., to find errors automatically, or to insert vendor prefixes.
|
2022-01-21 08:28:41 +00:00
|
|
|
|
|
2023-08-17 09:47:40 +00:00
|
|
|
|
**Twitter account:** [@postcss](https://twitter.com/postcss)<br>
|
|
|
|
|
**中文翻译**: [`docs/README-cn.md`](./docs/README-cn.md)
|
2022-01-21 08:28:41 +00:00
|
|
|
|
|
|
|
|
|
For PostCSS commercial support (consulting, improving the front-end culture
|
|
|
|
|
of your company, PostCSS plugins), contact [Evil Martians]
|
2023-08-17 09:47:40 +00:00
|
|
|
|
at <postcss@evilmartians.com>.
|
2022-01-21 08:28:41 +00:00
|
|
|
|
|
|
|
|
|
[Abstract Syntax Tree]: https://en.wikipedia.org/wiki/Abstract_syntax_tree
|
|
|
|
|
[Evil Martians]: https://evilmartians.com/?utm_source=postcss
|
|
|
|
|
[Autoprefixer]: https://github.com/postcss/autoprefixer
|
|
|
|
|
[plugins]: https://github.com/postcss/postcss#plugins
|
|
|
|
|
|
|
|
|
|
<a href="https://evilmartians.com/?utm_source=postcss">
|
|
|
|
|
<img src="https://evilmartians.com/badges/sponsored-by-evil-martians.svg"
|
|
|
|
|
alt="Sponsored by Evil Martians" width="236" height="54">
|
|
|
|
|
</a>
|
|
|
|
|
|
2023-08-17 09:47:40 +00:00
|
|
|
|
|
2022-01-21 08:28:41 +00:00
|
|
|
|
## Docs
|
2023-08-17 09:47:40 +00:00
|
|
|
|
Read full docs **[here](https://postcss.org/)**.
|