How to use the emotion/macro.css function in emotion

To help you get started, we’ve selected a few emotion examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github emotion-js / emotion / packages / babel-plugin / __tests__ / vanilla-emotion-macro / __fixtures__ / object-label.js View on Github external
import { css } from 'emotion/macro'

let obj = {
  someProp: css({ color: 'green' }),
  anotherProp: css({ color: 'hotpink' })
}
class Thing {
  static Prop = css({ color: 'yellow' })
  BadIdea = css({ color: 'red' })
}
github emotion-js / emotion / packages / babel-plugin / __tests__ / vanilla-emotion-macro / __fixtures__ / object-label.js View on Github external
import { css } from 'emotion/macro'

let obj = {
  someProp: css({ color: 'green' }),
  anotherProp: css({ color: 'hotpink' })
}
class Thing {
  static Prop = css({ color: 'yellow' })
  BadIdea = css({ color: 'red' })
}