https://material.io/design/color/the-color-system.html
This package actually only contains a JSON file.
yarn add @egoist/md-color --dev
In your tailwind.config.js
:
const mdColors = require('@egoist/md-colors')
module.exports = {
theme: {
// Override default colors
colors: {
transparent: 'transparent',
...mdColors
}
}
}
Color names are camelCased, e.g. deepPurple
and lightBlue
, you can reference one via text-lightBlue-200
in TailwindCSS.
MIT.