Files
Hugo 87028143ee feat: Design System completo + propuestas branding + social media
- tokens.css: CSS custom properties para Tema A (Industrial) y Tema B (Moderno)
- design-system/index.html: 20 componentes con theme switcher
- social-media/: 3 propuestas de look & feel para redes sociales
- branding/: opciones de branding y look & feel aprobadas
- Brief del proyecto incluido
2026-03-31 21:36:00 +00:00

221 lines
6.2 KiB
CSS

/* ============================================
NEXUS AUTOPARTS — Design Tokens
Dual Theme: Industrial (A) & Modern (B)
============================================ */
/* ---- Base Reset ---- */
:root {
--base-unit: 4px;
--radius-sm: 4px;
--radius-md: 8px;
--radius-lg: 12px;
--radius-xl: 16px;
--radius-full: 9999px;
/* Spacing scale (4px grid) */
--space-0: 0;
--space-1: 4px;
--space-2: 8px;
--space-3: 12px;
--space-4: 16px;
--space-5: 20px;
--space-6: 24px;
--space-8: 32px;
--space-10: 40px;
--space-12: 48px;
--space-16: 64px;
--space-20: 80px;
--space-24: 96px;
/* Breakpoints (reference only — use in media queries) */
/* --bp-sm: 640px; --bp-md: 768px; --bp-lg: 1024px; --bp-xl: 1280px; --bp-2xl: 1536px; */
/* Transition */
--transition-fast: 150ms ease;
--transition-base: 250ms ease;
--transition-slow: 400ms ease;
/* Z-index scale */
--z-dropdown: 100;
--z-sticky: 200;
--z-modal-backdrop: 300;
--z-modal: 400;
--z-toast: 500;
--z-tooltip: 600;
}
/* ============================================
TEMA A — Industrial Robusto (Dark)
============================================ */
[data-theme="industrial"], :root {
/* --- Surfaces --- */
--color-bg-primary: #0d0d0d;
--color-bg-secondary: #1a1a1a;
--color-bg-tertiary: #252525;
--color-bg-elevated: #2e2e2e;
--color-bg-hover: #333333;
--color-bg-input: #1a1a1a;
--color-bg-card: #1a1a1a;
/* --- Accent --- */
--color-accent: #F5A623;
--color-accent-hover: #FFB84D;
--color-accent-active: #D4900E;
--color-accent-subtle: rgba(245, 166, 35, 0.12);
--color-accent-muted: rgba(245, 166, 35, 0.25);
/* --- Text --- */
--color-text-primary: #FFFFFF;
--color-text-secondary: #CCCCCC;
--color-text-tertiary: #888888;
--color-text-disabled: #555555;
--color-text-on-accent: #000000;
--color-text-link: #F5A623;
/* --- Borders --- */
--color-border: #333333;
--color-border-hover: #444444;
--color-border-focus: #F5A623;
--color-border-input: #404040;
/* --- Semantic --- */
--color-success: #34D399;
--color-success-bg: rgba(52, 211, 153, 0.12);
--color-warning: #FBBF24;
--color-warning-bg: rgba(251, 191, 36, 0.12);
--color-error: #EF4444;
--color-error-bg: rgba(239, 68, 68, 0.12);
--color-info: #60A5FA;
--color-info-bg: rgba(96, 165, 250, 0.12);
/* --- Shadows (dark theme = subtle glow) --- */
--shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.5);
--shadow-md: 0 4px 8px rgba(0, 0, 0, 0.5);
--shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.6);
--shadow-xl: 0 16px 48px rgba(0, 0, 0, 0.7);
--shadow-accent: 0 0 20px rgba(245, 166, 35, 0.15);
--shadow-inner: inset 0 2px 4px rgba(0, 0, 0, 0.4);
/* --- Typography --- */
--font-heading: 'Barlow Condensed', sans-serif;
--font-body: 'Barlow', sans-serif;
--font-mono: 'JetBrains Mono', 'Fira Code', monospace;
--font-weight-light: 300;
--font-weight-regular: 400;
--font-weight-medium: 500;
--font-weight-semibold: 600;
--font-weight-bold: 700;
--font-weight-extrabold: 800;
/* Heading weights (Barlow Condensed) */
--heading-weight: 800;
--heading-weight-sub: 600;
/* Type scale */
--text-xs: 0.75rem; /* 12px */
--text-sm: 0.875rem; /* 14px */
--text-base: 1rem; /* 16px */
--text-lg: 1.125rem; /* 18px */
--text-xl: 1.25rem; /* 20px */
--text-2xl: 1.5rem; /* 24px */
--text-3xl: 1.875rem; /* 30px */
--text-4xl: 2.25rem; /* 36px */
--text-5xl: 3rem; /* 48px */
--text-6xl: 3.75rem; /* 60px */
--leading-tight: 1.15;
--leading-normal: 1.5;
--leading-relaxed: 1.75;
--tracking-tight: -0.02em;
--tracking-normal: 0;
--tracking-wide: 0.05em;
--tracking-wider: 0.1em;
/* --- Component-specific --- */
--header-height: 64px;
--sidebar-width: 260px;
--sidebar-collapsed: 72px;
--input-height-sm: 32px;
--input-height-md: 40px;
--input-height-lg: 48px;
/* --- Radius (Industrial = sharper) --- */
--component-radius: var(--radius-sm);
--card-radius: var(--radius-md);
--button-radius: var(--radius-sm);
--input-radius: var(--radius-sm);
--badge-radius: var(--radius-sm);
--modal-radius: var(--radius-md);
}
/* ============================================
TEMA B — Tecnico Moderno (Light)
============================================ */
[data-theme="modern"] {
/* --- Surfaces --- */
--color-bg-primary: #FFFFFF;
--color-bg-secondary: #F8F9FF;
--color-bg-tertiary: #F0F1F8;
--color-bg-elevated: #FFFFFF;
--color-bg-hover: #EDEEF6;
--color-bg-input: #FFFFFF;
--color-bg-card: #FFFFFF;
/* --- Accent --- */
--color-accent: #FF6B35;
--color-accent-hover: #FF8555;
--color-accent-active: #E55A25;
--color-accent-subtle: rgba(255, 107, 53, 0.08);
--color-accent-muted: rgba(255, 107, 53, 0.18);
/* --- Text --- */
--color-text-primary: #1a1a2e;
--color-text-secondary: #4a4a6a;
--color-text-tertiary: #8888a8;
--color-text-disabled: #bbbbcc;
--color-text-on-accent: #FFFFFF;
--color-text-link: #FF6B35;
/* --- Borders --- */
--color-border: #E2E3EE;
--color-border-hover: #C8C9D8;
--color-border-focus: #FF6B35;
--color-border-input: #D0D1DE;
/* --- Semantic --- */
--color-success: #10B981;
--color-success-bg: rgba(16, 185, 129, 0.08);
--color-warning: #F59E0B;
--color-warning-bg: rgba(245, 158, 11, 0.08);
--color-error: #EF4444;
--color-error-bg: rgba(239, 68, 68, 0.08);
--color-info: #3B82F6;
--color-info-bg: rgba(59, 130, 246, 0.08);
/* --- Shadows --- */
--shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.06);
--shadow-md: 0 4px 12px rgba(0, 0, 0, 0.08);
--shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.1);
--shadow-xl: 0 16px 48px rgba(0, 0, 0, 0.12);
--shadow-accent: 0 4px 16px rgba(255, 107, 53, 0.2);
--shadow-inner: inset 0 2px 4px rgba(0, 0, 0, 0.04);
/* --- Typography --- */
--font-heading: 'Poppins', sans-serif;
--font-body: 'Poppins', sans-serif;
--font-mono: 'JetBrains Mono', 'Fira Code', monospace;
--heading-weight: 700;
--heading-weight-sub: 600;
/* --- Radius (Modern = rounder) --- */
--component-radius: var(--radius-md);
--card-radius: var(--radius-lg);
--button-radius: var(--radius-md);
--input-radius: var(--radius-md);
--badge-radius: var(--radius-full);
--modal-radius: var(--radius-xl);
}