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

@fluityy/designsystem

v0.2.19

Published

Flui Design System — componentes React com Tailwind v4 e tokens semânticos

Readme

Flui Design System

Design system multiplataforma. Os tokens (em JSON) são a fonte única da verdade; o Style Dictionary gera a saída para cada plataforma. Hoje: React + Vite. Amanhã: Flutter (sem duplicar tokens).

Arquitetura

tokens/*.json            ← FONTE DA VERDADE (platform-agnostic)
   │  style-dictionary.config.mjs
   ▼
src/styles/tokens.css    ← CSS vars (--flui-*)   [web, gerado]
src/lib/tokens/tokens.ts ← manifesto p/ o editor [web, gerado]
build/flutter/*.dart     ← constantes Dart        [futuro, gerado]

src/lib/                 ← biblioteca de componentes (React + CVA)
src/showcase/            ← plataforma de showcase + editor de tokens ao vivo

Camadas de token:

  1. Primitivos (color.brand.500) — paleta crua, não usar em componentes.
  2. Semânticos (semantic.primary.default) — intenção; é o que os componentes consomem. Referenciam primitivos via var(), então editar um primitivo cascateia para os semânticos automaticamente.

Os componentes nunca usam valores hard-coded — só utilitários do Tailwind mapeados para as CSS vars em src/styles/global.css (bg-primary, text-fg, rounded-md, etc.).

Scripts

| Comando | O que faz | | -------------------- | ---------------------------------------------------- | | npm run dev | Gera tokens + sobe o showcase (Vite) | | npm run build | Gera tokens + typecheck + build de produção | | npm run tokens | Regenera CSS/TS a partir de tokens/*.json | | npm run tokens:watch | Regenera os tokens em watch enquanto edita o JSON |

Showcase + editor ao vivo

npm run dev → o painel esquerdo lista todos os tokens. Editar um valor sobrescreve a CSS var correspondente em runtime (setProperty), os componentes reagem na hora, e a alteração é salva no localStorage.

  • Exportar JSON baixa só os tokens alterados (keyed por path, ex. "color.brand.500"), pronto para revisar e aplicar nos tokens/*.json.
  • Resetar (por token ou tudo) remove o override e volta ao valor original.

O editor é uma camada de experimentação. Para tornar uma mudança permanente, aplique o valor no JSON de origem e rode npm run tokens.

Como estender

Novo token: edite/crie um arquivo em tokens/ e rode npm run tokens. Para expô-lo como utilitário do Tailwind, adicione o mapeamento no bloco @theme de src/styles/global.css.

Novo componente: crie src/lib/components/<Nome>/<Nome>.tsx usando cva para variantes e apenas utilitários baseados em token; exporte em src/lib/components/index.ts; adicione uma seção em src/showcase/Gallery.tsx.

Suporte a Flutter: descomente o bloco flutter em style-dictionary.config.mjs. Os mesmos tokens/*.json passam a gerar build/flutter/flui_tokens.dart.