A zero dependency TypeScript export of the material design color system.
$ npm install material-colors-ts
import { white, blue } from 'material-colors-ts';
export function getBackgroundColor() {
return blue[100];
}
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>
)
}