Code Monkey home page Code Monkey logo

rebass's Introduction

Rebass

React UI component library & design system, built with styled-components and styled-system.

Build Status

http://jxnblk.com/rebass

npm i rebass@next

Rebass is a library of highly-composable, primitive UI components for React, built with styled-components to keep styles isolated and reduce the need to write custom CSS in your application. Based upon a configurable design system, Rebass‘s props API makes building consistent, responsive web apps simpler and faster.

Getting Started

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

const App = props => (
  <Provider>
    <Heading>Hello</Heading>
    <Button>Rebass</Button>
  </Provider>
)

Features

  • Kickstart your own React component library
  • Responsive style props from styled-system
  • Flexbox grid with grid-styled
  • Style encapsulation with styled-components
  • Functional stateless UI components
  • Configurable theming
  • 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

Documentation

CodeSandbox

Try it out:

https://codesandbox.io/s/github/jxnblk/rebass/tree/master/examples/sandbox

Architectural Approach

Rebass is built around a component architectural approach inspired by Dan Abramov’s Presentational and Container Components, where presentational components are the only ones that encapsulate styles and contain no application logic, and container components do not contain any styles or DOM markup and handle all the application logic.

Rebass only contains presentational components, which means controlling things like progressive disclosure mechanisms or dropdown menus should be handled at a higher level in container components. Therefore, Rebass itself does not require any client-side JavaScript, is well suited to server-side rendering, and can fit into virtually any higher level application architecture.

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

Related

v1.0.7

For the previous version of Rebass see the v1.0.7 branch.


Contributing | MIT License

rebass's People

Contributors

jxnblk avatar gregwym avatar maxbeatty avatar kikobeats avatar greenkeeperio-bot avatar lachlanjc avatar 1800joe avatar ptgolden avatar pungggi avatar chadedrupt avatar bhageena avatar boristian avatar steida avatar queckezz avatar praxxis avatar namuol avatar windkomo avatar firedev avatar nfcampos avatar rileytomasek avatar youfoundron avatar ryuken avatar bosek avatar gyfis avatar kerumen avatar johnpolacek avatar nishp1 avatar npmcdn-to-unpkg-bot avatar

Stargazers

Raffaele avatar

Watchers

Emily Morehouse avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.