postcss-brazilian-portuguese-stylesheets
v0.1.0
Published
PostCSS plugin for writing CSS in Brazilian Portuguese
Downloads
3
Maintainers
Readme
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')
// css to be processed
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