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 🙏

© 2024 – Pkg Stats / Ryan Hefner

@goldencomm/tailwind-plugin-mask

v1.0.0

Published

Install the plugin from npm:

Downloads

2

Readme

@goldencomm/tailwind-plugin-mask

Installation

Install the plugin from npm:

npm i -D @goldencomm/tailwind-plugin-mask

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

module.exports = {
  theme: {
    // ..
  },
  plugins: [require("@goldencomm/tailwind-plugin-mask")],
};

Mask clip

Determine the area affected by a mask.

| Class | Properties | | ------------------- | --------------------------- | | mask-clip-content | mask-clip: 'content-box'; | | mask-clip-padding | mask-clip: 'padding-box'; | | mask-clip-border | mask-clip: 'border-box'; | | mask-clip-fill | mask-clip: 'fill-box'; | | mask-clip-stroke | mask-clip: 'stroke-box'; | | mask-clip-view | mask-clip: 'view-box'; | | mask-clip-none | mask-clip: 'no-clip'; |

Mask composite

The compositing operation used on the mask layer with the layers below it.

| Class | Properties | | -------------------------- | ------------------------------ | | mask-composite-add | mask-composite: 'add'; | | mask-composite-subtract | mask-composite: 'subtract'; | | mask-composite-intersect | mask-composite: 'intersect'; | | mask-composite-exclude | mask-composite: 'exclude'; |

Mask image

The image that is used as a mask layer for an element.

There are no default mask image utility classes included.

You can customize your theme by updating the theme.maskImage or theme.extend.maskImage spaces in your tailwind.config.js file.

module.exports = {
  theme: {
    extend: {
      maskImage: {
        "fade-at-bottom": "linear-gradient(to bottom, black, transparent)",
      },
    },
  },
};

If this example mask image were added to your tailwind config, you could use it with the mask-fade-at-bottom class.

Mask mode

Determine if the mask-image is treated as a luminance or alpha mask.

| Class | Properties | | ------------------------ | ---------------------------- | | mask-mode-alpha | mask-mode: 'alpha'; | | mask-mode-luminance | mask-mode: 'luminance'; | | mask-mode-match-source | mask-mode: 'match-source'; |

Mask origin

Set the origin of a mask.

| Class | Properties | | --------------------- | ----------------------------- | | mask-origin-content | mask-origin: 'content-box'; | | mask-origin-padding | mask-origin: 'padding-box'; | | mask-origin-border | mask-origin: 'border-box'; | | mask-origin-fill | mask-origin: 'fill-box'; | | mask-origin-stroke | mask-origin: 'stroke-box'; | | mask-origin-view | mask-origin: 'view-box'; |

Mask position

Set the initial position, relative to the mask position layer set by mask-origin, for the mask-image.

| Class | Properties | | ------------------- | -------------------------------- | | mask-bottom | mask-position: 'bottom'; | | mask-center | mask-position: 'center'; | | mask-left | mask-position: 'left'; | | mask-left-bottom | mask-position: 'left bottom'; | | mask-left-top | mask-position: 'left top'; | | mask-right | mask-position: 'right'; | | mask-right-bottom | mask-position: 'right bottom'; | | mask-right-top | mask-position: 'right top'; | | mask-top | mask-position: 'top'; |

You can customize your theme by updating the theme.maskPosition or theme.extend.maskPosition spaces in your tailwind.config.js file.

module.exports = {
  theme: {
    extend: {
      maskPosition: {
        "bottom-4": "center bottom 1rem",
      },
    },
  },
};

Mask repeat

Sets how mask images are repeated.

| Class | Properties | | ------------------- | --------------------------- | | mask-repeat | mask-repeat: 'repeat'; | | mask-no-repeat | mask-repeat: 'no-repeat'; | | mask-repeat-x | mask-repeat: 'repeat-x'; | | mask-repeat-y | mask-repeat: 'repeat-y'; | | mask-repeat-round | mask-repeat: 'round'; | | mask-repeat-space | mask-repeat: 'space'; |

Mask size

Specifies the size of the mask images.

| Class | Properties | | -------------- | --------------------- | | mask-auto | mask-size: auto; | | mask-cover | mask-size: cover; | | mask-contain | mask-size: contain; |

You can customize your theme by updating the theme.maskSize or theme.extend.maskSize spaces in your tailwind.config.js file.

module.exports = {
  theme: {
    extend: {
      maskSize: {
        16: "4rem",
      },
    },
  },
};

Mask type

Sets whether an SVG <mask> element is used as a luminance or an alpha mask.

| Class | Properties | | --------------------- | ----------------------- | | mask-type-luminance | mask-type: luminance; | | mask-type-alpha | mask-type: alpha; |