JSPM

  • Created
  • Published
  • Downloads 19178
  • Score
    100M100P100Q148130F
  • License MIT

Xstyled bindings for styled-components.

Package Exports

  • @xstyled/styled-components

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (@xstyled/styled-components) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

xstyled

A new way to style components

License npm package npm downloads CircleCI codecov Code style Dependencies DevDependencies Small size

npm install @xstyled/styled-components styled-components

Docs

See the documentation at smooth-code.com/open-source/xstyled for more information about using xstyled!

Quicklinks to some of the most-visited pages:

Example

import styled from '@xstyled/styled-components'

const Box = styled.div`
  background-color: primary; /* ⟶ theme.colors.primary */
  margin: 2; /* ⟶ theme.space.2 */
`

export default Box

License

Licensed under the MIT License, Copyright © 2019-present Smooth Code.

See LICENSE for more information.