All Projects → mrmrs → react-elements

mrmrs / react-elements

Licence: other
Prototyping setup: React + Glamorous + Styled-system

Programming Languages

javascript
184084 projects - #8 most used programming language
HTML
75241 projects

Elements

Prototyping kit.

Easily style html elements with values from your design system.

Made with:

  • Create-react-app
  • Styled-System
  • Glamorous

Getting started

git clone [email protected]:mrmrs/elements.git
npm i && npm start

Component example

H1.js

import glamorous from 'glamorous'
import { space, width, fontSize, color } from 'styled-system'

const H1 = glamorous.h1(space,  width, fontSize, color, {
  lineHeight: 1.25,
})

H1.defaultProps = {
  fontSize: 3,4,5
}

export default H1

Reference the component in your jsx like so

<H1 fontSize={[ 2,3,5 ]}>First heading</H1>
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].