Home

Awesome

<img src="https://upload.wikimedia.org/wikipedia/commons/thumb/0/05/Flag_of_Brazil.svg/125px-Flag_of_Brazil.svg.png" height="32px" width="auto" /> 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