# gatsby-plugin-aphrodite

> Gatsby plugin to add support for Aphrodite

Latest version **2.1.1** (published 2021-05-03) · MIT license · 0 weekly downloads

> **Deprecated.** This package is deprecated.

## Install

```sh
npm install gatsby-plugin-aphrodite
pnpm add gatsby-plugin-aphrodite
yarn add gatsby-plugin-aphrodite
bun add gatsby-plugin-aphrodite
```

## Health

**Score 10/100 (F)** — status: deprecated.

Negative: deprecated.

## Facts

| | |
|---|---|
| Version | 2.1.1 |
| Published | 2021-05-03 |
| First published | 2017-05-30 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 1 |
| Unpacked size | 8.7 KB |
| Known vulnerabilities | 0 (+1 in 1 direct dependencies) |
| Install scripts | no |
| GitHub stars | 6 |
| Author | Ben Williams |
| Maintainers | 719ben |
| Keywords | gatsby, gatsby-plugin, aphrodite |

## Links

- npm: https://www.npmjs.com/package/gatsby-plugin-aphrodite
- Repository: https://github.com/biw/gatsby-plugin-aphrodite
- Homepage: https://github.com/biw/gatsby-plugin-aphrodite#readme
- Issues: https://github.com/biw/gatsby-plugin-aphrodite/issues
- npm.io page: https://npm.io/package/gatsby-plugin-aphrodite

## Dependencies (1)

- [@babel/runtime](https://npm.io/package/@babel/runtime.md) 7.1.5

## Recent versions

- 2.1.1 (latest) — 2021-05-03
- 1.1.0-alpha.d1544e1b (canary) — 2018-01-25
- 1.0.0-beta.6 (next) — 2017-07-02
- 2.1.0 — 2021-05-03
- 2.0.5 — 2018-11-18
- 2.0.4 — 2018-07-12
- 2.0.3 — 2018-07-12
- 2.0.2 — 2018-07-12
- 2.0.1 — 2018-07-12
- 1.0.9 — 2018-03-07
- 1.0.8 — 2018-02-28
- 1.0.7 — 2018-02-13
- 1.0.6 — 2018-01-23
- 1.1.0-alpha.3f307d61 — 2018-01-21
- 1.1.0-alpha.926cb6da — 2018-01-21
- … 64 more at https://npm.io/package/gatsby-plugin-aphrodite/versions

## README

# gatsby-plugin-aphrodite

[![Build Status][build-badge]][build]
[![twitter][twitter-badge]][twitter]
[![version][version-badge]][package]
[![MIT License][license-badge]][license]

Provides drop-in support for [Aphrodite](https://github.com/Khan/aphrodite) in [Gatsby](https://github.com/gatsbyjs/gatsby).

## Install

```sh
yarn add aphrodite gatsby-plugin-aphrodite
```

or

```sh
npm install --save aphrodite gatsby-plugin-aphrodite
```

## How to use

Add the plugin to the plugins array in your `gatsby-config.js`:

```js
//gatsby-config.js

plugins: ['gatsby-plugin-aphrodite']
```

then use `aphrodite` in your component files:

```js
// SomeComponent.js

import { StyleSheet, css } from 'aphrodite'

const styles = StyleSheet.create({ message: { color: 'red' } })

const SomeComponent = () => (
  <div className={css(styles.message)}>Hello World</div>
)

export default SomeComponent
```

## LICENSE

MIT © [Ben Williams](https://719ben.com)

[build-badge]: https://img.shields.io/circleci/build/github/biw/gatsby-plugin-aphrodite.svg?style=flat-square
[build]: https://travis-ci.org/biw/gatsby-plugin-aphrodite
[version-badge]: https://img.shields.io/npm/v/gatsby-plugin-aphrodite.svg?style=flat-square
[package]: https://www.npmjs.com/package/gatsby-plugin-aphrodite
[license-badge]: https://img.shields.io/npm/l/gatsby-plugin-aphrodite.svg?style=flat-square
[license]: https://github.com/biw/gatsby-plugin-aphrodite/blob/master/LICENSE
[twitter-badge]: https://img.shields.io/twitter/follow/biwills.svg?style=flat-square&logo=twitter&label=Follow
[twitter]: https://twitter.com/biwills

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