styled-components
Version:
Visual primitives for the component age. Use the best bits of ES6 and CSS to style your apps without stress 💅
17 lines (12 loc) • 470 B
JavaScript
// @flow
declare var __DEV__: ?string
export const SC_ATTR =
(typeof process !== 'undefined' && process.env.SC_ATTR) ||
'data-styled-components'
export const SC_STREAM_ATTR = 'data-styled-streamed'
export const CONTEXT_KEY = '__styled-components-stylesheet__'
export const IS_BROWSER =
typeof window !== 'undefined' && 'HTMLElement' in window
export const DISABLE_SPEEDY =
(typeof __DEV__ === 'boolean' && __DEV__) ||
process.env.NODE_ENV !== 'production'