1.2.2 • Published 6 years ago
@egoist/md-colors v1.2.2
Material Design Color Palettes
https://material.io/design/color/the-color-system.html
Install
This package actually only contains a JSON file.
yarn add @egoist/md-colors --devUsage
Using with TailwindCSS
In your tailwind.config.js:
const colors = require('@egoist/md-colors')
module.exports = {
theme: {
// Override default colors here
colors
}
}Color names are camelCased, e.g. deepPurple and lightBlue, you can reference one via text-lightBlue-200 in TailwindCSS.
TypeScript support
To load this module in a .ts file:
// Individual imports
import { red, green } from '@egoist/md-colors'
// Or load everything
import * as colors from '@egoist/md-colors'License
MIT.