/Material-ui-Global-Theme

The Best Modern Button For React Js

Primary LanguageJavaScriptMIT LicenseMIT

Material-ui-Global-Theme

visitors

ilaraweb-material-ui

Installation

-- Clone this repository Them folder:

git clone https://github.com/Mahdi-Farahani/Material-ui-Global-Theme

-- Install Material UI /Styles

npm i @material-ui/styles

--Install tinycolor2

npm i tinycolor2

Usage

1- Add this Theme folder to your Project (example: src/theme) 2-Go to your HOC Component and add :

import {ThemeProvider} from '@material-ui/core/styles';
import theme from '../src/theme';

3-Use ThemeProvider with use theme props :

export default function App() {
  return (
    <ThemeProvider theme={theme.default}>
      <App/>
    </ThemeProvider>
  );
}

Contributing

  1. Fork it (https://github.com/Mahdi-Farahani/Material-ui-Global-Theme/fork)
  2. Commit your changes
  3. Push to the main branch
  4. Create a new Pull Request