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

@regardio/tailwind

v0.3.1

Published

Regardio Tailwind CSS utilities and configuration

Readme

@regardio/tailwind

Regardio Tailwind CSS utilities and configuration

A unified Tailwind CSS toolchain for Regardio projects, providing:

  • tailwind-variants - Type-safe component variants
  • fluid-tailwindcss - Fluid typography and spacing
  • tailwind-merge - Intelligent class merging
  • Shared CSS styles - Reset, base styles, grid utilities, animations

Installation

pnpm add @regardio/tailwind

Peer Dependencies

  • tailwindcss >= 4.0.0

JavaScript Utilities

import { tv, cn, twMerge, type VariantProps } from '@regardio/tailwind/utils';

// Create component variants with tv()
const button = tv({
  base: 'px-4 py-2 rounded font-medium',
  variants: {
    color: {
      primary: 'bg-blue-500 text-white',
      secondary: 'bg-gray-200 text-gray-800',
    },
    size: {
      sm: 'text-sm',
      md: 'text-base',
      lg: 'text-lg',
    },
  },
  defaultVariants: {
    color: 'primary',
    size: 'md',
  },
});

// Use cn() for simple class merging
const className = cn('base-class', condition && 'conditional-class', 'override-class');

// Type-safe variant props
type ButtonProps = VariantProps<typeof button>;

CSS Styles

Import all shared styles at once:

@import "@regardio/tailwind/styles";

Or import individual files as needed:

/* Tailwind CSS + standard plugins (tailwindcss, tw-animate-css, fluid-tailwindcss) */
@import "@regardio/tailwind/styles/plugins.css";

/* Modern CSS reset with accessibility features */
@import "@regardio/tailwind/styles/reset.css";

/* Common base styles (typography, borders) */
@import "@regardio/tailwind/styles/base.css";

/* Grid utilities (.u-container, .u-grid) */
@import "@regardio/tailwind/styles/grid.css";

/* Animation keyframes and duration classes */
@import "@regardio/tailwind/styles/animations.css";

Included Styles

Plugins (plugins.css)

Tailwind CSS v4 with Regardio's standard plugins:

  • tailwindcss - Core Tailwind CSS
  • tw-animate-css - Animation utilities
  • fluid-tailwindcss - Fluid typography and spacing plugin

Reset (reset.css)

A modern CSS reset based on Josh Comeau's reset with Regardio enhancements:

  • Box-sizing reset
  • Theme color scheme support (data-theme="light|dark")
  • Typography wrapping (text-wrap: pretty/balance)
  • Form element normalization
  • Media element defaults
  • Reduced motion accessibility

Base (base.css)

Common base styles that build on the reset:

  • Font feature settings (ligatures)
  • Border/outline defaults
  • Typography base styles

Grid Utilities (grid.css)

Reusable layout classes:

  • .u-container - Max-width container with horizontal padding
  • .u-grid - 12-column CSS grid with container queries
  • .u-grid-full - Full-width grid item (12 columns)
  • .u-grid-half - Half-width grid item (6 columns)
  • .u-grid-third - Third-width grid item (4 columns)
  • .u-grid-quarter - Quarter-width grid item (3 columns)

Configure via CSS custom properties:

:root {
  --spacing-grid-max: 1200px;
  --spacing-grid-gutter: 1rem;
}

Animations (animations.css)

Common animation keyframes and utilities:

  • Duration classes: .duration-2000 through .duration-6000
  • Fade: animate-fade-in, animate-fade-out, animate-fade-in-slow, animate-fade-out-slow
  • Slide: animate-slide-in-up, animate-slide-in-down, animate-slide-in-left, animate-slide-in-right
  • Scale: animate-scale-in, animate-scale-out
  • Image: animate-image-fade-in, animate-image-fade-out (6s duration for slideshows)

Why This Package?

  • Unified toolchain - All Tailwind utilities in one place
  • Fluid design - Built-in support for fluid typography and spacing
  • Type safety - Full TypeScript support with VariantProps
  • Tree-shakeable - Import only what you need
  • Consistent styles - Shared reset, base, and utilities across projects

License

MIT License — Free to use in commercial and open source projects.