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

@etus/ui

v0.4.0-beta.32

Published

Seven Design System - UI components for ETUS applications

Readme

@etus/ui

Seven Design System — componentes React 19 da ETUS, estilizados com Tailwind CSS 4 e os tokens do @etus/tokens (já embutidos neste pacote).

Publicado no npm público sob o scope @etus.

Requisitos

  • React 19 (react + react-dom)
  • Tailwind CSS 4.1+ com o plugin do seu bundler: @tailwindcss/vite (Vite) ou @tailwindcss/postcss (Next.js e demais pipelines PostCSS)

Tailwind não é opcional. Os componentes são classes utilitárias, e o styles.css deste pacote é uma folha de entrada do Tailwind (@theme, @utility, @source), não CSS puro. Sem o Tailwind processando esse arquivo, só os tokens e as fontes se aplicam: os componentes renderizam como HTML sem estilo e o build passa sem erro.

Instalação

pnpm add @etus/ui
# ou
npm install @etus/ui

tailwindcss é peer dependency: o gerenciador instala ou avisa quando falta.

Uso

No stylesheet global que o plugin do Tailwind processa, exatamente estas duas linhas:

@import "tailwindcss";
@import "@etus/ui/styles.css";

@etus/ui/styles.css já traz os tokens (light/dark), as fontes Inter e JetBrains Mono, a camada base mobile, as animações dos overlays (tw-animate-css) e o @source do próprio dist. Não é preciso apontar @source para node_modules, importar tw-animate-css à parte nem instalar @etus/tokens.

import { Button } from "@etus/ui";

export function App() {
  return <Button>Olá Seven</Button>;
}

Importe o stylesheet sempre via @import no CSS do pipeline do Tailwind, não via import "@etus/ui/styles.css" no JavaScript: como arquivo separado, o Tailwind não gera os utilitários dos componentes.

Vite

// vite.config.ts
import tailwindcss from "@tailwindcss/vite";

export default { plugins: [tailwindcss()] };

Next.js / PostCSS

// postcss.config.mjs
export default { plugins: { "@tailwindcss/postcss": {} } };

O stylesheet global (app/globals.css) é importado uma vez no layout raiz.

Conferindo a integração

Inspecione um <Button> renderizado: ele deve computar display: inline-flex e gap: var(--button-size-default-gap). Se ele aparece como um <button> nativo, o Tailwind não está processando o stylesheet que importa @etus/ui/styles.css (plugin ausente, ou o @import está em um arquivo fora do pipeline do Tailwind).

Alternativa: registry (seven add)

Para páginas sensíveis a peso ou quando você quer ser dono do código dos componentes, use a CLI @etus/seven (npx @etus/seven init + seven add button). O critério de escolha está em docs/distribution/react-consumption.md.