Skip to content
Consistent theme based CSS for styled-components šŸ’…
Branch: master
Clone or download
Latest commit 6d23d73 Jun 13, 2019

README.md

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.

You canā€™t perform that action at this time.