1.2.2 • Published 6 years ago
@egoist/md-colors
Licence
MIT
Version
1.2.2
Deps
0
Size
12 kB
Vulns
0
Weekly
0
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 --dev
Usage
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.