This package has been deprecated

Author message:

Package no longer supported. Contact Support at https://www.npmjs.com/support for more info.

mui-app-theme
TypeScript icon, indicating that this package has built-in type declarations

1.2.8 • Public • Published

Installation

npm install mui-app-theme

How to use

// 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)",
            },
        };
    }
}
// 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>
    );
};

Readme

Keywords

none

Package Sidebar

Install

npm i mui-app-theme

Weekly Downloads

13

Version

1.2.8

License

MIT

Unpacked Size

46.3 kB

Total Files

111

Last publish

Collaborators

  • tomas-light