tailwindcss-scoped-groups

2.0.0 • Public • Published

TailwindCSS scoped groups

This plugin allows you to create custom groups so you can nest them.

Custom names

Just create the names in your config file:

// tailwind.config.js
module.exports = {
    mode: "jit",
    // ...
    plugins: [
        require("tailwindcss-scoped-groups")({
            groups: ["one", "two"],
        }),
    ],
}

With this config, you can use group-one and group-two just like you'd use the normal group.

Compatibility

This plugin is compatible with TailwindCSS version 3 and the JIT compiler.

If you want to use this plugin with TailwindCSS 2, take a look at older versions (1.2.0).

/tailwindcss-scoped-groups/

    Package Sidebar

    Install

    npm i tailwindcss-scoped-groups

    Weekly Downloads

    7,650

    Version

    2.0.0

    License

    MIT

    Unpacked Size

    3.18 kB

    Total Files

    5

    Last publish

    Collaborators

    • einlinuus