tailwind-shades-for-custom-colors

1.0.2 • Public • Published

About

This is a Tailwind plugin for automatically generating shades for your custom colors defined under theme.extend.colors in the tailwind.config.js file.

Usage

  1. Install the package:
npm install tailwind-shades-for-custom-colors


2. Register the plugin on your `tailwind.config.js` file:
 
 module.exports  = {
	content: {
		relative: true,
		files: ['./public/index.html']
	},
	theme: {
		extend: {},
	},
	plugins: [require("tailwind-shades-for-custom-colors")]
}
 


3. Define your custom colors in hex format:
 
 module.exports  = {
	content: {
		relative: true,
		files: ['./public/index.html']
	},
	theme: {
		extend: {
			colors: {
				avocado: "#8df1ab"
			}
		},
	},
	plugins: [require("tailwind-shades-for-custom-colors")]
}
 


4. Enjoy :)

	&lth1 class="text-avocado-100">
		Hello world!
	&lt/h1>

Package Sidebar

Install

npm i tailwind-shades-for-custom-colors

Weekly Downloads

12

Version

1.0.2

License

MIT

Unpacked Size

54.6 kB

Total Files

12

Last publish

Collaborators

  • lorenzobloedow