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

@mletras/mftools

v0.1.1

Published

Design system compartilhado para microfrontends Multiverso das Letras

Readme

@mletras/mftools

Design system compartilhado para microfrontends do Multiverso das Letras.

Instalação

npm install @mletras/mftools
# ou
yarn add @mletras/mftools

Uso

1. Importar o CSS no seu global.css

@import '@mletras/mftools/theme.css';
@import 'tailwindcss';
@source '../node_modules/@mletras/mftools/dist';
@import '@mletras/mftools/style.css';

/* Seus estilos customizados abaixo */

2. Usar os componentes

import { Button, Modal, PageShell, Badge } from '@mletras/mftools';

export function MyPage() {
  return (
    <PageShell title="Minha Página" description="Descrição">
      <Button variant="primary">Clique aqui</Button>
    </PageShell>
  );
}

Componentes Disponíveis

Layout

  • PageShell — Layout de página com header e conteúdo
  • PageHeader — Cabeçalho da página com título, descrição e ações

UI

  • Button — Botão com variantes (primary, secondary, danger, ghost, ghostDanger)
  • Badge — Badge/etiqueta com cores por tone
  • Modal — Modal/overlay com header, footer e conteúdo
  • ConfirmDialog — Diálogo de confirmação (sim/não)
  • Select — Select customizado com menu dropdown
  • Field — Campo de formulário com label e hint
  • PageLoader — Loader de página inteira
  • EmptyState — Estado vazio com ícone, título e descrição
  • DocumentTitle — Define o título do documento
  • ErrorBoundary — Boundary de erro React
  • ErrorFallback — Fallback amigável quando algo quebra

Context

  • GlobalLoadingProvider — Provider de loading global (overlay)
  • useGlobalLoading — Hook para controlar o loading

Lib

  • inputClass — Classes CSS para inputs
  • labelClass - Classes CSS para labels

Tokens de Tema

O theme.css define as seguintes variáveis CSS:

--color-mletras-black: #000000;
--color-mletras-red: #e03c2e;
--color-mletras-blue: #243f8c;
--color-mletras-blue-dark: #1c326f;
--color-mletras-gray: #8aa7af;
--color-mletras-dot: #c5d0d4;
--font-sans: 'Inter', system-ui, -apple-system, sans-serif;
--max-width-layout: 1380px;

Desenvolvimento

# Rodar dev server
yarn dev

# Build
yarn build

# Lint
yarn lint

Publicar

# Build antes de publicar (roda automaticamente via prepublishOnly)
npm publish