Aplicacion

Patrones vigentes de integración por stack. La referencia actual es @nuevauno/brand con Urbanist como única familia tipográfica.

React Router + React

go · pos · branding
// tailwind.config.mjs
import nuBrand from '@nuevauno/brand/tailwind-preset';

export default {
  presets: [nuBrand],
  content: ['./app/**/*.{ts,tsx}'],
};
// app/root.tsx
import './app.css';

export function links() {
  return [
    { rel: 'stylesheet', href: '/css/brand.css' },
  ];
}
// React component
export function Button({ children }) {
  return (
    <button className="bg-accent hover:bg-accent-hover text-white font-medium rounded-md px-4 py-2 text-sm">
      {children}
    </button>
  );
}

Vue 3

home (legacy)
// main.ts
import '@nuevauno/brand/css/brand.css';

<!-- Vue SFC -->
<template>
  <button class="bg-accent hover:bg-accent-hover text-white font-medium rounded-md px-4 py-2 text-sm">
    <slot />
  </button>
</template>

Patrones comunes

Section header

Ejemplo de sección

<h2 class="font-mono text-xs uppercase tracking-widest text-gray-400">
  Seccion
</h2>

Card

Titulo

Contenido de la card

<div class="bg-white rounded-xl border border-gray-200 p-6">
  ...
</div>

Icon desde CDN

<img
  src="https://branding.nuevauno.com/icons/go.svg"
  alt="Go"
  class="w-6 h-6"
/>

Eliminar duplicados

Al integrar el preset, eliminar de cada tailwind.config:

  • Definiciones de colors.accent
  • Definiciones de fontFamily.sans y fontFamily.mono
  • Imports de fuentes externas distintas de Urbanist
  • Variables CSS duplicadas (--primary-color: #fe4a23)