Skip to content

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

License

Notifications You must be signed in to change notification settings

harveyconnor/material-colors-ts

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

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

Resources

License

Stars

Watchers

Forks

Packages

No packages published