2.1.1 • Published 3 years ago

gatsby-plugin-aphrodite v2.1.1

Weekly downloads
104
License
MIT
Repository
github
Last release
3 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

3 years ago

2.1.0

3 years ago

2.0.5

5 years ago

2.0.4

6 years ago

2.0.3

6 years ago

2.0.2

6 years ago

2.0.1

6 years ago

1.0.9

6 years ago

1.0.8

6 years ago

1.0.7

6 years ago

1.0.6

6 years ago

1.0.5

7 years ago

1.0.4

7 years ago

1.0.3

7 years ago

2.0.0

7 years ago

1.0.2

7 years ago

1.0.1

7 years ago

1.0.0

7 years ago

1.0.0-beta.6

7 years ago

1.0.0-beta.1

7 years ago

1.0.0-alpha.22

7 years ago

1.0.0-alpha17

7 years ago