Skip to content

TailwindCSS plugin that uses pSBC to generate shades starting from the provided colors.

Notifications You must be signed in to change notification settings

garnet-org/tailwindcss-color-shades

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Color Shades Plugin

This plugin generates shade-related classes for each color provided with autocompletion.

const colorShades = require("@garnetlabs/tailwindcss-color-shades");

/** @type {import('tailwindcss').Config} */
module.exports = {
  content: ["./index.html"],
  theme: {
    extend: {
      shades: {
        blue: [27, 42, 137],
        aquamarine: [36, 201, 178]
      },
    },
  },
  plugins: [
    colorShades(),
  ],
};

Allows to use classes such as 'text-blue-300' or 'bg-aquamarine-800'.

About

TailwindCSS plugin that uses pSBC to generate shades starting from the provided colors.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published