Rebass

React primitive UI components built with styled-system.

README

undefined

Rebass


React primitive UI components built with Styled System . https://rebassjs.org

Build Status Coverage Downloads Version MIT License

  1. ``` shell
  2. npm i rebass
  3. ```

Getting Started


  1. ``` js
  2. import React from 'react'
  3. import { Box, Heading, Button } from 'rebass'

  4. export default props =>
  5.   <Box>
  6.     <Heading>Hello</Heading>
  7.     <Button>Rebass</Button>
  8.   </Box>
  9. ```

Features


Start your design system without boiling the ocean
Build consistent UI with design constraints and user-defined scales
Best-in-class developer ergonomics with Styled System props
First-class support for theming & fully compatible with Theme UI
Quick, mobile-first responsive styles with array-based syntax
Flexbox layout with the Box and Flex components
Flexibility built in for high design & development velocity
Minimal footprint at about 4KB

"One of the best React component libs out there"



"Rebass is the Bootstrap of React."



"A whopper component library built on styled-components. Responsive, systematic, scalable...the business!"



Principles


Rebass is intended to be:

Minimal
Useful
Unopinionated
Flexible
Consistent
Extensible
Themeable

Do one thing, and do it well



See Patterns for Style Composition in React for more on some of the thought behind Rebass.

Documentation



CodeSandbox



Related



Upgrading from v3


See the Migration Guide .

Previous Versions