postcss-alias
PostCSS plugin that lets you create custom aliases for CSS properties with an @rule
Last updated 8 years ago by seaneking .
MIT · Repository · Bugs · Original npm
$ cnpm 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 (8 years ago)

3 Versions

  • 0.2.2                                ...           10 years ago
  • 1.0.0                                ...           9 years ago
  • 2.0.0                                ...           8 years ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 0
Dependencies (1)
Dev Dependencies (4)
Dependents (0)
None

Copyright 2013 - present © cnpmjs.org