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

@halvaradop/tailwindcss-utilities

v0.2.3

Published

A TailwindCSS plugin that provides a set of utilities to enhance the default functionalities and offer additional customization options.

Downloads

211

Readme

@halvaradop/tailwindcss-utilities

@halvaradop/tailwindcss-utilities is a Tailwind CSS plugin designed to enhance productivity in application development by providing additional utilities. These utilities optimize the workflow, making it easier and more efficient for users to access and manipulate data.

Installation

To install the plugin using npm or pnpm, ensure that Tailwind CSS and its configuration are already set up. If not, please refer to the Tailwind CSS installation guide for detailed instructions.

npm install -D @halvaradop/tailwindcss-utilities
// or
pnpm add --save-dev @halvaradop/tailwindcss-utilities

Configuration

To configure the plugin, add it to the plugins array in the Tailwind CSS configuration file.

// TypeScript
import type { Config } from "tailwindcss"
import plugin from "@halvaradop/tailwindcss-utilities"

const config: Config = {
  content: [],
  theme: {},
  plugins: [plugin],
}

export default config
// JavaScript
import plugin from "@halvaradop/tailwindcss-utilities"

/** @type {import('tailwindcss').Config} */
module.exports = {
  content: [],
  theme: {},
  plugins: [plugin],
}

Utilities

Set of utilites offer by the dependency.

Selectors

The selectors utility offers a set of selectors that provide improved access to HTML elements. Below is an example of usage:

Supported Tags

Structural Elements

  • head
  • body
  • main
  • footer
  • section
  • article
  • label
  • nav
  • div

Text Content

  • p
  • span
  • h1 to h6
  • a

List

  • ul
  • ol
  • li

Forms

  • button
  • form
  • input
  • label

Tables

  • table
  • tr
  • td

Media

  • img
  • figure
  • picture
  • caption
  • figcaption

Usage

<section class="li:mb-5">
  <article class="my-5"></article>
  <li></li>
</section>

Font size dynamic

The font size dynamic utility enables modern scale typographic support using the clamp function. This function dynamically adjusts the font size based on the viewport of the device, ensuring clear and responsive text in a linear manner.

Supported Utilities

  • fluency-{ xs | sm | base | lg | xl | 2xl | 3xl | 4xl | 5xl | 6xl }

Usage

<div>
  <h1 class="fluency-lg"></h1>
  <p class="fluency-sm"></p>
</div>

Scrollbar

The scrollbar utility provides variants for customizing the scrollbar of a component, particularly useful when a component presents overflow. These utilities work with the ::-webkit- prefix.

utilities supported

  • scroll: for styling the ::-webkit-scrollbar
  • thumb: for styling the ::-webkit-scrollbar-thumb
  • track: for styling the ::-webkit-scrollbar-track

Usage

<section class="overflow-y-hidden scroll:w-1 thumb:rounded-full thumb:bg-slate-400 track:my-1">
  <p></p>
</section>

Contributing

Here, you will find a guide on how to contribute to the project and the necessary steps to do so. Please read our Contributing Guidelines.

Code of Conduct

Please be aware that this project has a code of conduct, and we expect all contributors to follow these guidelines in their interactions. For more information, please read our Code of Conduct.