material-colors-ts
TypeScript icon, indicating that this package has built-in type declarations

1.0.4 • Public • Published

material-colors-ts

NPM version

A zero dependency TypeScript export of the material design color system.

Install

$ npm install material-colors-ts

Usage

NodeJS or Browser

import { white, blue } from 'material-colors-ts';
 
export function getBackgroundColor() {
  return blue[100];
}

React

import React from 'react';
import { white, blue } from 'material-colors-ts';
 
export default function Example() {
  return (
    <div style={{ backgroundColor: white }}>
      <span style={{ color: blue[500] }}>
        This is some blue text
      </span>
    </div>
  )
}
 

Package Sidebar

Install

npm i material-colors-ts

Weekly Downloads

4

Version

1.0.4

License

MIT

Unpacked Size

19.8 kB

Total Files

5

Last publish

Collaborators

  • harveyconnor