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

tamia

v8.0.0

Published

Opinionated CSS Tailwind v4 theme with sensible defaults for typography, colors, spacing, and common UI patterns

Readme

Tâmia

npm Node.js CI status

An opinionated CSS Tailwind v4 theme with sensible defaults for typography, colors, spacing, and common UI patterns. Restricts and enhances the default Tailwind theme for faster decision making and improved consistency, leans towards semantic design tokens (--radius-button, --leading-heading) rather than presentational (--radius-sm, --leading-snug).

Washing your code. A book on clean code for frontend developers

Tech stack

Getting started

  1. Install Tâmia and peer dependencies:
npm install tailwindcss clsx
  1. Create a theme, theme.css:
@theme {
  --font-heading: 'Mondwest-Regular', sans-serif;
  --color-primary: #577290;
}

@media (prefers-color-scheme: dark) {
  :root {
    --color-primary: #2e3033;
  }
}
  1. Create typography utilities, components/typography.css (or import default ones):
@utility heading-1 {
  /* ... */
}
@utility typo-body {
  /* ... */
}
  1. Add the following to your global styles:
/* Import Tailwind, Tâmia, and the theme */
@import 'tailwindcss';
@import 'tamia/index.css';

/* Explicitly import each component */
@import 'tamia/components/prose.css';
@import 'tamia/components/input.css';
@import 'tamia/components/button.css';

/* Import site theme */
@import './theme.css';

/* Import site utilities */
@import './components/typography.css';
  1. Install the Prettier plugin for automatic class sorting:
npm install -D prettier-plugin-tailwindcss

Add to your Prettier config (prettier-plugin-tailwindcss must be last):

module.exports = {
  tailwindStylesheet: './src/index.css',
  tailwindFunctions: ['clsx'],
  plugins: [
    // other plugins…
    require.resolve('prettier-plugin-tailwindcss')
  ]
};
  1. Install the ESLint plugin for Tailwind CSS linting:
npm install -D eslint-plugin-better-tailwindcss

Add to your ESLint flat config:

import eslintPluginBetterTailwindcss from 'eslint-plugin-better-tailwindcss';

export default [
  {
    ...eslintPluginBetterTailwindcss.configs.recommended,
    settings: {
      'better-tailwindcss': {
        entryPoint: 'src/index.css'
      }
    },
    rules: {
      ...eslintPluginBetterTailwindcss.configs.recommended.rules,
      // Disable class ordering — handled by prettier-plugin-tailwindcss
      'better-tailwindcss/enforce-consistent-class-order': 'off'
    }
  }
];

Utilities

Most Tailwind classes work as they should, with the following additions:

  • grid-auto-narrow / grid-auto-wide — auto-fit grid layouts
  • expander — makes the element full-bleed on mobile
  • frame — aspect-ratio container with cover children (combine with aspect-*)

Tailwind components

These components should be imported explicitly to the app CSS file:

  • heading-1 / heading-2 / heading-3 — headings of various levels
  • typo-body / typo-small / typo-large — basic typography presets
  • .link — styled anchor with hover/focus states
  • .quoted-link — link where only <u> children are underlined
  • .prose — rich text container (headings, lists, tables, blockquotes, images)
    • .prose-small / .prose-intro — prose variants
  • .button — minimal button base (import components/button.css)
  • .input — styled text input

React components

These components should be imported explicitly:

  • IconBase.tsx — SVG icon wrapper

The name

Tâmia is a chipmunk in Portuguese. It refers to Squirrelstrap, my love of small cheeky creatures and “Chip ’n Dale Rescue Rangers” (which is exactly framework’s aim).

History

Tâmia has evolved from a folder on my disk with a few CSS and JS files that I copypasted to every new project in 2000s. Notable iterations are:

  • Grunt + Stylus + jQuery (2013)
  • Webpack + browser-sync + ES6/Babel + Web Components + Stylus (2016)
  • Webpack 2 + browser-sync + PostCSS + cssnext + CSS Modules + ES6/Babel (2017)
  • React + Emotion + ES6/Babel (2018)
  • React + styled-components + styled-system + TypeScript (2019)
  • React + styled-components + TypeScript + custom primitive components (2022)
  • React + vanilla-extract + TypeScript (2023)
  • React + Panda CSS + TypeScript (2024)
  • React + Tailwind CSS + TypeScript (2026)

License

The MIT License, see the included License.md file.