How to use the @xstyled/core.transform function in @xstyled/core

To help you get started, we’ve selected a few @xstyled/core examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github smooth-code / xstyled / packages / emotion / src / css.js View on Github external
export function css(strings, ...rawArgs) {
  const emCssArgs = emCss(strings, ...rawArgs)
  const transformedStyles = transform(emCssArgs.styles)
  return props => ({
    ...emCssArgs,
    styles: styleToString(transformedStyles, props),
  })
}

@xstyled/core

xstyled core utilities.

MIT
Latest version published 8 months ago

Package Health Score

67 / 100
Full package analysis

Popular @xstyled/core functions