@databyss-org/emotion-core
TypeScript icon, indicating that this package has built-in type declarations

10.0.17 • Public • Published

@databyss-org/emotion-core

forked from @emotion/core

Adds support for passing theme to functions in array css prop. https://github.com/emotion-js/emotion/pull/1130

Install

yarn add @databyss-org/emotion-core

Usage

/** @jsx jsx */
import { jsx, css, Global, ClassNames } from '@emotion/core'

render(
  <div css={{ color: 'hotpink' }}>
    <div
      css={css`
        color: green;
      `}
    />
    <Global
      styles={{
        body: {
          margin: 0,
          padding: 0
        }
      }}
    />
    <ClassNames>
      {({ css, cx }) => (
        <div
          className={cx(
            'some-class',
            css`
              color: yellow;
            `
          )}
        />
      )}
    </ClassNames>
  </div>
)

More documentation is available at https://emotion.sh.

Readme

Keywords

none

Package Sidebar

Install

npm i @databyss-org/emotion-core

Weekly Downloads

1

Version

10.0.17

License

MIT

Unpacked Size

192 kB

Total Files

27

Last publish

Collaborators

  • pzhine