smooth-code / xstyled
- среда, 29 мая 2019 г. в 00:15:57
JavaScript
Consistent theme based CSS for styled-components 💅
A new way to style components
npm install @xstyled/styled-components styled-componentsSee the documentation at smooth-code.com/open-source/xstyled for more information about using xstyled!
Quicklinks to some of the most-visited pages:
import styled from '@xstyled/styled-components'
const Box = styled.div`
background-color: primary; /* ⟶ theme.colors.primary */
margin: 2; /* ⟶ theme.space.2 */
`
export default BoxLicensed under the MIT License, Copyright © 2019-present Smooth Code.
See LICENSE for more information.