New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

rebass

Package Overview
Dependencies
Maintainers
1
Versions
109
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

rebass

React primitive UI components built with styled-system

  • 3.1.3
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
14K
decreased by-58.26%
Maintainers
1
Weekly downloads
 
Created
Source

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

Previous Versions

Contributing | MIT License

Keywords

FAQs

Package last updated on 31 Jul 2019

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc