google-material-color-palette-json
v2.0.1
Published
A json file to represent google material's color palette. Created to use in React/ React Native
Downloads
227
Maintainers
Readme
google-material-color-palette-json
Google Material Design's Color Palette in JSON format to support code intellisense. Originally created to use in React / React Native
Color values taken from Google Material's Color Palette
Install
npm i -S google-material-color-palette-json
Usage
const Palette = require('google-material-color-palette-json')
const bgColor = Palette.red.shade_500 // #F44336
const fgColor = Palette.white // #FFFFFF
UMD Version (Inject through <script /> tag)
<script src="google-material-color-palette-json/lib/palette-umd.js"></script>
<script>
const bgColor = window.PALETTE.red.shade_500 // #F44336
const fgColor = window.PALETTE.white // #FFFFFF
</script>