Loading...
Loading...
Sistema de diseño para el ERP SIBA (Sistema Bauman). Debe usarse SIEMPRE al crear o modificar componentes UI, páginas, formularios, o cualquier elemento visual. Garantiza consistencia en colores, tipografía, componentes, responsive y patrones de la aplicación.
npx skill4agent add jpropato/siba bauman-design-systemdark:| Propiedad | Valor |
|---|---|
| Font Family | Manrope (Google Fonts) |
| Weights | 400, 500, 600, 700, 800 |
| Import | |
// Clase Tailwind
className = 'font-sans'; // Manrope configurado como default| Librería | Import |
|---|---|
| Material Symbols | |
<span className="material-symbols-outlined">dashboard</span>| Token | HEX | Uso |
|---|---|---|
| | CTAs, estados activos, highlights |
| | Hover states, fondos suaves |
| | Bordes, elementos secundarios |
// Botón primario (CTA)
className = 'bg-gold text-white hover:bg-gold-light';
// Estado activo sidebar
className = 'bg-gold/10 text-gold border-l-2 border-gold';| Token | HEX / Tailwind | Uso |
|---|---|---|
| background | | Fondo principal |
| surface | | Cards, modales |
| border | | Bordes |
| text-primary | | Texto principal |
| text-secondary | | Texto secundario |
| text-muted | | Placeholders |
| Token | HEX / Tailwind | Uso |
|---|---|---|
| background | | Fondo principal |
| surface | | Cards, sidebar |
| border | | Bordes |
| text-primary | | Texto principal |
| text-secondary | | Texto secundario |
| charcoal | | Superficies elevadas |
| Token | Light | Dark |
|---|---|---|
| success | | |
| warning | | |
| error | | |
| info | | |
:root {
/* Gold Accent */
--gold-primary: #bd8e3d;
--gold-light: #e6c489;
--gold-muted: #c5a36a;
/* Backgrounds */
--background: #f8f8f7;
--surface: #ffffff;
--border: #e5e5e3;
/* Text */
--foreground: #18181b;
--muted: #52525b;
}
.dark {
--background: #121416;
--surface: #1a1c1e;
--border: #37322a;
--foreground: #fafafa;
--muted: #a1a1aa;
}// tailwind.config.js
export default {
darkMode: 'class',
theme: {
extend: {
colors: {
gold: {
DEFAULT: '#bd8e3d',
light: '#e6c489',
muted: '#C5A36A',
},
charcoal: '#2F3136',
luxury: '#35322c',
},
fontFamily: {
sans: ['Manrope', 'system-ui', 'sans-serif'],
},
},
},
};Mobile: < 768px (default)
Tablet: md: 768px
Desktop: lg: 1024px
Wide: xl: 1280px| Elemento | Mobile | Tablet | Desktop |
|---|---|---|---|
| Sidebar | Drawer (Sheet) | Colapsado 64px | Expandido 260px |
| Header | Hamburger | Full | Full |
| Grid cols | 1 | 2 | 3-4 |
// Desktop expandido: 260px
<aside className="hidden lg:flex w-[260px] bg-white dark:bg-surface-dark border-r">
// Desktop colapsado: 64px (solo iconos)
<aside className="hidden lg:flex w-16 bg-white dark:bg-surface-dark">
// Mobile: Sheet/Drawer
<Sheet>
<SheetTrigger className="lg:hidden">
<span className="material-symbols-outlined">menu</span>
</SheetTrigger>
<SheetContent side="left">...</SheetContent>
</Sheet>Dashboard (icon: dashboard) [SELECCIONADO]
Comercial (icon: trending_up) → Tickets, Obras
Finanzas (icon: account_balance) → Tesorería Ingresos, Tesorería Egresos
Administración (icon: corporate_fare) → Clientes, Sedes, Vehículos, Zonas
Seguridad (icon: admin_panel) → Usuarios, Roles
---
Soporte (icon: help_outline)
Configuración (icon: settings)// Link activo
<div className="relative flex items-center gap-3 px-3 py-3 rounded-lg bg-gold/10 text-gold">
<div className="absolute left-0 top-[20%] bottom-[20%] w-[3px] bg-gold rounded-r shadow-[0_0_10px_rgba(189,142,61,0.4)]" />
<span className="material-symbols-outlined">dashboard</span>
<span className="font-semibold">Dashboard</span>
</div>// CTA Primary (Gold)
<button className="bg-gold hover:bg-gold-light text-white font-bold rounded-lg px-4 py-2 transition-all shadow-lg shadow-gold/10">
Iniciar Sesión
</button>
// Secondary
<button className="bg-white dark:bg-gold/10 border border-border-light dark:border-gold/20 text-slate-700 dark:text-gold font-bold rounded-lg px-4 py-2">
Cancelar
</button><div className="bg-white dark:bg-charcoal/30 rounded-xl border border-[#e5e5e3] dark:border-[#37322a] p-6 shadow-sm"><div className="flex flex-col items-center justify-center min-h-[400px] border-2 border-dashed border-slate-200 dark:border-[#37322a] rounded-xl bg-white/50 dark:bg-charcoal/20 p-12 text-center">
<div className="size-20 bg-gold/10 rounded-full flex items-center justify-center mb-6 border border-gold/20">
<span className="material-symbols-outlined text-gold text-5xl">dashboard_customize</span>
</div>
<h3 className="text-2xl font-bold text-slate-900 dark:text-white mb-3">Título</h3>
<p className="text-slate-500 dark:text-slate-400 mb-8">Descripción...</p>
</div>// Transiciones globales (150-200ms)
className = 'transition-all duration-200';
// Hover en cards
className = 'hover:shadow-lg hover:-translate-y-0.5';
// Fade in entrada
className = 'animate-fade-in'; // Definir en CSS
// Sidebar collapse
className = 'transition-[width] duration-300 ease-in-out';dark:| Pantalla | Archivo |
|---|---|
| Login Light | |
| Login Dark | |
| Dashboard | |
docs/assets/logo-bauman.png