You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
> **Note:** This project is in early development, and versioning is a little different. [Read this](http://markup.im/#q4_cRZ1Q) for more details.
11
-
8
+
A standard plugin pack for postcss
12
9
13
10
### Installation
14
11
15
12
`npm install spike-css-standards -S`
16
13
17
-
> **Note:** This project is compatible with node v6+ only
18
-
19
14
### Usage
20
15
21
16
This is nothing more than a light wrapper around a postcss configuration object. Options are filtered into their appropriate plugins internally. All are optional.
-[postcss-calc](https://github.com/postcss/postcss-calc), reduces calc expression where possible
39
+
-[postcss-color-function](https://github.com/postcss/postcss-color-function), polyfill for [color-mod function](https://drafts.csswg.org/css-color/#modifying-colors)
40
+
-[postcss-color-gray](https://github.com/postcss/postcss-color-gray), polyfill for [gray function](https://drafts.csswg.org/css-color/#grays)
41
+
-[postcss-color-hex-alpha](https://github.com/postcss/postcss-color-hex-alpha), polyfill for [rgba hex notations](https://github.com/postcss/postcss-color-hex-alpha)
42
+
-[postcss-color-hsl](https://github.com/dmarchena/postcss-color-hsl), polyfill for [new hsl syntax](https://drafts.csswg.org/css-color/#the-hsl-notation)
43
+
-[postcss-color-hwb](https://github.com/postcss/postcss-color-hwb), polyfill for [hue whiteness blackness function](https://drafts.csswg.org/css-color/#the-hwb-notation)
44
+
-[postcss-color-rebeccapurple](https://github.com/postcss/postcss-color-rebeccapurple), polyfill for [rebeccapurple color](https://drafts.csswg.org/css-color/#valdef-color-rebeccapurple)
45
+
-[postcss-color-rgb](https://github.com/dmarchena/postcss-color-rgb), polyfill for [css module level 4 rgb function](https://drafts.csswg.org/css-color/#funcdef-rgb)
46
+
-[postcss-custom-media](https://github.com/postcss/postcss-custom-media), polyfill for [custom media queries](https://drafts.csswg.org/mediaqueries-5/#custom-mq)
47
+
-[postcss-custom-properties](https://github.com/postcss/postcss-custom-properties), polyfill for [css variables](https://www.w3.org/TR/css-variables/)
48
+
-[postcss-custom-selectors](https://github.com/postcss/postcss-custom-selectors), polyfill for [custom selectors](https://drafts.csswg.org/css-extensions/#custom-selectors)
-[postcss-font-variant](https://drafts.csswg.org/css-fonts-4/#system-ui-def), polyfill for generic [system-ui](https://github.com/JLHwung/postcss-font-family-system-ui) font definition
51
+
-[postcss-image-set-polyfill](https://github.com/SuperOl3g/postcss-image-set-polyfill), polyfills [image-set](https://drafts.csswg.org/css-images-3/#image-set-notation) for resolution detection
52
+
-[postcss-media-minmax](https://github.com/postcss/postcss-media-minmax), nice syntax sugar for media queries from [media queries level 4 spec](https://drafts.csswg.org/mediaqueries/#mq-range-context)
53
+
-[postcss-nesting](https://github.com/jonathantneal/postcss-nesting), polyfill for [css nesting module level 3](http://tabatkins.github.io/specs/css-nesting/)
-[cssnano](http://cssnano.co/), minifies css, toggled with the `minify` option which is false by default
43
58
44
59
Any of these plugins can be customized by passing the [options](#options) described below. You can also add additional postCSS plugins (like the popular [`lost`](https://github.com/peterramsing/lost) grid, for example) on top of this package:
45
60
@@ -57,10 +72,30 @@ css.plugins.push(lost())
57
72
| ---- | ----------- | ------- |
58
73
|**root**| Root used to resolve `path`(s) from ||
59
74
|**path**| A path to a folder or an array of paths, telling postcss-import where to look for sss or css files to `@import`. ||
60
-
|**browsers**| Browser support provided to [autoprefixer](http://cssnext.io/usage/#browsers)|`> 1%, last 2 versions, Firefox ESR`|
61
-
|**features**| Enable or disable [cssnext features](http://cssnext.io/usage/#features)||
62
-
|**warnForDuplicates**| Enable or disable [cssnext duplicate warnings](http://cssnext.io/usage/#warnforduplicates)|`true`|
63
75
|**rucksack**| Options passed directly to [rucksack](http://simplaio.github.io/rucksack/docs/#options)||
76
+
|**postcssImport**| Options passed to [postcss-import](https://github.com/postcss/postcss-import)||
77
+
|**autoprefixer**| Options passed to [autoprefixer](https://github.com/postcss/autoprefixer)||
78
+
|**attributeCaseInsensitive**| Options passed to [postcss-attribute-case-insensitive](https://github.com/Semigradsky/postcss-attribute-case-insensitive)||
79
+
|**calc**| Options passed to [postcss-calc](https://github.com/postcss/postcss-calc)||
80
+
|**colorFunction**| Options passed to [postcss-color-function](https://github.com/postcss/postcss-color-function)||
81
+
|**colorGray**| Options passed to [postcss-color-gray](https://github.com/postcss/postcss-color-gray)||
82
+
|**colorHexAlpha**| Options passed to [postcss-color-hex-alpha](https://github.com/postcss/postcss-color-hex-alpha)||
83
+
|**colorHsl**| Options passed to [postcss-color-hsl](https://github.com/dmarchena/postcss-color-hsl)||
84
+
|**colorHwb**| Options passed to [postcss-color-hwb](https://github.com/postcss/postcss-color-hwb)||
85
+
|**colorRebeccapurple**| Options passed to [postcss-color-rebeccapurple](https://github.com/postcss/postcss-color-rebeccapurple)||
86
+
|**colorRgb**| Options passed to [postcss-color-rgb](https://github.com/dmarchena/postcss-color-rgb)||
87
+
|**customMedia**| Options passed to [postcss-custom-media](https://github.com/postcss/postcss-custom-media)||
88
+
|**customProperties**| Options passed to [postcss-custom-properties](https://github.com/postcss/postcss-custom-properties)||
89
+
|**customSelectors**| Options passed to [postcss-custom-selectors](https://github.com/postcss/postcss-custom-selectors)||
90
+
|**fontFamilySystemUi**| Options passed to [postcss-font-family-system-ui](https://github.com/JLHwung/postcss-font-family-system-ui)||
91
+
|**fontVariant**| Options passed to [postcss-font-variant](https://drafts.csswg.org/css-fonts-4/#system-ui-def)||
92
+
|**imageSet**| Options passed to [postcss-image-set-polyfill](https://github.com/SuperOl3g/postcss-image-set-polyfill)||
93
+
|**mediaQueriesRange**| Options passed to [postcss-media-minmax](https://github.com/postcss/postcss-media-minmax)||
94
+
|**nesting**| Options passed to [postcss-nesting](https://github.com/jonathantneal/postcss-nesting)||
95
+
|**pseudoClassAnyLink**| Options passed to [postcss-pseudo-class-any-link](https://github.com/jonathantneal/postcss-pseudo-class-any-link)||
96
+
|**pseudoClassMatches**| Options passed to [postcss-selector-matches](https://github.com/postcss/postcss-selector-matches)||
97
+
|**pseudoClassNot**| Options passed to [postcss-selector-not](https://github.com/postcss/postcss-selector-not)||
98
+
|**cssnano**| Options passed to [cssnano](http://cssnano.co/)||
64
99
|**parser**| custom css parser if desired. pass `false` to use the default css parser |`sugarss`|
65
100
|**minify**| Minifies the css output by removing excess spaces and line breaks |`false`|
66
101
|**appendPlugins**| Adds a single plugin or array of plugins after all the defaults ||
0 commit comments