UNPKG

styled-components

Version:

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

11 lines (8 loc) • 347 B
import css from './css' import GlobalStyle from '../models/GlobalStyle' import type { Interpolation } from '../types' const injectGlobal = (strings: Array<string>, ...interpolations: Array<Interpolation>) => { const globalStyle = new GlobalStyle(css(strings, ...interpolations)) globalStyle.generateAndInject() } export default injectGlobal