Postcss Alias Save

PostCSS plugin that allows you to create aliases for CSS properties

Project README

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

Open Source Agenda is not affiliated with "Postcss Alias" Project. README Source: madeleineostoja/postcss-alias
Stars
48
Open Issues
3
Last Commit
1 year ago

Open Source Agenda Badge

Open Source Agenda Rating