Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/joonhocho/material-design-color-palette
Material design color palette meets TinyColor
https://github.com/joonhocho/material-design-color-palette
Last synced: about 1 month ago
JSON representation
Material design color palette meets TinyColor
- Host: GitHub
- URL: https://github.com/joonhocho/material-design-color-palette
- Owner: joonhocho
- License: mit
- Created: 2016-04-08T06:38:26.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2016-04-10T22:56:23.000Z (over 8 years ago)
- Last Synced: 2024-10-31T18:24:47.382Z (about 2 months ago)
- Language: JavaScript
- Size: 11.7 KB
- Stars: 1
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
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. Faster since it does not wrap it with TinyColor.
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
At official site: https://www.google.com/design/spec/style/color.html#color-color-paletteTinyColor API: https://github.com/bgrins/TinyColor/blob/master/README.md
Dependencies
------------
google-material-color: https://github.com/danlevan/google-material-colorTinyColor: https://github.com/bgrins/TinyColor