Installations
npm install precsss
Developer Guide
Typescript
No
Module System
CommonJS
Min. Node Version
>=4.0.0
Node Version
18.12.0
NPM Version
8.19.2
Releases
Contributors
Unable to fetch Contributors
Languages
CSS (57.53%)
JavaScript (42.47%)
Developer
Download Statistics
Total Downloads
10,712
Last Day
34
Last Week
94
Last Month
585
Last Year
9,325
GitHub Statistics
85 Commits
1 Branches
1 Contributors
Package Meta Information
Latest Version
4.0.2
Package Id
precsss@4.0.2
Unpacked Size
13.86 kB
Size
5.02 kB
File Count
5
NPM Version
8.19.2
Node Version
18.12.0
Publised On
01 Feb 2023
Total Downloads
Cumulative downloads
Total Downloads
10,712
Last day
13.3%
34
Compared to previous day
Last week
-54.4%
94
Compared to previous week
Last month
12.9%
585
Compared to previous month
Last year
572.3%
9,325
Compared to previous year
Daily Downloads
Weekly Downloads
Monthly Downloads
Yearly Downloads
!!! This project is a replica of PreCSSS, because PreCSSS is no longer maintained !!!.
PreCSSS ![PostCSS Logo](https://postcss.github.io/postcss/logo.svg)
PreCSSS lets you use Sass-like markup and staged CSS features in CSS.
1$blue: #056ef0; 2$column: 200px; 3 4.menu { 5 width: calc(4 * $column); 6} 7 8.menu_link { 9 background: $blue; 10 width: $column; 11} 12 13/* becomes */ 14 15.menu { 16 width: calc(4 * 200px); 17} 18 19.menu_link { 20 background: #056ef0; 21 width: 200px; 22}
PreCSSS combines Sass-like syntactical sugar — like variables, conditionals, and iterators — with emerging CSS features — like logical and custom properties, media query ranges, and image sets.
Usage
Add PreCSSS to your build tool:
1npm install PreCSSSs --save-dev 2 3or 4 5yarn add -D PreCSSSs
Node
Use PreCSSS to process your CSS:
1import PreCSSS from 'PreCSSS'; 2 3PreCSSS.process(YOUR_CSS);
PostCSS
Add PostCSS to your build tool:
1npm install postcss --save-dev
Use PreCSSS as a plugin:
1import postcss from 'postcss'; 2import PreCSSS from 'PreCSSS'; 3 4postcss([ 5 PreCSSS(/* options */) 6]).process(YOUR_CSS);
Gulp
Add Gulp PostCSS to your build tool:
1npm install gulp-postcss --save-dev
Use PreCSSS in your Gulpfile:
1import postcss from 'gulp-postcss'; 2import PreCSSS from 'PreCSSS'; 3 4gulp.task('css', function () { 5 return gulp.src('./src/*.css').pipe( 6 postcss([ 7 PreCSSS(/* options */) 8 ]) 9 ).pipe( 10 gulp.dest('.') 11 ); 12});
Grunt
Add Grunt PostCSS to your build tool:
1npm install grunt-postcss --save-dev
Use PreCSSS in your Gruntfile:
1import PreCSSS from 'PreCSSS'; 2 3grunt.loadNpmTasks('grunt-postcss'); 4 5grunt.initConfig({ 6 postcss: { 7 options: { 8 use: [ 9 PreCSSS(/* options */) 10 ] 11 }, 12 dist: { 13 src: '*.css' 14 } 15 } 16});
Plugins
PreCSSS is powered by the following plugins (in this order):
![Empty State](/_next/static/media/empty.e5fae2e5.png)
No vulnerabilities found.
![Empty State](/_next/static/media/empty.e5fae2e5.png)
No security vulnerabilities found.