Skip to content

racha/tailwind-classVariants

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

tailwind-child

A simple TailwindCSS plugin that helps you to register class variants and change styles with simple class toggle on a parent node.

<body class="contrast">
  <a href="" class="text-gray-500 cst:text-black">
    READ MORE
  </a>
</body>
module.exports = {
  content: [],
  theme: {
    extend: {
      classVariants: {
        // variant: "toggleableClass"
        contrast: "contrast",

        // Can be different if necessary
        cst: "contrast"
      }
    },
  },
  plugins: [
    [
      require("@stefanracic/tailwind-classvariants")
    ]
  ],
}

About

TailwindCSS Plugin to easily setup class variants

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published