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

@anarchitects/tailwind

v0.0.1

Published

The framework-neutral Tailwind CSS v4 foundation for Anarchitects applications.

Readme

@anarchitects/tailwind

Framework-neutral Tailwind CSS v4 defaults for Anarchitects applications. The package provides a small, overridable visual foundation; it does not provide components, an Angular runtime wrapper, or a legacy tailwind.config.* preset.

Features

  • CSS-only, framework-neutral Tailwind v4 foundation.
  • Aggregate easy mode plus independently composable theme, base, and utility entry points.
  • Semantic design tokens with runtime dark-theme and density seams.
  • Accessibility-minded base styles and a small set of capability-oriented utilities.

Installation

yarn add @anarchitects/tailwind tailwindcss

Use Tailwind v4's official Vite, PostCSS, or CLI integration in the consuming application. Tailwind is a peer dependency so the consumer owns its build-tool integration and version within the supported v4 line.

Usage

Easy mode

Import the aggregate entry point once in the application's global stylesheet:

@import '@anarchitects/tailwind';

This loads the theme, accessibility-minded base rules, Tailwind utilities, and Anarchitects utilities in the required order.

Advanced mode

Import only the layers the application wants to use or replace:

@import '@anarchitects/tailwind/theme.css';
@import '@anarchitects/tailwind/base.css';
@import '@anarchitects/tailwind/utilities.css';

Omit base.css when the host owns its reset. Keep theme before utilities so token-driven utilities are available during compilation.

Configuration

Token overrides

Theme variables generate Tailwind utilities such as bg-anx-accent, text-anx-foreground, rounded-anx-control, and font-anx-sans. Override them after importing the foundation:

@import '@anarchitects/tailwind';

@theme {
  --color-anx-accent: oklch(0.72 0.18 145);
  --radius-anx-surface: 1rem;
}

The lower-level --anx-* custom properties are the runtime theme seam. Override them in ordinary selectors when a value must change at runtime:

[data-theme='dark'] {
  --anx-color-accent: oklch(0.74 0.16 255);
}

Theme and density conventions

  • data-theme="dark" activates dark semantic values and the dark: variant.
  • data-density="compact" activates compact spacing/control values and the compact: variant.
  • data-density="comfortable" activates comfortable values and the comfortable: variant.
  • Without these attributes, the light/default-density values apply.

The foundation includes reusable anx-stack, anx-cluster, anx-control, anx-surface, and anx-focus-ring utilities. These are styling infrastructure, not behavioral component contracts.

Source detection

The foundation opts out of automatic workspace detection with source(none) so production output is deterministic. Register the consumer application and every published package whose templates contain utility classes. @source paths are relative to the stylesheet where they appear, so adjust the examples for the consumer's layout.

Installed packages:

@import '@anarchitects/tailwind';
@source '../node_modules/@anarchitects/forms-angular';
@source '../node_modules/@anarchitects/auth-angular';

Workspace library sources:

@import '@anarchitects/tailwind';
@source '../../../libs/forms/angular';
@source '../../../libs/auth/angular';

Consumer paths that automatic detection does not cover:

@import '@anarchitects/tailwind';
@source './app';
@source './features';

Prefer static, complete utility class names in templates. Tailwind cannot detect dynamically assembled class fragments.

Accessibility baseline

The base layer supplies visible keyboard focus, reduced-motion behavior, inherited control typography, semantic foreground/background defaults, and correct handling of hidden and disabled states. Angular or other framework components still own ARIA semantics, focus management, validation, and interaction.

Exports

| Entry point | Purpose | | -------------------------------------- | -------------------------------------------- | | @anarchitects/tailwind | Aggregate easy mode | | @anarchitects/tailwind/theme.css | Theme tokens and runtime semantic properties | | @anarchitects/tailwind/base.css | Preflight and accessible baseline rules | | @anarchitects/tailwind/utilities.css | Tailwind and Anarchitects utilities/variants |

Repository ownership

This package incubates in anarchitecture-bricks-3tier while Storybook, Angular packages, and examples prove the CSS contract. It intentionally remains framework-neutral so it can later move to anarchitecture-community without changing its package name or public entry points.

See ADR-0003 and ADR-0004. Applications moving from the retired Common Angular UI packages should follow the Angular 22, Signal Forms, and Tailwind v4 migration guide.

Nx targets

yarn nx run tailwind:lint --skip-nx-cache
yarn nx run tailwind:test --skip-nx-cache
yarn nx run tailwind:build --skip-nx-cache
yarn nx run tailwind:typecheck --skip-nx-cache
yarn nx run tailwind:package --skip-nx-cache