Skip to content
⚛️ React primitive UI components built with styled-system.
JavaScript
Branch: master
Clone or download

Latest commit

jxnblk Merge pull request #940 from rebassjs/dependabot/npm_and_yarn/gatsby-…
…plugin-catch-links-2.2.1

Bump gatsby-plugin-catch-links from 2.1.26 to 2.2.1
Latest commit ba46104 Apr 2, 2020

Files

Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.circleci Add circleci config Aug 4, 2019
examples v4.0.7 Oct 28, 2019
packages Adjust sidebar Jan 31, 2020
.eslintignore Add basic docs setup Aug 1, 2019
.gitignore Add basic docs setup Aug 1, 2019
.npmignore Setup yarn workspaces Aug 1, 2019
.travis.yml Adjust travis config Aug 4, 2019
CHANGELOG.md Edit changelog Dec 2, 2019
CODE_OF_CONDUCT.md Create CODE_OF_CONDUCT.md Oct 20, 2018
CONTRIBUTING.md Adjust ignore files Sep 8, 2018
LICENSE.md Add tests and edit docs Aug 3, 2019
README.md Edit readme Aug 3, 2019
babel.config.js Add styled-components build for forms package Aug 21, 2019
lerna.json v4.0.7 Oct 28, 2019
package.json Bump jest from 24.9.0 to 25.2.4 Apr 1, 2020
yarn.lock Merge pull request #940 from rebassjs/dependabot/npm_and_yarn/gatsby-… Apr 2, 2020

README.md

Rebass

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

Build Status Coverage Downloads Version MIT License

npm i rebass

Getting Started

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

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

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"

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 intended to be:

  • Minimal
  • Useful
  • Unopinionated
  • Flexible
  • Consistent
  • Extensible
  • Themeable

Do one thing, and do it well

Unix philosophy

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

Related

Upgrading from v3

See the Migration Guide.

Previous Versions


Contributing | MIT License

You can’t perform that action at this time.