xstyled

A utility-first CSS-in-JS framework built for React.

README

xstyled

A utility-first CSS-in-JS framework built for React.


License
npm package
npm downloads
CircleCI
codecov
Code style

  1. ```bash
  2. npm install @xstyled/styled-components styled-components
  3. ```


See the documentation at xstyled.dev for more information about using xstyled!

Quicklinks to some of the most-visited pages:

- [Getting started](https://xstyled.dev/docs/installation/)

Example


  1. ```js
  2. import { x } from '@xstyled/styled-components'

  3. function Example() {
  4.   return (
  5.     <x.div p={{ _: 3, md: 6 }} bg="white" display="flex" spaceX={4}>
  6.       <x.div flexShrink={0}>
  7.         <x.img h={12} w={12} src="/img/logo.svg" alt="xstyled Logo" />
  8.       </x.div>
  9.       <x.div>
  10.         <x.h4
  11.           fontSize={{ _: 'md', lg: 'xl' }}
  12.           fontWeight="medium"
  13.           color="black"
  14.         >
  15.           xstyled
  16.         </x.h4>
  17.         <x.p color="gray-500">A CSS-in-JS framework built for React.</x.p>
  18.       </x.div>
  19.     </x.div>
  20.   )
  21. }
  22. ```

License


Licensed under the MIT License, Copyright © 2019-present Greg Bergé.

See LICENSE for more information.