GitHub 中文社区
回车: Github搜索    Shift+回车: Google搜索
论坛
排行榜
趋势
登录

©2025 GitHub中文社区论坛GitHub官网网站地图GitHub官方翻译

  • X iconGitHub on X
  • Facebook iconGitHub on Facebook
  • Linkedin iconGitHub on LinkedIn
  • YouTube iconGitHub on YouTube
  • Twitch iconGitHub on Twitch
  • TikTok iconGitHub on TikTok
  • GitHub markGitHub’s organization on GitHub
集合主题趋势排行榜
#

PostCSS

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.

Created by Andrey Sitnik, Ben Briggs, Bogdan Chadkin

发布于 November 4, 2013

Repository
postcss
Website
postcss.org
Wikipedia
维基百科

相关主题

SassLessParsing
tailwindlabs/tailwindcss
https://static.github-zh.com/github_avatars/tailwindlabs?size=40
tailwindlabs / tailwindcss

#UI框架#一个utility-first的CSS框架

Tailwind CSSCSSCSS 框架PostCSSfunctional-cssutility-classesresponsive
TypeScript 88.41 k
6 小时前
saadeghi/daisyui
https://static.github-zh.com/github_avatars/saadeghi?size=40
saadeghi / daisyui

#React UI#流行,免费的Tailwind CSS 组件

Tailwind CSSui-library系统设计ui-patternui-frameworkcss-componentsCSS 框架ui-kitUser interface designdesign-patterndesign-systemsCSSPostCSScomponentcomponentscomponent-librarydaisyuiSvelte
Svelte 37.23 k
9 天前
postcss/postcss
https://static.github-zh.com/github_avatars/postcss?size=40
postcss / postcss

Transforming styles with JS plugins

PostCSSCSSParserParsing框架
TypeScript 28.79 k
4 天前
https://static.github-zh.com/github_avatars/aniftyco?size=40
aniftyco / awesome-tailwindcss

#Awesome#😎 Awesome things related to Tailwind CSS

Tailwind CSSAwesome ListsCSSPostCSSHackathon-Kitappswebsites
14.26 k
16 天前
stylelint/stylelint
https://static.github-zh.com/github_avatars/stylelint?size=40
stylelint / stylelint

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

linterCSSPostCSSlintenforce-conventions
JavaScript 11.27 k
5 天前
https://static.github-zh.com/github_avatars/uncss?size=40
uncss / uncss

Remove unused styles from CSS

uncssJavaScriptPostCSSstylesheetscleanupbuild-toolunusedcssCSS
JavaScript 9.43 k
1 年前
https://static.github-zh.com/github_avatars/FullHuman?size=40
FullHuman / purgecss

Remove unused CSS

CSSwebpack-pluginrollup-pluginPostCSS
TypeScript 7.93 k
14 天前
https://static.github-zh.com/github_avatars/fkling?size=40
fkling / astexplorer

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

ParserParsingjscodeshiftBabelPostCSSJavaScript
JavaScript 6.38 k
1 年前
chakra-ui/panda
https://static.github-zh.com/github_avatars/chakra-ui?size=40
chakra-ui / panda

🐼 Universal, Type-Safe, CSS-in-JS Framework for Product Teams ⚡️

CSSstyled-systemTypeScriptutility-classes系统设计framework-agnosticPostCSSatomic-csscss-in-jsenginejit-compiler编译器design-tokenstheming
TypeScript 5.56 k
2 天前
https://static.github-zh.com/github_avatars/MoOx?size=40
MoOx / postcss-cssnext

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

PostCSSCSScssnextpostcss-pluginsJavaScript
JavaScript 5.29 k
1 年前
https://static.github-zh.com/github_avatars/egoist?size=40
egoist / poi

⚡A zero-config bundler for JavaScript applications.

Webpackbuild-toolbundleVue.jsReactPreact.jsSvelteTypeScriptBabelPostCSS
JavaScript 5.22 k
4 年前
https://static.github-zh.com/github_avatars/cssnano?size=40
cssnano / cssnano

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

PostCSScssnanooptimisationCSSminification
CSS 4.87 k
24 天前
peterramsing/lost
https://static.github-zh.com/github_avatars/peterramsing?size=40
peterramsing / lost

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

gridPostCSSJavaScriptCSS
JavaScript 4.48 k
1 年前
https://static.github-zh.com/github_avatars/suitcss?size=40
suitcss / suit

Style tools for UI components

suit-cssCSSpreprocessorPostCSScss-packages
HTML 3.8 k
3 年前
twbs/rfs
https://static.github-zh.com/github_avatars/twbs?size=40
twbs / rfs

#前端开发#✩ Automates responsive resizing ✩

Sassresponsive字体前端rfsStylus (Disambiguation)PostCSSCSS
CSS 3.35 k
9 个月前
https://static.github-zh.com/github_avatars/evrone?size=40
evrone / postcss-px-to-viewport

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.

PostCSSpixel-unitsviewport-unitsvwvhcss-scalemobile-designMedia Queriesrem-unitstaro
JavaScript 3.14 k
1 年前
https://static.github-zh.com/github_avatars/andywer?size=40
andywer / webpack-blocks

📦 Configure webpack using functional feature blocks.

WebpackBabelPostCSSTypeScript
JavaScript 2.97 k
9 天前
https://static.github-zh.com/github_avatars/mobi-css?size=40
mobi-css / mobi.css

#UI框架#A lightweight, scalable, mobile-first CSS framework

mobi-cssCSS 框架CSSdesign移动mobile-firstflexboxcssnextPostCSS
CSS 2.33 k
8 年前
https://static.github-zh.com/github_avatars/symfony?size=40
symfony / webpack-encore

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

WebpackReactBabelSassLessPostCSSSymfony
JavaScript 2.24 k
2 个月前
https://static.github-zh.com/github_avatars/cuth?size=40
cuth / postcss-pxtorem

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

PostCSSrem-unitspixel-units
JavaScript 2.12 k
1 年前
loading...