GithubHelp home page GithubHelp logo

tawanorg / create-react-components Goto Github PK

View Code? Open in Web Editor NEW
1.0 0.0 0.0 1.02 MB

License: Other

JavaScript 98.51% HTML 1.26% CSS 0.23%
rollup react-library react-components react webpack scss react-theme storybook

create-react-components's Introduction

TGP React Components

Installation

Those third-parties are required

index.html

<link href="https://fonts.googleapis.com/css?family=Roboto:300,400,500,700" rel="stylesheet">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/material-design-iconic-font/2.2.0/css/material-design-iconic-font.min.css">
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0/css/bootstrap.min.css" integrity="sha384-Gn5384xqQ1aoWXA+058RXPxPg6fy4IWvTNh0E263XmFcJlSAwiGgFAW/dAiS6JXm" crossorigin="anonymous">

index.js (React main file)

import 'normalize.css';
import ThemeProvider from 'tgp-react-components/ThemeProvider'

<ThemeProvider>
 <App />
</ThemeProvider>

Custom theme

import ThemeProvider from 'tgp-react-components/ThemeProvider'

const customTheme = {
 colors: {
 	red: '#F83111'
 }
}

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

Get it running

  • npm run storybook | run the storybook for development
  • npm start | start web document server for static document website
  • npm run build:lib | building the component library

Resources

create-react-components's People

Contributors

tawanorg avatar

Stargazers

 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.