npm.io
1.2.3 • Published 2 years ago

@types/material-colors

Licence
MIT
Version
1.2.3
Deps
0
Size
6 kB
Vulns
0
Weekly
0
Stars
51.4K

Installation

npm install --save @types/material-colors

Summary

This package contains type definitions for material-colors (https://github.com/shuhei/material-colors).

Details

Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/material-colors.

index.d.ts

export as namespace materialColors;

declare const colors:
    & {
        [
            colorName in
                | "red"
                | "pink"
                | "purple"
                | "deepPurple"
                | "indigo"
                | "blue"
                | "lightBlue"
                | "cyan"
                | "teal"
                | "green"
                | "lightGreen"
                | "lime"
                | "yellow"
                | "amber"
                | "orange"
                | "deepOrange"
        ]: {
            [
                intensity in
                    | "50"
                    | "100"
                    | "200"
                    | "300"
                    | "400"
                    | "500"
                    | "600"
                    | "700"
                    | "800"
                    | "900"
                    | "a100"
                    | "a200"
                    | "a400"
                    | "a700"
            ]: string;
        };
    }
    & {
        [colorName in "brown" | "grey" | "blueGrey"]: {
            [intensity in "50" | "100" | "200" | "300" | "400" | "500" | "600" | "700" | "800" | "900"]: string;
        };
    }
    & {
        [textColorName in "darkText" | "lightText"]: {
            [intensity in "primary" | "secondary" | "disabled" | "dividers"]: string;
        };
    }
    & {
        [iconTypeName in "darkIcons" | "lightIcons"]: {
            [mode in "active" | "inactive"]: string;
        };
    }
    & {
        black: string;
        white: string;
    };

export = colors;

Additional Details

  • Last updated: Tue, 07 Nov 2023 0939 GMT
  • Dependencies: none

Credits

These definitions were written by Noah Overcash.