Skip to content

Automatically generate shades for your custom colors defined under `theme.extend.colors` in the `tailwind.config.js` file.

License

Notifications You must be signed in to change notification settings

LorenzoBloedow/tailwind-shades-for-custom-colors

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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 :)

	<h1 class="text-avocado-100">
		Hello world!
	</h1>

About

Automatically generate shades for your custom colors defined under `theme.extend.colors` in the `tailwind.config.js` file.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published