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

@nimbuslab/lumina

v0.4.0

Published

Design system React acessível construído sobre Radix UI e Tailwind CSS v4, otimizado para Next.js App Router e React 19. Tokens semânticos elegantes, temas dark/light/mood e ícones unificados.

Downloads

382

Readme

Lumina

Design system React acessível, sobre Radix UI e Tailwind CSS v4. Otimizado para Next.js App Router, React 19 e Server Components.

Read in English

npm version npm downloads license CI

Site · Componentes · Tokens · Temas · Roadmap · Changelog


Por que Lumina

  • Acessível por padrão: primitivos Radix UI cobrem ARIA, foco e teclado
  • Tailwind CSS v4 nativo: @theme block, @source automático, zero tailwind.config.ts
  • Tokens semânticos elegantes: canvas, ink, surface, surface-elevated, hairline, tint coexistindo com tokens shadcn
  • Tree-shakeable de verdade: build por arquivo (ESM puro), só carrega o que você importa
  • Animation-library-agnostic: moods prontos para interpolação com GSAP, sem dependência obrigatória
  • OG images nativos: templates Open Graph para Next.js (nimbus-og, changelog-card)
  • Icons unificados: wrapper único sobre Lucide (já incluso) e ícones custom, com ponto de extensão opt-in para Phosphor

Instalação

bun add @nimbuslab/lumina

Peer dependencies

bun add react react-dom next tailwindcss
# opcional, se for animar com GSAP
bun add gsap

| Peer | Versão | |---|---| | react | ^19.0.0 | | react-dom | ^19.0.0 | | next | >=15.0.0 | | tailwindcss | ^4.0.0 | | gsap (opcional) | >=3.12.0 |

Quick start

/* app/globals.css */
@import "@nimbuslab/lumina/styles/globals.css";
// app/page.tsx
import { Button } from "@nimbuslab/lumina/components/button"
import { Card } from "@nimbuslab/lumina/components/card"

export default function Page() {
  return (
    <Card>
      <Button>Clique aqui</Button>
    </Card>
  )
}

Pronto. Light mode por padrão, dark mode com class="dark" no <html>.

Componentes

52 módulos de componentes, a maioria sobre primitivos Radix. Cada módulo exporta também as suas partes (Card traz CardHeader, CardTitle, CardContent e assim por diante):

Accordion · Alert · AlertDialog · Analytics · AspectRatio · Avatar · AvatarGroup · Badge · Breadcrumb · Button · Calendar · Card · Carousel · Chart · Checkbox · Collapsible · Combobox · Command · ContextMenu · DatePicker · Dialog · Drawer · DropdownMenu · ErrorPage · Form · HoverCard · Input · InputGroup · InputOTP · Label · Menubar · NavigationMenu · Pagination · Popover · Progress · RadioGroup · Resizable · ScrollArea · Select · Separator · Sheet · Sidebar · Skeleton · Slider · Sonner · Switch · Table · Tabs · Textarea · Toggle · ToggleGroup · Tooltip

E utilitários: Icon (Lucide e ícones custom), OG templates, Hooks.

Ícones Phosphor

O namespace Phosphor existe como ponto de extensão e vem vazio: phosphor-react não é dependência do pacote. Para usar, instale por conta própria e importe da biblioteca:

bun add phosphor-react

Tokens de design

Compatíveis com shadcn (padrão de mercado)

--background  --foreground
--card        --card-foreground
--popover     --popover-foreground
--primary     --primary-foreground
--secondary   --secondary-foreground
--muted       --muted-foreground
--accent      --accent-foreground
--destructive --destructive-foreground
--border  --input  --ring  --radius
--sidebar-*   --chart-1..5

Aliases semânticos elegantes

--color-canvas             /* equivale a background */
--color-ink                /* equivale a foreground */
--color-ink-muted          /* equivale a muted-foreground */
--color-surface            /* equivale a card */
--color-surface-elevated   /* card com 6% de white */
--color-surface-sunken     /* background com 4% de black */
--color-hairline           /* border com 60% de alpha */
--color-tint               /* equivale a primary */
--color-tint-subtle        /* primary com 10% de alpha */

Brand

--color-nimbus-50 ... --color-nimbus-950

Temas

  • Light: padrão (sem classe)
  • Dark: class="dark" no <html>
  • Moods: .mood-warm, .mood-light, .mood-intense

Aplicação programática (compatível com GSAP):

import gsap from "gsap"
import { buildMoodProxy, applyMoodToElement } from "@nimbuslab/lumina/tokens/moods"

const proxy = buildMoodProxy("dark")
const target = buildMoodProxy("warm")

gsap.to(proxy, {
  ...target,
  duration: 0.6,
  onUpdate: () => applyMoodToElement(proxy, document.documentElement),
})

Roadmap

  • [x] v0.2.0: primeira release no npm
  • [x] v0.3.0: release público open source com licença MIT
  • [x] v0.4.0: site oficial em lumina.nimbuslab.com.br com showcase, docs e dogfooding do próprio Lumina
  • [ ] v0.5.0: temas adicionais e variantes de mood
  • [ ] v1.0.0: API estável, breaking changes só em majors

Compatibilidade

| Lumina | React | Next.js | Tailwind | |---|---|---|---| | 0.x | ^19 | >=15 | ^4 |

Bundle

Build por arquivo (bundle: false no tsup), tree-shaking máximo. Importe só o que usa:

// pega só o Button
import { Button } from "@nimbuslab/lumina/components/button"

Cada componente carrega só seus primitivos Radix necessários.

Contribuindo

Lumina é mantido pela equipe da nimbuslab. PRs externos são aceitos por convite. Para reportar bugs ou sugerir features, contate [email protected].

Veja CONTRIBUTING.md para mais detalhes, o código de conduta e a política de segurança para reportar vulnerabilidades.

Stack

Radix UI · Tailwind CSS v4 · TypeScript · tsup · Changesets · Bun

Licença

MIT © nimbuslab

A licença MIT vale a partir da 0.3.0. A 0.2.0, publicada antes da abertura do código, saiu no npm como UNLICENSED.

Histórico de versões em CHANGELOG.md.

Construído em Brasília, DF, Brasil