/* global React, Wordmark, Icon */ /* =========================================================== Design System Panel — overlay shown when toggled from Tweaks Brief explicitly requested: paleta HEX, tipografía, botones (estados), cards, inputs, badges, navegación, wordmark variants light/dark. =========================================================== */ function DesignSystemPanel({ open, onClose }) { if (!open) return null; return (
e.stopPropagation()} style={{ maxWidth: 1100, margin: '0 auto', background: 'var(--paper)', borderRadius: 14, padding: 40, boxShadow: '0 30px 80px rgba(0,0,0,.6)', }}> {/* Header */}

SLF Energía · Design System v0.1

Sistema visual y componentes

{/* Wordmark variants */}

FONDO CLARO · FULL

FONDO OSCURO · FULL

FONDO CLARO · COMPACTO

FONDO OSCURO · COMPACTO

{/* Palette */}
{/* Typography */}

Display · 72/64/56

Heading 1 · 48

Heading 2 · 32

Lead paragraph · 20px — descripciones de sección, subtítulos. text-wrap: balance / pretty.

Body · 16 — texto corrido para descripciones, copy general. Inter regular, line-height 1.5.

12.4 MWp · 47 proyectos · 99.4%

JETBRAINS MONO · CIFRAS · TAGS · EYEBROW

{/* Buttons */}

PRIMARY

SECONDARY

GHOST

WHATSAPP

{/* Inputs */}

Default

Focus state · kWh/mes

Dropdown

{/* Badges */}
Default Sin costo Regulación CO₂ evitado ISO 9001 1.84 MWp
{/* Cards */}

Default

Card title

Borde 1px var(--line), radius 12px.

Hover

Card title

Elevación + borde más oscuro.

Stat

12.4 MWp
capacidad instalada
{/* Nav */}
Default Active Hover

SLF Energía · Design System v0.1 · base inicial — se expande con cada nueva pantalla.

); } function DSSection({ title, subtitle, children }) { return (

{title}

{subtitle &&

{subtitle}

}
{children}
); } function Swatch({ hex, label, tone, border }) { return (
{hex}

{label}

); } Object.assign(window, { DesignSystemPanel });