# babel-plugin-polished

> Compile away polished helpers

Latest version **1.1.0** (published 2017-05-31) · MIT license · 0 weekly downloads

## Install

```sh
npm install babel-plugin-polished
pnpm add babel-plugin-polished
yarn add babel-plugin-polished
bun add babel-plugin-polished
```

## 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 | 1.1.0 |
| Published | 2017-05-31 |
| First published | 2017-03-28 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 1 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 137 |
| Author | James Kyle |
| Maintainers | thejameskyle |
| Keywords | polished, styled, components, babel-plugin |

## Links

- npm: https://www.npmjs.com/package/babel-plugin-polished
- Repository: https://github.com/styled-components/babel-plugin-polished
- Homepage: https://github.com/styled-components/babel-plugin-polished#readme
- Issues: https://github.com/styled-components/babel-plugin-polished/issues
- npm.io page: https://npm.io/package/babel-plugin-polished

## Dependencies (1)

- [polished](https://npm.io/package/polished.md) ^1.0.0

## Alternatives

- [@openai/codex-sdk](https://npm.io/package/@openai/codex-sdk.md) — 731.4K weekly downloads
- [babel-plugin-transform-react-jsx](https://npm.io/package/babel-plugin-transform-react-jsx.md) — 565.0K weekly downloads
- [babel-helper-remove-or-void](https://npm.io/package/babel-helper-remove-or-void.md) — 508.5K weekly downloads
- [@pnpm/store-controller-types](https://npm.io/package/@pnpm/store-controller-types.md) — 186.9K weekly downloads
- [react-native-signature-canvas](https://npm.io/package/react-native-signature-canvas.md) — 155.6K weekly downloads

## Recent versions

- 1.1.0 (latest) — 2017-05-31
- 1.0.3 — 2017-03-30
- 1.0.2 — 2017-03-28
- 1.0.1 — 2017-03-28
- 1.0.0 — 2017-03-28

## README

# babel-plugin-polished

Compile away [polished](https://polished.js.org/) helpers.

## Example

**In**

```js
import * as polished from 'polished';

let value = polished.clearFix();
```

**Out**

```js
let value = {
  '&::after': {
    clear: 'both',
    content: '',
    display: 'table'
  }
};
```

## Installation

```sh
$ npm install babel-plugin-polished
```

## Usage

### Via `.babelrc` (Recommended)

**.babelrc**

```json
{
  "plugins": ["polished"]
}
```

### Via CLI

```sh
$ babel --plugins polished script.js
```

### Via Node API

```javascript
require("babel-core").transform("code", {
  plugins: ["polished"]
});
```

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