1.2.8 • Published 4 years ago

mui-app-theme v1.2.8

Weekly downloads
1
License
MIT
Repository
github
Last release
4 years ago

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>
    );
};
1.2.8

4 years ago

1.2.7

4 years ago

1.2.0

4 years ago

1.0.1

4 years ago

1.2.6

4 years ago

1.2.5

4 years ago

1.2.4

4 years ago

1.2.3

4 years ago

1.2.2

4 years ago

1.2.1

4 years ago

1.0.0

4 years ago

0.6.1

4 years ago

0.6.0

4 years ago

0.5.8

4 years ago

0.5.7

4 years ago

0.5.6

4 years ago

0.5.5

4 years ago

0.5.4

4 years ago

0.5.3

4 years ago

0.5.2

4 years ago

0.5.0

4 years ago