npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

@z-index/tailwind-extend

v1.1.0

Published

Tailwind CSS plugin for managing z-index values

Readme

@z-index/tailwind-extend

Tailwind CSS에서 z-index 값을 체계적으로 관리할 수 있게 해주는 플러그인입니다.

장점

  1. Tailwind CSS 통합

    • Tailwind의 기존 워크플로우 유지
    • 클래스 기반 사용으로 일관성 유지
    • 기존 Tailwind 설정과 완벽한 호환
  2. 직관적인 클래스명

    • 의미 있는 클래스명 사용 (예: z-modal-overlay)
    • HTML에서 바로 z-index 구조 파악 가능
    • 자동완성으로 쉽게 사용 가능
  3. 유지보수 용이성

    • 중앙에서 z-index 값 관리
    • 값 변경 시 자동으로 모든 곳에 적용
    • 충돌 가능성 최소화

설치

npm install @z-index/tailwind-extend @z-index/core

사용 방법

  1. tailwind.config.js 파일에 플러그인을 추가합니다:
import { extendZIndex } from '@z-index/tailwind-extend';

/** @type {import('tailwindcss').Config} */
export default {
  content: ['./index.html', './src/**/*.{js,ts,jsx,tsx}'],
  theme: {
    extend: {
      zIndex: extendZIndex({
        config: [
          {
            name: 'modal',
            children: [{ name: 'hi' }, { name: 'as' }],
          },
        ],
        base: 1000,
      }),
    },
  },
  plugins: [],
};
  1. Tailwind CSS 클래스에서 사용:
<!-- 모달 hi -->
<div class="z-modal-hi">
  <!-- 모달 as -->
  <div class="z-modal-as">내용</div>
</div>

API

extendZIndex(options)

Tailwind CSS의 z-index 테마를 확장하는 함수입니다.

옵션

  • config: z-index 구조를 정의하는 배열
    • name: z-index 이름
    • children: 하위 z-index 구조 (선택사항)
  • base: 기본 z-index 값 (기본값: 0)

반환값

Tailwind CSS의 z-index 테마에 추가할 객체를 반환합니다. 각 키는 z- 접두사가 붙은 클래스명이 됩니다.

의존성

  • @z-index/core: 핵심 기능 제공
  • tailwindcss: ^3.0.0

라이선스

MIT