diff --git a/CHANGELOG.md b/CHANGELOG.md index c4ca1e3..20bf326 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -11,6 +11,27 @@ y el versionado sigue [Versionado Semántico](https://semver.org/lang/es/): - **PARCHE** — arreglos de errores --- +## [1.20.0] — 2026-10-13 +### Cambiado — temas con personalidad +- **Cada tema trae ahora su letra**, no solo sus colores (`sans`, `mono`, + `serif` en `THEMES`). Antes los 336 `fontFamily:"monospace"` estaban + escritos a mano; ahora todos leen `C.mono`. +- **Temas: Cypherpunk · Ámbar · Piedra · Archivo.** + - *Cypherpunk*: sin cambios. + - *Ámbar*, pulido: fósforo de monitor antiguo, todo en letra de terminal, + brillo leve y líneas de barrido muy tenues; el texto deja de ser amarillo + chillón y el rojo de error se distingue del naranja. + - *Piedra* (nuevo): oscuro cálido, rojo teja y crema; títulos en Lora. + - *Archivo* (nuevo, claro): papel y tinta; Source Serif 4 y Courier Prime, + esquinas rectas y sin brillos. + - *Slate* y *Claro* se retiran. Quien los tuviera guardados pasa a + Cypherpunk y Archivo respectivamente. +- `instalar-fuentes.sh` instala también Lora, Source Serif 4 y Courier Prime + (OFL, Fontsource) y genera `vendor/fonts/temas.css`. **Faltan sus hashes**: + ejecutar `./instalar-fuentes.sh --hashes ~/fuentes-prueba` y pegarlos en + `ESPERADOS`. Mientras no estén instaladas, cada tema usa una letra parecida + del sistema. + ## [1.19.0] — 2026-10-13 ### Cambiado — experiencia de uso (primera ronda) Principio que guía esta ronda: **la app informa, no aconseja.** diff --git a/dashboard.html b/dashboard.html index d51417c..89ae5d1 100644 --- a/dashboard.html +++ b/dashboard.html @@ -26,11 +26,28 @@ @keyframes spin { from{transform:rotate(0deg)} to{transform:rotate(360deg)} } button:disabled { opacity:0.4; cursor:not-allowed !important; } input::placeholder { color: #4a6380; } + /* ── Retoques por tema (lo que los estilos en línea no alcanzan) ── */ + body[data-tema=piedra] [style*="box-shadow"], body[data-tema=archivo] [style*="box-shadow"] { box-shadow:none !important; } + body[data-tema=piedra] [style*="border-radius"]:not([style*="50%"]) { border-radius:3px !important; } + body[data-tema=archivo] [style*="border-radius"]:not([style*="50%"]) { border-radius:0 !important; } + body[data-tema=archivo] input::placeholder { color:#9b9282; } + body[data-tema=piedra] input::placeholder { color:#6c6157; } + body[data-tema=amber] input::placeholder { color:#6e5226; } + /* Los botones no heredan la letra por defecto: en los temas con letra propia, que la hereden. */ + body[data-tema=amber] :is(button,input,select,textarea), body[data-tema=piedra] :is(button,input,select,textarea), body[data-tema=archivo] :is(button,input,select,textarea) { font-family:inherit; } + /* Ámbar: fósforo de monitor antiguo — brillo leve y líneas de barrido muy tenues. */ + body[data-tema=amber] h2, body[data-tema=amber] [style*="font-weight: 700"] { text-shadow:0 0 7px rgba(255,176,0,0.35); } + body[data-tema=amber]::after { content:""; position:fixed; inset:0; pointer-events:none; z-index:200; + background:repeating-linear-gradient(to bottom, rgba(0,0,0,0) 0 2px, rgba(0,0,0,0.12) 2px 3px); } + ::-webkit-scrollbar-thumb { background: #1a2d42; } + +
@@ -52,6 +69,14 @@ return isMobile; } + // Cada tema trae sus colores Y su letra. La letra es lo que da carácter: + // con solo cambiar colores, todos los temas parecían el mismo. + // sans → texto corrido mono → datos, cifras, etiquetas + // serif → títulos (si el tema los quiere con serifa; si no, null) + // Las fuentes nuevas (Lora, Source Serif 4, Courier Prime) se sirven desde + // el propio nodo como las IBM Plex — ver instalar-fuentes.sh. Si aún no + // están instaladas, cada pila cae en una letra parecida del sistema. + const LETRA_TERMINAL = { sans:"'IBM Plex Sans','Helvetica Neue',sans-serif", mono:"monospace", serif:null, italica:false }; const THEMES = { cypherpunk: { bg:"#05080d", bgCard:"#090e16", bgHover:"#0d1520", @@ -63,51 +88,39 @@ red:"#f56565", redMuted:"rgba(245,101,101,0.08)", t1:"#dde6f0", t2:"#6b88a8", t3:"#3a4d63", headerBg:"rgba(5,8,13,0.93)", + ...LETRA_TERMINAL, }, amber: { - bg:"#0a0800", bgCard:"#110f00", bgHover:"#1a1500", - border:"#2a2000", borderBright:"#3d3000", - green:"#ffb300", greenMuted:"rgba(255,179,0,0.08)", - amber:"#ff8c00", amberMuted:"rgba(255,140,0,0.08)", - purple:"#ffcc44", purpleMuted:"rgba(255,204,68,0.08)", - blue:"#ffd966", blueMuted:"rgba(255,217,102,0.08)", - red:"#ff4400", redMuted:"rgba(255,68,0,0.08)", - t1:"#ffe066", t2:"#a8862e", t3:"#5c4810", - headerBg:"rgba(10,8,0,0.95)", + bg:"#0b0802", bgCard:"#110c04", bgHover:"#181107", border:"#2b1f0b", borderBright:"#3f2e12", green:"#ffb000", greenMuted:"rgba(255,176,0,0.09)", amber:"#ff8f1f", amberMuted:"rgba(255,143,31,0.09)", purple:"#ffc857", purpleMuted:"rgba(255,200,87,0.09)", blue:"#e0a64a", blueMuted:"rgba(224,166,74,0.09)", red:"#ff5533", redMuted:"rgba(255,85,51,0.09)", t1:"#ffd48a", t2:"#b8893f", t3:"#6e5226", headerBg:"rgba(11,8,2,0.95)", + sans:"monospace", mono:"monospace", serif:null, italica:false, // fósforo: todo en terminal }, - slate: { - bg:"#0e1117", bgCard:"#151b24", bgHover:"#1c2533", - border:"#1e2d3d", borderBright:"#2a3f57", - green:"#38bdf8", greenMuted:"rgba(56,189,248,0.08)", - amber:"#7dd3fc", amberMuted:"rgba(125,211,252,0.08)", - purple:"#a5b4fc", purpleMuted:"rgba(165,180,252,0.08)", - blue:"#38bdf8", blueMuted:"rgba(56,189,248,0.08)", - red:"#f87171", redMuted:"rgba(248,113,113,0.08)", - t1:"#e2eaf4", t2:"#6b8cad", t3:"#34495f", - headerBg:"rgba(14,17,23,0.95)", + piedra: { + bg:"#14110f", bgCard:"#1b1714", bgHover:"#231e1a", border:"#2c2520", borderBright:"#3d342d", green:"#93b083", greenMuted:"rgba(147,176,131,0.09)", amber:"#d6a145", amberMuted:"rgba(214,161,69,0.09)", purple:"#cf6a57", purpleMuted:"rgba(207,106,87,0.09)", blue:"#c8b79a", blueMuted:"rgba(200,183,154,0.09)", red:"#e0533f", redMuted:"rgba(224,83,63,0.09)", t1:"#eee6da", t2:"#a59886", t3:"#6c6157", headerBg:"rgba(20,17,15,0.95)", + sans:"'IBM Plex Sans','Helvetica Neue',sans-serif", mono:"monospace", serif:"'Lora',Charter,Georgia,serif", italica:false }, - light: { - bg:"#f4f6f9", bgCard:"#ffffff", bgHover:"#edf0f5", - border:"#dde3ec", borderBright:"#c8d2e0", - green:"#059669", greenMuted:"rgba(5,150,105,0.08)", - amber:"#d97706", amberMuted:"rgba(217,119,6,0.08)", - purple:"#7c3aed", purpleMuted:"rgba(124,58,237,0.08)", - blue:"#0284c7", blueMuted:"rgba(2,132,199,0.08)", - red:"#dc2626", redMuted:"rgba(220,38,38,0.08)", - t1:"#0f172a", t2:"#475569", t3:"#94a3b8", - headerBg:"rgba(244,246,249,0.97)", + archivo: { + bg:"#f2ede3", bgCard:"#f9f6ef", bgHover:"#ebe5d8", border:"#dcd3c1", borderBright:"#c7bca6", green:"#2e5a43", greenMuted:"rgba(46,90,67,0.09)", amber:"#946510", amberMuted:"rgba(148,101,16,0.09)", purple:"#1e2a46", purpleMuted:"rgba(30,42,70,0.09)", blue:"#3a5878", blueMuted:"rgba(58,88,120,0.09)", red:"#a5221b", redMuted:"rgba(165,34,27,0.09)", t1:"#1c1a17", t2:"#5b544a", t3:"#9b9282", headerBg:"rgba(242,237,227,0.96)", + sans:"'Source Serif 4',Charter,'Bitstream Charter',Georgia,serif", mono:"'Courier Prime','Courier 10 Pitch','Courier New',monospace", serif:"'Source Serif 4',Charter,'Bitstream Charter',Georgia,serif", italica:true }, }; const THEME_META = [ { id:"cypherpunk", label:"Cypherpunk", dot:"#00e87a" }, - { id:"amber", label:"Ámbar", dot:"#ffb300" }, - { id:"slate", label:"Slate", dot:"#38bdf8" }, - { id:"light", label:"Claro", dot:"#059669" }, + { id:"amber", label:"Ámbar", dot:"#ffb000" }, + { id:"piedra", label:"Piedra", dot:"#cf6a57" }, + { id:"archivo", label:"Archivo (claro)", dot:"#f2ede3" }, ]; + // Slate y Claro se retiraron en la v1.20: quien los tuviera guardados + // pasa al más parecido en vez de quedarse con un tema que ya no existe. + const TEMA_RETIRADO = { slate:"cypherpunk", light:"archivo" }; let C = THEMES.cypherpunk; - const setTheme = id => { C = THEMES[id] || THEMES.cypherpunk; }; + const setTheme = id => { + C = THEMES[id] || THEMES.cypherpunk; + // Lo que no se puede tocar desde los estilos en línea (esquinas, fondo + // de la página al estirar, brillos) va por CSS según data-tema. + try { document.body.dataset.tema = THEMES[id] ? id : "cypherpunk"; document.body.style.background = C.bg; } catch {} + }; const MOCK_FEES = { fastestFee:42, halfHourFee:28, hourFee:18, economyFee:8, minimumFee:3 }; const MOCK_MEMPOOL = { count:14821, vsize:28400000, total_fee:310000000 }; @@ -2719,10 +2732,14 @@ mb: b => `${(b/1e6).toFixed(2)} MB`, }; - const Badge = ({children, color}) => { const c=color||C.green; return {children}; }; + const Badge = ({children, color}) => { const c=color||C.green; return {children}; }; const Card = ({children, style, glow, innerRef}) =>