Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/welksonramos/postcss-brazilian-portuguese-stylesheets
:scream: PostCSS plugin for writing CSS in Brazilian Portuguese
https://github.com/welksonramos/postcss-brazilian-portuguese-stylesheets
postcss
Last synced: 2 months ago
JSON representation
:scream: PostCSS plugin for writing CSS in Brazilian Portuguese
- Host: GitHub
- URL: https://github.com/welksonramos/postcss-brazilian-portuguese-stylesheets
- Owner: welksonramos
- License: mit
- Created: 2016-05-17T11:56:22.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2016-05-18T21:20:43.000Z (over 8 years ago)
- Last Synced: 2024-10-02T08:37:58.292Z (4 months ago)
- Topics: postcss
- Language: JavaScript
- Homepage:
- Size: 3.91 KB
- Stars: 11
- Watchers: 2
- Forks: 1
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
# PostCSS Brazilian Portuguese Stylesheets
> [PostCSS](http://postcss.org/) plugin for writing CSS in PortugueseWrite your CSS in portuguese!
## Installation
```bash
$ npm install postcss-brazilian-portuguese-stylesheet
```## Usage
Add [PostCSS](https://github.com/postcss/postcss) in your project:
```js
$ npm install postcss --save-dev
```In your script:
```js
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**_:
```css
div {
margem: 0 automatico;
largura: 300px;
altura: 300px;
imagemFundo: url('path/to/image.jpg') naoRepetir;
}
```
_**CSS Output**_:
```css
div {
margin: 0 auto;
width:300px;
height:300px;
background-image: url('path/to/image.jpg') no-repeat;
}
```
## Changelog
See [CHANGELOG](CHANGELOG.md)## License
© MIT