z-indexes can be a pain to manage. Often, they are scattered throughout your codebase, it can be hard to know which ones are in use, and which ones are not. In hindsight, it's easy to wish that they had been organized in a more logical way.
z-index-optimizer
aims to provide a solution to this problem, it can:
- Scan your codebase for z-indexes
- List them out sorted by their frequency of use
- Assign them to a logical grouping
- Automatically update your codebase to use the new grouping
// TODO - add usage instructions
Install dependencies:
bun i
Run the CLI:
bun run index.ts
This project was created using bun init
in bun v0.5.9. Bun is a fast all-in-one JavaScript runtime.