postcss-alias
PostCSS plugin that lets you create custom aliases for CSS properties with an @rule
Last updated 11 years ago by seaneking .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ npm install postcss-alias 
SYNC missed versions from official npm registry.

PostCSS Alias

NPM version Build Status Dependency Status

PostCSS plugin that lets you create custom aliases for CSS properties with an @alias rule.

Part of Rucksack - CSS Superpowers.

Input

@alias {
  fs: font-size;
  bg: background;
}

.aliased {
  fs: 16px;
  bg: white;
}

Output

.aliased {
  font-size: 16px;
  background: white;
}

Note: Aliases in property values (eg: transition: bg 200ms) are not supported

Usage

postcss([ require('postcss-alias') ])

See PostCSS docs for examples for your environment.


MIT © Sean King

Current Tags

  • 2.0.0                                ...           latest (9 years ago)

7 Versions

  • 2.0.0                                ...           9 years ago
  • 1.0.0                                ...           10 years ago
  • 0.2.2                                ...           11 years ago
  • 0.2.1                                ...           11 years ago
  • 0.1.2                                ...           11 years ago
  • 0.1.1                                ...           11 years ago
  • 0.1.0                                ...           11 years ago
Maintainers (1)
Downloads
Total 13
Today 0
This Week 0
This Month 10
Last Day 0
Last Week 0
Last Month 3
Dependencies (1)
Dev Dependencies (4)
Dependents (0)
None

© 2010 - cnpmjs.org x YWFE | Home | YWFE