UNPKG

styled-components

Version:

**This is a work in progress** based off of [this demo](https://github.com/geelen/css-components-demo).

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