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 🙏

© 2025 – Pkg Stats / Ryan Hefner

@atomsix/ui

v2.0.4

Published

Design System React + Tailwind da Atomsix - Nova versão com zero configuração

Readme

@atomsix/ui

Design System (React + Tailwind) da Atomsix com zero configuraçã4. Use os componentes:

import { Button } from '@atomsix/ui';

function MyComponent() {
  return (
    <div>
      <Button variant="primary">Clique Aqui</Button>
    </div>
  );
}

Solução de Problemas

Se você encontrar erros como AtomProvider is not defined ou problemas com estilos, consulte nosso Guia de Solução de Problemas.

@atomsix/ui

Design System (React + Tailwind) da Atomsix com zero configuração necessária.

Nova versão 2.0.4! Esta versão resolve problemas de importação com o AtomProvider e adiciona um componente de fallback. Veja abaixo como migrar.

Instalação

npm install @atomsix/ui
# ou
yarn add @atomsix/ui
# ou
pnpm add @atomsix/ui

Uso Rápido (Zero Config)

  1. Adicione o Provider na raiz da sua aplicação:
// Opção 1: Use o AtomProvider padrão
import { AtomProvider } from '@atomsix/ui';

// Opção 2: Se tiver problemas, use o provider de fallback
// import { AtomProvider } from '@atomsix/ui/fallback';

function App() {
  return (
    <AtomProvider>
      {/* Seu conteúdo aqui */}
    </AtomProvider>
  );
}
  1. Configure o Tailwind (uma única vez):

Para Tailwind CSS 3.x (Com arquivo de configuração)

// tailwind.config.js
module.exports = {
  // ...outras configurações
  plugins: [
    require('@atomsix/ui/plugin'),
    // ...outros plugins
  ],
}

Para Tailwind CSS 4.x com Vite

// vite.config.js ou vite.config.ts
import { defineConfig } from 'vite'
import react from '@vitejs/plugin-react'
import tailwindcss from '@tailwindcss/vite'
import atomsixPlugin from '@atomsix/ui/plugin'

export default defineConfig({
  plugins: [
    react(),
    tailwindcss({
      // Aplique o plugin da @atomsix/ui aqui
      config: {
        plugins: [atomsixPlugin],
      }
    }),
  ],
})
  1. Uso Manual Alternativo (Se os estilos não aparecerem corretamente):

Se você encontrar problemas com os estilos, adicione diretamente o CSS:

// Na sua aplicação principal
import '@atomsix/ui/components.css';
  1. Use os componentes:
import { Button, Modal } from '@atomsix/ui';

function MyComponent() {
  return (
    <div>
      <Button variant="primary">Clique Aqui</Button>
    </div>
  );
}

Configuração Manual (Opcional)

Para projetos que precisam de mais controle, você também pode:

  • Importar o preset diretamente: require('@atomsix/ui/tailwind.preset')
  • Importar os estilos CSS: import '@atomsix/ui/styles.css'

Veja os tokens em styles.css e o preset em tailwind.preset.js.

Migrando da Versão Anterior

Se você estava usando a versão anterior do @atomsix/ui, aqui estão as principais diferenças:

  1. Não é mais necessário importar o CSS manualmente
  2. Não é mais necessário configurar o preset do Tailwind diretamente
  3. Novo componente: AtomProvider deve ser adicionado na raiz da aplicação

Passos para Migração:

  1. Atualize para a nova versão:
npm install @atomsix/ui@latest
  1. Substitua a configuração antiga do Tailwind:

Para Tailwind CSS 3.x:

// Antes
module.exports = {
  presets: [require('@atomsix/ui/tailwind.preset')],
}

// Agora
module.exports = {
  plugins: [require('@atomsix/ui/plugin')],
}

Para Tailwind CSS 4.x com Vite:

// vite.config.js
import { defineConfig } from 'vite'
import react from '@vitejs/plugin-react'
import tailwindcss from '@tailwindcss/vite'
import atomsixPlugin from '@atomsix/ui/plugin'

export default defineConfig({
  plugins: [
    react(),
    tailwindcss({
      config: {
        plugins: [atomsixPlugin],
      }
    }),
  ],
})
  1. Adicione o Provider na raiz da aplicação:
import { AtomProvider } from '@atomsix/ui';

function App() {
  return (
    <AtomProvider>
      {/* Seu conteúdo aqui */}
    </AtomProvider>
  );
}
  1. Remova as importações CSS manuais (não são mais necessárias):
// Remova esta linha, não é mais necessária:
import '@atomsix/ui/styles.css';