mdcolor
v0.0.3
Published
Material design color palette meets TinyColor
Downloads
4
Maintainers
Readme
material-design-color-palette
Material design color palette meets TinyColor
npm install --save mdcolor
import MDColor from 'mdcolor';
MDColor.Red(500).toHexString(); // '#f44336'
MDColor.Red(500, 1); // '#F44336' raw value
MDColor.DeepPurple('A700').toHexString() // '#6200ea'
MDColor.White('SecondaryText').toRgbString() // 'rgba(255, 255, 255, 0.7)'
See list of colors: https://github.com/danlevan/google-material-color/blob/master/src/colors.js
TinyColor API: https://github.com/bgrins/TinyColor/blob/master/README.md
Dependencies
google-material-color: https://github.com/danlevan/google-material-color
TinyColor: https://github.com/bgrins/TinyColor