Introducing Socket Firewall: Free, Proactive Protection for Your Software Supply Chain.Learn More
Socket
Book a DemoInstallSign in
Socket

tailwind-shades-for-custom-colors

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

tailwind-shades-for-custom-colors

Autogenerate up to 10 shades for your custom colors defined in tailwind.config.js

latest
Source
npmnpm
Version
1.0.2
Version published
Maintainers
1
Created
Source

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

  • 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>

Keywords

tailwind

FAQs

Package last updated on 19 Nov 2022

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts