tailwind-z-hierarchy
TypeScript icon, indicating that this package has built-in type declarations

1.0.4 • Public • Published

Tailwind Z Hierarchy Plugin

Install with npm or yarn

npm install --save-dev tailwind-z-hierarchy
yarn add --dev tailwind-z-hierarchy

Then add the plugin to your tailwind.config.js file.

const zHierarchy = require("tailwind-z-hierarchy");

module.exports = {
  theme: {
    // your theme configurations
  },
  plugins: [
    zHierarchy([
      "header",
      "sidebar-bg",
      "sidebar"
    ]),
    // other plugins
  ],
}

The array you pass to zHierarchy() will be used to generate the z-index values for your project. The values will be generated in the order you pass them in. To use them in tailwind, you just add the class z-<name>, like z-header or z-sidebar-bg.

Readme

Keywords

Package Sidebar

Install

npm i tailwind-z-hierarchy

Weekly Downloads

4

Version

1.0.4

License

ISC

Unpacked Size

2.08 kB

Total Files

4

Last publish

Collaborators

  • gradywoodruff