Skip to content

reza-talebii/Golobe-design-system

Repository files navigation

golobe-ui

https://www.npmjs.com/package/golobe-ui

NPM JavaScript Style Guide

Install

npm install --save golobe-ui

Usage

import React, { Component } from "react";

import { ButtonUi } from "golobe-ui";

class Example extends Component {
  render() {
    return <ButtonUi />;
  }
}

style & theme

import React, { Component } from 'react'
import { ConfigProvider } from 'antd'
import { ThemeProvider } from 'styled-components'
import {GlobalStyle , antdThemeToken,antdThemeComponents ,DefaultTheme} from 'golobe-ui'

class Example extends Component {
  render() {
    return <>
       <ConfigProvider theme={antdTheme}>
        <ThemeProvider theme={styledComponentsTheme}>
          <GlobalStyle />
          {children}
        </ThemeProvider>
      </ConfigProvider>
    <>
  }
}

License

MIT © reza-talebii