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

@k2600x/design-system

v3.5.1

Published

A reusable design system built with React and TypeScript.

Readme

Design System

A comprehensive design system built with React, TypeScript, and CSS. This system provides a consistent set of UI components to help you build beautiful, accessible, and maintainable user interfaces.

🚀 Características

  • 🎨 Componentes Reutilizables - Biblioteca de componentes UI consistentes
  • 🖥️ Responsive - Componentes que funcionan en todos los tamaños de pantalla
  • 🎭 Temas - Soporte para múltiples temas
  • 🧩 Componible - Componentes flexibles y personalizables
  • 📱 Accesible - Construido siguiendo las mejores prácticas de accesibilidad

📁 Estructura del Proyecto

design-system/
├── components/           # Componentes de UI reutilizables
│   ├── Button/
│   │   ├── Button.tsx    # Componente Button
│   │   └── Button.css    # Estilos del componente Button
│   └── ...              # Otros componentes
├── docs/                # Documentación del proyecto
│   └── ...              # Archivos de ayuda y guías
├── public/              # Archivos estáticos
├── .gitignore
├── package.json
├── pnpm-lock.yaml
└── README.md

Para más detalles sobre la estructura, consulta PROJECT_STRUCTURE.md.

🛠 Instalación

  1. Clona el repositorio:

    git clone [URL_DEL_REPOSITORIO]
    cd design-system
  2. Instala las dependencias:

    pnpm install

🧩 Componentes

Componentes Disponibles

  • Button - Botón versátil para diversas acciones
  • Más componentes serán agregados...

📚 Documentación

Para más información sobre cómo usar los componentes, consulta la documentación en el directorio /docs.

🧪 Desarrollo

Para desarrollar nuevos componentes o modificar los existentes:

  1. Crea un nuevo directorio en /components
  2. Desarrolla el componente siguiendo las convenciones
  3. Añade ejemplos de uso en la documentación
  4. Documenta el componente en /docs

Storybook

Para visualizar los componentes de forma aislada utiliza Storybook:

pnpm storybook

Para generar una versión estática de la documentación:

pnpm build-storybook

Para ejecutar tests automáticos sobre las historias y detectar errores en los componentes, asegúrate de tener un navegador disponible para Playwright. Puedes instalar Chromium con apt o descargar los navegadores de Playwright:

pnpm exec playwright install

Si ya tienes Chromium instalado en el sistema, exporta la ruta antes de ejecutar los tests:

export CHROMIUM_PATH=$(which chromium-browser)

Luego ejecuta:

pnpm test-storybook

🤝 Contribución

Las contribuciones son bienvenidas. Por favor, lee las pautas de contribución antes de enviar un pull request.

📄 Licencia

Este proyecto está bajo la Licencia MIT.

Design tokens are the smallest, most basic design elements that define the visual style of your application. They include:

  • Colors
  • Typography
  • Spacing
  • Border radius
  • Shadows
  • Transitions
import { tokens } from './lib/tokens';

// Using tokens in your components
function MyComponent() {
  return (
    <div className={tokens.colors.background}>
      <h1 className={tokens.typography.heading1}>Hello World</h1>
      <p className={tokens.typography.body}>
        This is some text with consistent styling.
      </p>
    </div>
  );
}

Customizing the Theme

To customize the theme, you can override the default tokens in your Tailwind configuration:

// tailwind.config.js
const { tokens } = require('./lib/tokens');

module.exports = {
  theme: {
    extend: {
      colors: tokens.colors,
      borderRadius: tokens.radius,
      boxShadow: tokens.shadow,
      // ... other theme extensions
    },
  },
};

Themes in Storybook

Storybook includes light, dark, and futuristic themes. Use the theme selector in the Storybook toolbar to switch between them. Your selection is stored in local storage so it persists while navigating between stories.

Migration Guide

If you're upgrading from a previous version, please see our Migration Guide for instructions on updating your components to use the new design tokens system.

Getting Started

Installation

To use this design system in your project, install it via npm or yarn.

bash
npm install my-design-system

or

bash
yarn add my-design-system

Required dependencies

The design system expects the following packages to exist in your application:

  • react and react-dom (version 17 or newer)
  • tailwindcss v4 (plus postcss and autoprefixer)

If these are not present, add them along with the design system:

pnpm add react react-dom tailwindcss@^4 autoprefixer postcss

After installing Tailwind CSS, follow the steps in REQUIREMENTS.md to configure it with the provided preset.

Usage

All component styles are bundled with the package. Import the CSS once in your application entry point:

import '@k2600x/design-system/style.css';

Import the components you need from the package:

typescript
import { Button, Input } from 'my-design-system';

function MyComponent() {
  return (
    <div>
      <Button>Click me</Button>
      <Input />
    </div>
  );
}

Contributing

Contributions are welcome! Please read our contributing guidelines for more information.

Contrato de trabajo

Codex debe seguir el Manifiesto Codex para cualquier entrega en este repositorio.

License

This project is licensed under the MIT License.