Volver a Ingeniería
SISTEMA DE DISEÑO • MODELO 03

Luminos Design System: Librería UI Multi-Marca en TypeScript

Ingeniero de Sistemas UI & Líder de Accesibilidad
OBJETIVO DE ARQUITECTURA

Primitivas React + TypeScript polimórficas y accesibles impulsadas por variables CSS semánticas y presets de Tailwind.

TECH STACK
React 19 TS Generics Tailwind CSS Radix UI Playwright A11y
API DE COMPONENTES Y DESIGN TOKENS

Primitivas Polimórficas con Tipado Estricto

Inferencia estricta de props en TypeScript combinada con tokens semánticos para unificar dashboards y portales.

src/primitives/ActionPill.tsx REACT + TS GENERICS
import type { ComponentPropsWithoutRef, ElementType, ReactNode } from 'react';

type Tone = 'cyan' | 'emerald' | 'neutral';

type ActionPillProps<T extends ElementType = 'button'> = {
  as?: T;
  tone?: Tone;
  children: ReactNode;
} & Omit<ComponentPropsWithoutRef<T>, 'as' | 'children'>;

export function ActionPill<T extends ElementType = 'button'>({
  as,
  tone = 'cyan',
  className = '',
  children,
  ...rest
}: ActionPillProps<T>) {
  const Tag = as || 'button';
  return (
    <Tag data-tone={tone} className={`ui-pill ${className}`} {...rest}>
      {children}
    </Tag>
  );
}
tokens.system.json DESIGN TOKENS
COMPONENTES 42 Primitivas Tree-Shakeable
AUDITORÍA DE CONTRASTE AAA / AA Cero Errores A11y
VELOCIDAD DE DEV 3.2x Más Rápido Tokens Compartidos
--poq2-color-eng-accent (#38bdf8) — Tech Surface ACTIVO
--poq2-color-story-accent (#34d399) — Editorial VERIFICADO
Font Stack — Inter Variable UI BLOQUEADO