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

@lemontech/sour-theme

v1.3.8

Published

Tema para antd personalizado para proyectos de Lemontech

Readme

@lemontech/sour-theme

Design system basado en Ant Design que exporta tema, tokens y temas por producto para proyectos Lemontech.

📖 Documentación en Storybook

| Sección | Link | | --- | --- | | Instalación y uso | Getting Started | | Tokens de diseño | Tokens | | Integración Tailwind CSS | Tailwind CSS | | Paleta de colores | Semantic Colors | | Componentes | Components | | Arquitectura y mantenibilidad | Maintainability |

Versiones requeridas

| Herramienta | Versión | |-------------|-----------| | Node.js | lts/krypton (>=20.19.0) | | pnpm | 9.0.0 | | Ant Design | >=6.0.0 |

Levantar el proyecto

# 1. Usar la versión correcta de Node
nvm install
nvm use

# 2. Instalar dependencias
pnpm install

# 3. Levantar Storybook en http://localhost:6006
pnpm storybook

Scripts disponibles

| Script | Descripción | |---------------------|----------------------------------------------------------| | pnpm storybook | Inicia Storybook en modo desarrollo (puerto 6006) | | pnpm build:lib | Compila la librería en dist/ (ESM + CJS + tipos) | | pnpm build-storybook | Genera el build estático de Storybook | | pnpm lint | Corre ESLint sobre todo el proyecto | | pnpm pack --dry-run | Previsualiza qué archivos se publicarían en npm |

Instalación como dependencia

npm install @lemontech/sour-theme
# o
pnpm add @lemontech/sour-theme

Requiere antd >= 6.0.0, @ant-design/icons >= 6.0.0, react >= 18 como peer dependencies.

Fuente requerida

El tema usa Open Sans como fuente principal. Agrégala en tu index.html:

<link rel="preconnect" href="https://fonts.googleapis.com" />
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin />
<link
  href="https://fonts.googleapis.com/css2?family=Open+Sans:ital,wght@0,300..800;1,300..800&display=swap"
  rel="stylesheet"
/>

Uso

Tema por producto

import { lemonsuiteTheme } from '@lemontech/sour-theme'
import { ConfigProvider } from 'antd'

export default function App() {
  return (
    <ConfigProvider theme={lemonsuiteTheme}>
      {/* tu app */}
    </ConfigProvider>
  )
}

Temas disponibles:

| Export | Producto | Color primario | |----------------------------|---------------------|----------------| | lemonsuiteTheme | LemonSuite | Azure | | casetrackingFirmsTheme | Casetracking Firms | Orange | | casetrackingTheme | Casetracking | Purple | | rawTheme | Base (sin primario) | — |

Tokens de diseño

import { tokens } from '@lemontech/sour-theme'

const { color, spacing, fontSize } = tokens

const Component = () => (
  <div style={{
    color: color.azure[500],
    padding: spacing.m,
    fontSize: fontSize.s,
  }}>
    Componente con tokens del tema
  </div>
)

Grupos de tokens disponibles: color, spacing, fontSize, lineHeight, letterSpacing, radius, lineWidth, fontWeight, fontFamily.

Tailwind CSS

El paquete incluye archivos CSS pre-generados para Tailwind v4 con tokens semánticos. Cada producto tiene su propio archivo — los nombres de clases son iguales en todos, solo cambia qué color hex hay detrás de primary.

/* src/index.css */
@import "tailwindcss";
@import "@lemontech/sour-theme/tailwind-lemonsuite.css";
/* @import "@lemontech/sour-theme/tailwind-casetracking.css";       */
/* @import "@lemontech/sour-theme/tailwind-casetracking-firms.css"; */

| Archivo | Producto | primary | | --- | --- | --- | | tailwind-lemonsuite.css | LemonSuite | azure | | tailwind-casetracking.css | Casetracking | purple | | tailwind-casetracking-firms.css | Casetracking Firms | orange | | tailwind-theme.css | Base sin primary | — |

Colores disponibles como clases: neutral, primary, secondary, success, warning, danger, info — cada uno con su escala 0–900.

<div className="bg-neutral-0 text-neutral-900 rounded-m p-m" />
<button className="bg-primary-500 hover:bg-primary-600 text-white rounded-l" />
<span className="text-danger-600 bg-danger-50 border border-danger-200" />

Cuando el diseño especifique un color, usa siempre un valor concreto de los tokens disponibles — por ejemplo bg-primary-500, text-neutral-700 o border-danger-200. Los tokens cubren la escala completa (0–900) para cada color semántico.

Para Tailwind v3, importa tokens directamente en tailwind.config.js. Ver documentación completa.

Build de la librería

pnpm build:lib

Genera en dist/:

dist/
├── index.js                       # ESM (import)
├── index.cjs                      # CommonJS (require)
├── index.d.ts                     # Tipos
├── tailwind-theme.css             # Tailwind v4 — base sin primary
├── tailwind-lemonsuite.css        # Tailwind v4 — LemonSuite
├── tailwind-casetracking.css      # Tailwind v4 — Casetracking
└── tailwind-casetracking-firms.css # Tailwind v4 — Casetracking Firms

Release

El release se gestiona desde GitHub Actions → Release → Run workflow. Selecciona el tipo de bump:

  • patch — bug fixes o ajustes menores → 1.3.3 → 1.3.4
  • minor — nuevo componente o variante → 1.3.3 → 1.4.0
  • major — cambio de API incompatible → 1.3.3 → 2.0.0

El workflow hace bump de versión, compila, crea el tag en git y publica en npm automáticamente. Storybook se redespliega en GitHub Pages al finalizar.