Skip to content

Latest commit

 

History

History
24 lines (18 loc) · 472 Bytes

aphrodite.md

File metadata and controls

24 lines (18 loc) · 472 Bytes

aphrodite shim

glamor ships with a aphrodite-like StyleSheet api.

usage -

import { StyleSheet, css } from 'glamor/aphrodite'

let styles = StyleSheet.create({
  red: { color: 'red' },
  hoverBlue: {
    ':hover': { color: 'blue' }
  }
})

// ...
<div className={css(styles.red, style.hoverBlue)}>
  this is red, and turns blue on hover
</div>  

a full example is available.