postcss-plugin-merge-border-radius

A PostCSS plugin that collapses long-hand border-radius properties.

Installing & Usage

npm install --save-dev postcss-plugin-merge-border-radius

Then follow the PostCSS instructions for installing plugins.

Examples

Input:

.some-class {
  border-top-left-radius: 10px;
  border-top-right-radius: 10px;
  border-bottom-right-radius: 10px;
  border-bottom-left-radius: 10px;
}

Output:

.some-class {
  border-radius: 10px;
}