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

@smcore/corex-design

v1.3.0

Published

Design tokens and icon system for multi-framework applications

Readme

@smcore/corex-design

Sistema de diseño unificado para React, Vue y Tailwind CSS.

Instalación

npm install @smcore/corex-design

Uso con React + Tailwind

1. Configurar Tailwind

// tailwind.config.ts
import type { Config } from 'tailwindcss';
import { tailwindPreset } from '@smcore/corex-design/tailwind';

export default {
  content: ['./src/**/*.{js,ts,jsx,tsx}'],
  presets: [tailwindPreset],
} satisfies Config;
/* index.css (tailwind V4) */
@import 'tailwindcss';
@config "../tailwind.config.ts";
@import '@smcore/corex-design/css/fonts';
@import '@smcore/corex-design/css/themes';

2. Importar CSS del tema

// main.tsx
import { ThemeProvider } from '@smcore/corex-design/react';
import '@smcore/corex-design/css/fonts';
import '@smcore/corex-design/css/themes'; // omitir si ya está importado en index.css
import './index.css'; // tu archivo con @tailwind directives

3. Usar clases de Tailwind

// Colores semánticos
<div className="bg-background-primary text-text-primary">
  <button className="bg-interactive-primary hover:bg-interactive-primaryHover">
    Click
  </button>
</div>

// Paletas de color
<div className="bg-blue-100 text-gray-150" />

// Alertas
<div className="bg-background-success text-text-success border-border-success" />

4. Iconos

import { Check, Heart, ArrowRight } from '@smcore/corex-design/tailwind';

<Check size={24} className="text-status-success" />
<Heart size={24} />

5. Tema dinámico

import { useTheme } from '@smcore/corex-design/tailwind';

function ThemeToggle() {
  const { themeName, toggleTheme } = useTheme();
  return <button onClick={toggleTheme}>{themeName}</button>;
}

Uso con Vue

// main.ts
import { createApp } from 'vue';
import { ThemePlugin } from '@smcore/corex-design/vue';
import '@smcore/corex-design/css/fonts';
import '@smcore/corex-design/css/themes';

const app = createApp(App);
app.use(ThemePlugin);
<script setup>
import { useTheme } from '@smcore/corex-design/vue';
import { Check } from '@smcore/corex-design/vue';

const { toggleTheme } = useTheme();
</script>

<template>
  <Check :size="24" />
  <button @click="toggleTheme">Toggle</button>
</template>

Configuración

Edita design.config.ts para personalizar el sistema:

const config = {
  colors: {
    palettes: {
      gray: { 5: '#FAFAFA', /* ... */ 180: '#0A0A0A' },
      blue: { /* ... */ },
      // Agregar nuevas paletas
    },
    semantic: {
      light: { text: { primary: { palette: 'gray', shade: 150 } } },
      dark: { /* ... */ }
    }
  },
  // ...
};

Comandos

npm run add:color          # Agregar paleta de color
npm run add:icon           # Agregar icono SVG
npm run generate           # Regenerar tokens
npm run build              # Compilar librería

Demo

# desde la raíz del repo
npm install
npm run build

cd demo
npm install
npm run dev

Estructura

design-tokens/
├── design.config.ts       # Configuración central
├── src/
│   ├── tokens/core/       # Tokens (colores, tipografía, etc.)
│   ├── react/             # ThemeProvider, hooks, iconos
│   ├── vue/               # Plugin, composables, iconos
│   ├── tailwind/          # Preset para Tailwind
│   └── css/               # CSS variables
├── scripts/               # Generadores
└── demo/                  # Demo React + Tailwind

Clases Tailwind disponibles

Colores semánticos

  • text-{primary|secondary|tertiary|inverse|link|success|error|warning|info}
  • bg-background-{primary|secondary|tertiary|inverse|success|error|warning|info}
  • border-border-{primary|secondary|focus|success|error|warning|info}
  • bg-interactive-{primary|primaryHover|primaryActive|secondary|secondaryHover}
  • bg-status-{success|error|warning|info}

Paletas

  • {bg|text|border}-{gray|blue|sky|purple|red|yellow}-{5-180}

Licencia

MIT