/postcss-german-stylesheets

PostCSS plugin for writing German Style Sheets

Primary LanguageJavaScriptMIT LicenseMIT

postcss-german-stylesheets

travis deps devDeps npm

PostCSS plugin for writing German Style Sheets.

Ever wanted writing your CSS in German or your English is too broken? postcss-german-stylesheets lets you write your CSS in German! With PostCSS it (nearly) doesn't matter in which environment you're developing.

Installation

$ npm install --save-dev postcss-german-stylesheets

Usage

// dependencies
var fs = require("fs")
var postcss = require("postcss")
var germanStylesheets = require("postcss-german-stylesheets")

// css to be processed
var css = fs.readFileSync("input.css", "utf8")

// process css using postcss-german-stylesheets
var output = postcss()
  .use(germanStylesheets())
  .process(css)
  .css

See PostCSS docs for examples for your environment.

Example

Using this input.css:

.foo {
    höhe: 300px;
    außenabstand-unten: 10px;
    schrift-größe: 20px !wichtig;
    hintergrund-farbe: schwarz;
    farbe: weiß;
}

you will get:

.foo {
    height: 300px;
    margin-bottom: 10px;
    font-size: 20px !important;
    background-color: black;
    color: white;
}

Checkout index.js for all available properties and values.

Contributing

postcss-german-stylesheets is still in development and needs your help to add more awesome German properties and values. See CONTRIBUTING.md.

Changelog

See CHANGELOG.md.

License

See LICENSE.