postcss-brazilian-portuguese-stylesheets
0.1.0 • Public • Published PostCSS Brazilian Portuguese Stylesheets
PostCSS plugin for writing CSS in Portuguese
Write your CSS in portuguese!
Installation
$ npm install postcss-brazilian-portuguese-stylesheet
Usage
Add PostCSS in your project:
$ npm install postcss --save-dev
In your script:
const fs = require('fs');
const postcss = require('postcss');
const brazilianStyleSheets = require('postcss-brazilian-portuguese-stylesheet')
var css = fs.readFileSync('./path/to/file.css', 'utf8');
postcss(brazilianStyleSheets)
.process(css)
.then(result =>{
fs.writeFileSync('./path/to/output.css', result.css);
});
Example
Brazilian Stylesheet:
div {
margem: 0 automatico;
largura: 300px;
altura: 300px;
imagemFundo: url('path/to/image.jpg') naoRepetir;
}
CSS Output:
div {
margin: 0 auto;
width:300px;
height:300px;
background-image: url('path/to/image.jpg') no-repeat;
}
Changelog
See CHANGELOG
License
© MIT
Package Sidebar
Install
npm i postcss-brazilian-portuguese-stylesheets
Weekly Downloads