# mui-app-theme

> Allow to override material ui theme colors

Latest version **1.2.8** (published 2020-06-28) · MIT license · 0 weekly downloads

> **Deprecated.** This package is deprecated.

## Install

```sh
npm install mui-app-theme
pnpm add mui-app-theme
yarn add mui-app-theme
bun add mui-app-theme
```

## Health

**Score 10/100 (F)** — status: deprecated.

Negative: deprecated.

## Facts

| | |
|---|---|
| Version | 1.2.8 |
| Published | 2020-06-28 |
| First published | 2020-04-24 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | CommonJS |
| Dependencies | 3 |
| Unpacked size | 45.2 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | TomasLight |
| Maintainers | tomas_light |

## Links

- npm: https://www.npmjs.com/package/mui-app-theme
- Repository: https://github.com/TomasLight/mui-app-theme
- Homepage: https://github.com/TomasLight/mui-app-theme#readme
- Issues: https://github.com/TomasLight/mui-app-theme/issues
- npm.io page: https://npm.io/package/mui-app-theme

## Dependencies (3)

- [react](https://npm.io/package/react.md) 16.13.1
- [react-dom](https://npm.io/package/react-dom.md) 16.13.1
- [@material-ui/core](https://npm.io/package/@material-ui/core.md) 4.10.2

## Recent versions

- 1.2.8 (latest) — 2020-06-28
- 1.2.7 — 2020-04-28
- 1.2.6 — 2020-04-25
- 1.2.5 — 2020-04-25
- 1.2.4 — 2020-04-25
- 1.2.3 — 2020-04-25
- 1.2.2 — 2020-04-25
- 1.2.1 — 2020-04-25
- 1.2.0 — 2020-04-25
- 1.0.1 — 2020-04-25
- 1.0.0 — 2020-04-24
- 0.6.1 — 2020-04-24
- 0.6.0 — 2020-04-24
- 0.5.8 — 2020-04-24
- 0.5.7 — 2020-04-24
- … 6 more at https://npm.io/package/mui-app-theme/versions

## README

# Installation
```bush
npm install mui-app-theme
```

# How to use

```ts
// MyColors.ts
import { AppThemeColors } from "mui-app-theme";

export class MyColors extends AppThemeColors {
    constructor() {
        super();
        this.primary = {
            main: "rgba(33, 33, 33)",
            hover: "rgba(66, 66, 66)",
            text: "rgba(189, 189, 189, 0.87)",
        
            outline: {
                main: "rgba(255, 255, 255)",
                hover: "rgba(0, 0, 0, 0.08)",
            },
            disabled: {
                main: "rgba(238, 238, 238)",
                text: "rgba(189, 189, 189, 0.87)",
            },
        };
    }
}
```

```tsx
// App.tsx
import { createAppTheme } from "mui-app-theme";
import React, { FunctionComponent } from "react";
import { ThemeProvider } from "@material-ui/styles";

import { MyColors } from "./MyColors";

const App: FunctionComponent = () => {
    const appTheme = createAppTheme(new MyColors());

    return (
        <ThemeProvider theme={appTheme}>
            {
            // children
            }
        </ThemeProvider>
    );
};
```

---
_Source: https://npm.io/package/mui-app-theme · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
