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

@ereo/plugin-tailwind

v0.2.13

Published

Zero-config Tailwind CSS integration for the EreoJS framework. Includes a custom preset with animations, colors, and sensible defaults.

Readme

@ereo/plugin-tailwind

Zero-config Tailwind CSS integration for the EreoJS framework. Includes a custom preset with animations, colors, and sensible defaults.

Installation

bun add @ereo/plugin-tailwind tailwindcss

Quick Start

// ereo.config.ts
import { defineConfig } from '@ereo/core'
import tailwind from '@ereo/plugin-tailwind'

export default defineConfig({
  plugins: [
    tailwind() // Zero-config setup
  ]
})

Plugin Options

interface TailwindPluginOptions {
  /** Content paths to scan (auto-detected by default) */
  content?: string[]
  /** Path to tailwind.config.js (auto-detected by default) */
  config?: string
  /** Enable dark mode */
  darkMode?: 'class' | 'media' | false
  /** Use EreoJS preset */
  usePreset?: boolean
}

Default Values

const defaults = {
  content: ['./app/**/*.{js,ts,jsx,tsx}', './components/**/*.{js,ts,jsx,tsx}'],
  config: 'tailwind.config.js',
  darkMode: 'class',
  usePreset: true
}

With Custom Options

import tailwind from '@ereo/plugin-tailwind'

export default defineConfig({
  plugins: [
    tailwind({
      content: ['./src/**/*.{js,ts,jsx,tsx}'],
      darkMode: 'media',
      usePreset: true
    })
  ]
})

Key Features

  • Zero Configuration: Works out of the box with sensible defaults
  • EreoJS Preset: Custom preset with animations, typography, and colors
  • Dark Mode Support: Built-in dark mode with class-based toggling (default)
  • Animation Utilities: Pre-built fade, slide, and scale animations
  • Custom Color Palette: EreoJS brand colors (ereo-50 through ereo-950)
  • Typography Defaults: Inter and JetBrains Mono font families
  • Virtual CSS Module: Import Tailwind via virtual:tailwind.css
  • Config Generation: Helper functions to generate Tailwind config files

EreoJS Preset

The preset includes the following extensions:

Color Palette

| Class | Hex | |-------|-----| | ereo-50 | #f5f7ff | | ereo-100 | #ebf0fe | | ereo-200 | #d6e0fd | | ereo-300 | #b3c7fb | | ereo-400 | #8aa8f8 | | ereo-500 | #6285f4 | | ereo-600 | #4361ee | | ereo-700 | #3451d1 | | ereo-800 | #2c43aa | | ereo-900 | #273b87 | | ereo-950 | #1a2552 |

Animations

  • animate-fade-in - Fade in (0.2s ease-out)
  • animate-slide-in - Slide in from left (0.3s ease-out)
  • animate-slide-up - Slide up from bottom (0.3s ease-out)
  • animate-scale-in - Scale in (0.2s ease-out)

Extended Spacing

  • 18 = 4.5rem (72px)
  • 88 = 22rem (352px)
  • 128 = 32rem (512px)

Font Families

  • font-sans: Inter, ui-sans-serif, system-ui, ...
  • font-mono: JetBrains Mono, ui-monospace, ...

Additional Utilities

  • Border radius: rounded-4xl (2rem)
  • Box shadow: shadow-inner-sm
  • Z-index: z-60, z-70, z-80, z-90, z-100

Using the Preset

// tailwind.config.js
import { getEreoTailwindConfig } from '@ereo/plugin-tailwind'

export default getEreoTailwindConfig({
  // Add your customizations here
  theme: {
    extend: {
      colors: {
        brand: '#ff6b6b'
      }
    }
  }
})

Virtual CSS Module

Import Tailwind styles without creating a CSS file:

import 'virtual:tailwind.css'

Helper Functions

generateConfig(options?)

Generate Tailwind config file content:

import { generateConfig } from '@ereo/plugin-tailwind'

const configContent = generateConfig()

generateCSSEntry()

Generate CSS entry file content:

import { generateCSSEntry } from '@ereo/plugin-tailwind'

const cssContent = generateCSSEntry()
// Returns:
// @tailwind base;
// @tailwind components;
// @tailwind utilities;
//
// /* Custom styles below */

Exports

// Default export
import tailwind from '@ereo/plugin-tailwind'

// Named exports
import {
  ereoPreset,
  getEreoTailwindConfig,
  generateConfig,
  generateCSSEntry
} from '@ereo/plugin-tailwind'

// Types
import type { TailwindPluginOptions } from '@ereo/plugin-tailwind'

Documentation

For full documentation, visit the EreoJS Documentation.

Part of EreoJS

This package is part of the EreoJS monorepo - a modern full-stack JavaScript framework.

License

MIT