2.1.1 • Published 4 years ago

gatsby-plugin-aphrodite v2.1.1

Weekly downloads
104
License
MIT
Repository
github
Last release
4 years ago

gatsby-plugin-aphrodite

Build Status twitter version MIT License

Provides drop-in support for Aphrodite in Gatsby.

Install

yarn add aphrodite gatsby-plugin-aphrodite

or

npm install --save aphrodite gatsby-plugin-aphrodite

How to use

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

//gatsby-config.js

plugins: ['gatsby-plugin-aphrodite']

then use aphrodite in your component files:

// 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

2.1.1

4 years ago

2.1.0

4 years ago

2.0.5

7 years ago

2.0.4

7 years ago

2.0.3

7 years ago

2.0.2

7 years ago

2.0.1

7 years ago

1.0.9

7 years ago

1.0.8

7 years ago

1.0.7

7 years ago

1.0.6

7 years ago

1.0.5

8 years ago

1.0.4

8 years ago

1.0.3

8 years ago

2.0.0

8 years ago

1.0.2

8 years ago

1.0.1

8 years ago

1.0.0

8 years ago

1.0.0-beta.6

8 years ago

1.0.0-beta.1

8 years ago

1.0.0-alpha.22

8 years ago

1.0.0-alpha17

8 years ago