UNPKG

styled-components

Version:

Visual primitives for the component age. Use the best bits of ES6 and CSS to style your apps without stress 💅

24 lines (18 loc) • 778 B
// @flow /* Import singletons */ import generateAlphabeticName from './utils/generateAlphabeticName' import css from './constructors/css' import injectGlobal from './constructors/injectGlobal' /* Import singleton constructors */ import _styledComponent from './models/StyledComponent' import _styled from './constructors/styled' import _keyframes from './constructors/keyframes' import _ComponentStyle from './models/ComponentStyle' /* Import components */ import ThemeProvider from './models/ThemeProvider' /* Instantiate singletons */ const keyframes = _keyframes(generateAlphabeticName) const styled = _styled(_styledComponent(_ComponentStyle(generateAlphabeticName))) /* Export everything */ export default styled export { css, keyframes, injectGlobal, ThemeProvider }