23

GitHub - smooth-code/xstyled: Consistent theme based CSS for styled-components ?

 4 years ago
source link: https://github.com/smooth-code/xstyled
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.

README.md

xstyled

A new way to style components

License npm package npm downloads CircleCI 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.


About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK