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

@atlure/tailwind-preset

v0.9.0

Published

Atlure Tailwind preset, generated from @atlure/tokens and shared by web (Tailwind) and mobile (NativeWind)

Downloads

1,394

Readme

@atlure/tailwind-preset

The Tailwind preset shared by atlure-web (Tailwind) and atlure-paw (NativeWind), so a colour or spacing value is defined once and resolves identically on both platforms.

This package is generated. Everything under generated/ is emitted by @atlure/tokens; editing it by hand fails the checksum test and CI's git diff --exit-code. To change a value, edit packages/tokens/src/tokens.ts and run pnpm build.

Usage

Web, in tailwind.config.js:

module.exports = {
  presets: [require("@atlure/tailwind-preset")],
  content: ["./src/**/*.{ts,tsx}"],
};

Mobile, where the NativeWind preset must come first:

module.exports = {
  presets: [require("nativewind/preset"), require("@atlure/tailwind-preset")],
  content: ["./app/**/*.{ts,tsx}", "./node_modules/@atlure/ui/src/**/*.{ts,tsx}"],
};

The @atlure/ui entry in content is required because that package ships untranspiled source.

Why Tailwind 3.4 and not 4

NativeWind 4 is built on Tailwind 3.4's JS presets mechanism. Tailwind 4 replaced it with CSS-first @theme, which cannot be shared with NativeWind 4 — so upgrading would mean maintaining two separate token configs, the exact duplication that broke both predecessor design systems. NativeWind 5 is preview-only and requires Tailwind 4. When it stabilises, @atlure/tokens already emits a theme.v4.css block, so the migration is a config swap rather than a token rewrite.

Tests

pnpm test runs Tailwind for real via PostCSS and asserts the compiled output, rather than merely checking the preset object's shape:

  • bg-primary resolves to hsl(var(--primary) / <alpha-value>)
  • border-border/20 resolves to hsl(var(--border) / 0.2) — the reason border is a solid token rather than the pre-multiplied rgba the prototype used
  • h-control-md and h-control-lg resolve to the shared control-height scale
  • text-base carries its paired line height
  • an unknown token emits no utility