Awesome Open Source
Awesome Open Source

🍃 Leaf-UI

A react component library for web, native and amp built using styled-components

[WARNING: This is a work in progress, API is subject to change]


npm install -S leaf-ui


Wrap your App component with ThemeProvider and pass it the leaf-ui theme (or override it with custom a theme)

// index.js
import React from 'react';
import ReactDOM from 'react-dom';
import { ThemeProvider } from 'styled-components';
import leafUiTheme, { BaseStyles } from 'leaf-ui/theme';
import App from './App';

  <ThemeProvider theme={leafUiTheme}>
    <App />

Import and use the components in your App.js

// App.js
import React from 'react';
import Button from 'leaf-ui/Button';

// for commonjs use,
// import Button from 'leaf-ui/cjs/Button';

const App = () => (

export default App;

Supported Platforms

  • web
  • native
  • amp


Read our contributing guide to learn about our development process, how to propose bugfixes and improvements, and how to build and test your changes to leaf-ui.


Follow this quick setup guide to get leaf-ui working on your local machine.

Get A Weekly Email With Trending Projects For These Topics
No Spam. Unsubscribe easily at any time.
javascript (70,969) 
react (5,572) 
react-native (1,584) 
web (1,048) 
theme (861) 
components (307) 
styled-components (241) 
design-system (128) 
amp (28) 
ui-library (25)