The Wayback Machine - https://web.archive.org/web/20190323135218/https://github.com/rebassjs/rebass
Skip to content
Please note that GitHub no longer supports your web browser.

We recommend upgrading to the latest Google Chrome or Firefox.

⚛️ React primitive UI components built with styled-system.
Branch: master
Clone or download
1
Latest commit 32b6a7d Jan 18, 2019
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
docs Merge pull request #519 from rebassjs/remove-packages Nov 12, 2018
emotion Add build setup for emotion 10 Nov 28, 2018
examples Audit fix Nov 13, 2018
src
test Run jest only from the root Sep 22, 2018
.gitignore Add build setup for emotion 10 Nov 28, 2018
.npmignore Edit npmignore Nov 29, 2018
.travis.yml
CHANGELOG.md
CODE_OF_CONDUCT.md
CONTRIBUTING.md Adjust ignore files Sep 8, 2018
Dockerfile Remove subpackages in favor of rebassjs/extras Oct 20, 2018
LICENSE.md Clean Sep 5, 2018
README.md
babel.config.js
now.json Remove subpackages in favor of rebassjs/extras Oct 20, 2018
package-lock.json
package.json

README.md

Rebass

React primitive UI components built with styled-system. https://rebassjs.org

Build Status Coverage Downloads Version MIT License

npm i rebass

Note: Rebass v3 is intended for use with styled-components v4. Some features may not work with previous versions.

Getting Started

import React from 'react'
import { Box, Heading, Button } from 'rebass'

export default props =>
  <Box>
    <Heading>Hello</Heading>
    <Button>Rebass</Button>
  </Box>

Emotion

To use Rebass with emotion, install and use the @rebass/emotion

npm i @rebass/emotion @emotion/core @emotion/styled

Features

  • 8 core UI components to serve as the basis for design systems
  • Super small (~1KB)
  • Responsive, themeable style props from styled-system
  • Flexbox grid with the Box and Flex components
  • Extensible base components
  • Design-system based consistency
  • Built for responsive web design

"One of the best React component libs out there" – Max Stoiber

"Rebass is the Bootstrap of React." – Jori Lallo

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

Principles

Rebass is built with the following principles in mind.

  • Minimal
  • Useful
  • Unopinionated
  • Flexible
  • Consistent
  • Extensible
  • Themeable
  • Do one thing well

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

Documentation

CodeSandbox

Try it out: https://codesandbox.io/s/github/rebassjs/rebass/tree/master/examples/sandbox-v3

Related

Previous Versions


Contributing | MIT License

You can’t perform that action at this time.