const css = require('glamor')

/**
 * Expose style as default and the whole object as properties
 * so it can be used as follows:
 *
 * import css, { merge } from 'next/css'
 * css({ color: 'red' })
 * merge({ color: 'green' })
 * css.merge({ color: 'blue' })
 */

css.default = css.style
Object.keys(css).forEach(key => {
  if (key !== 'default') {
    css.default[key] = css[key]
  }
})

module.exports = css

@@ -24,16 +24,158 @@
 amor')%0A%0A
+if (process.env.NODE_ENV !== 'production') %7B%0A  console.error('Warning: %5C'next/css%5C' is deprecated. Please use styled-jsx syntax instead.')%0A%7D%0A%0A
 /**%0A * E

print a deprecated message for next/css (#421)