# stylecow-plugin-extend

> Stylecow plugin to work with @extend at-rules

Latest version **2.0.0** (published 2015-09-17) · MIT license · 0 weekly downloads

## Install

```sh
npm install stylecow-plugin-extend
pnpm add stylecow-plugin-extend
yarn add stylecow-plugin-extend
bun add stylecow-plugin-extend
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 2.0.0 |
| Published | 2015-09-17 |
| First published | 2015-05-13 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Node | >=4.0 |
| Dependencies | 0 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | Oscar Otero |
| Maintainers | oscarotero |

## Links

- npm: https://www.npmjs.com/package/stylecow-plugin-extend
- Repository: https://github.com/stylecow/stylecow-plugin-extend
- Issues: https://github.com/stylecow/stylecow-plugin-extend/issues
- npm.io page: https://npm.io/package/stylecow-plugin-extend

## Recent versions

- 2.0.0 (latest) — 2015-09-17
- 1.2.1 — 2015-07-28
- 1.2.0 — 2015-06-19
- 1.1.2 — 2015-06-10
- 1.1.1 — 2015-06-04
- 1.1.0 — 2015-06-03
- 1.0.2 — 2015-05-21
- 1.0.1 — 2015-05-20
- 1.0.0 — 2015-05-13

## README

stylecow plugin extend
======================

[![Build Status](https://travis-ci.org/stylecow/stylecow-plugin-extend.svg)](https://travis-ci.org/stylecow/stylecow-plugin-extend)

Stylecow plugin to work with @extend using the [syntax proposed by Tab Atkins](http://tabatkins.github.io/specs/css-extend-rule/#placeholder-selector).

```css
%button {
	display: inline-block;
	padding: 1em;
}

%big-button {
	@extend %button;
	font-size: 2em;
}

%red-big-button {
	@extend %big-button;
	color: red;
}

.button {
	@extend %button;
}

.big-button {
	@extend %big-button;
}

.red-big-button {
	@extend %red-big-button;
}

.red-big-button-rounded {
	@extend %red-big-button;
	border-radius: 8px;
}
```

And stylecow converts to:

```css
.red-big-button, .red-big-button-rounded, .big-button, .button {
	display: inline-block;
	padding: 1em;
}
.red-big-button, .red-big-button-rounded, .big-button {
	font-size: 2em;
}
.red-big-button, .red-big-button-rounded {
	color: red;
}
.red-big-button-rounded {
	border-radius: 8px;
}
```

More demos in [the tests folder](https://github.com/stylecow/stylecow-plugin-extend/tree/master/tests/cases)

---
_Source: https://npm.io/package/stylecow-plugin-extend · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
