Skip to content

waseem-sajjad/tailwind-tints

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Tailwind Tints

This is a Tailwind CSS plugin for automatically generating shades and tints for your custom colors with Tailwind CSS IntelliSense from 50 to 950.

alt screen short

Installation

Using npm:

npm install -D tailwind-tints

Using yarn:

yarn add -D tailwind-tints

Using pnpm:

pnpm add -D tailwind-tints

Using bun:

bun add -D tailwind-tints

Usage

  1. Register the plugin on your tailwind.config.ts file.
import tailwindTints from "tailwind-tints";
import type { Config } from "tailwindcss";

const tints = tailwindTints({
  primary: "#2a9d8f",
  secondary: "#e9c46a"
});

const config: Config = {
  content: [
    "./src/pages/**/*.{js,ts,jsx,tsx,mdx}",
    "./src/components/**/*.{js,ts,jsx,tsx,mdx}",
    "./src/app/**/*.{js,ts,jsx,tsx,mdx}",
  ],
  theme: {
    extend: {},
  },
  plugins: [tints],
};

export default config;
  1. Open your component or page and write class.
const Button = () => {
  return (
    <button className="bg-primary hover:bg-primary-600 active:bg-primary-800">
      Button
    </button>
  );
};

export default Button;

About

Tailwind css colors shades and tints plugin.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published