From 07a13b7ca28cc726775c079e3ce5ce606d21cc63 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jorem=20Ju=C3=A1rez?= Date: Tue, 18 Aug 2026 12:47:47 -0600 Subject: [PATCH] Promueve el morado del lanzador a token de marca MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit El morado dejó de ser la codificación de un bloque: ahora también pinta la pantalla del kiosco y el diálogo "Abrir código QR", así que es el color del checador y sube a beyond_variables.scss como $beyond-kiosco (+ dark/darker). Entran también $beyond-ink-softer para texto de cuerpo y celdas, y $beyond-surface-active para el hover de un control ya tintado. El naranja NO sube: sigue siendo un bloque en una sola pantalla. La regla queda escrita en la cabecera — un color se vuelve token cuando lo necesita una segunda pantalla, no antes. El lanzador consume los tokens nuevos en vez de sus variables locales. Co-Authored-By: Claude Opus 5 (1M context) --- .../static/src/scss/beyond_variables.scss | 25 ++++++++++++++----- .../static/src/webclient/beyond_launcher.scss | 18 ++++++------- 2 files changed, 26 insertions(+), 17 deletions(-) diff --git a/addons/beyond_base/static/src/scss/beyond_variables.scss b/addons/beyond_base/static/src/scss/beyond_variables.scss index 4c12e8c..36055f6 100644 --- a/addons/beyond_base/static/src/scss/beyond_variables.scss +++ b/addons/beyond_base/static/src/scss/beyond_variables.scss @@ -11,12 +11,17 @@ // the backend and the POS: Odoo's own variables are declared with !default and // therefore respect whatever is defined here. // -// SCOPE — only cross-cutting brand tokens live here. The launcher's orange -// (#C55A22) and purple (#8C4A72) are deliberately NOT tokens: they are not -// brand colours, they are the colour-coding of the three launcher blocks and -// mean nothing outside that screen. Publishing them in this bundle would push -// them into the backend and POS and invite their use as semantic colours. -// They live as local variables in webclient/beyond_launcher.scss. +// SCOPE — only cross-cutting brand tokens live here. A colour graduates to a +// token when a second screen needs it, not before. +// · The purple graduated (18-aug-2026): it started as the launcher's "QR" +// block and now also paints the kiosk page and the "Abrir código QR" +// dialog, so it is the checador's colour and lives here as +// $beyond-kiosco. +// · The launcher's orange (#C55A22) did NOT: it is still the colour-coding +// of one block on one screen and means nothing outside it. It stays a +// local variable in webclient/beyond_launcher.scss. Publishing it in this +// bundle would push it into the backend and POS and invite its use as a +// semantic colour. // // TYPOGRAPHY — the design uses Manrope. The @font-face rules are declared in // webclient/beyond_launcher.scss because the woff2 files are only wired into @@ -29,13 +34,21 @@ $beyond-primary: #0E6B57; $beyond-primary-dark: #0A5B49; $beyond-primary-darker: #084C3D; +// Checador purple. The launcher's "QR" block, the kiosk page background and +// the "Abrir código QR" dialog, with its hover/pressed states. +$beyond-kiosco: #8C4A72; +$beyond-kiosco-dark: #7C3E64; +$beyond-kiosco-darker: #6B3556; + // Surfaces $beyond-surface: #F6F5F1; // warm page background $beyond-surface-hover: #ECEAE3; // hover on a surface-coloured control +$beyond-surface-active: #E2DFD6; // pressed/hover on an already-tinted control // Ink $beyond-ink: #23201D; // primary text, icon strokes, focus ring $beyond-ink-soft: #4A453E; // secondary labels +$beyond-ink-softer: #7A736A; // body copy, table cells, muted icon strokes $beyond-ink-muted: #A39C91; // supporting text (signature, metadata) // Web client brand colour: $o-brand-primary, $o-action and Bootstrap's diff --git a/addons/beyond_base/static/src/webclient/beyond_launcher.scss b/addons/beyond_base/static/src/webclient/beyond_launcher.scss index 9023ba9..cee9b79 100644 --- a/addons/beyond_base/static/src/webclient/beyond_launcher.scss +++ b/addons/beyond_base/static/src/webclient/beyond_launcher.scss @@ -12,9 +12,10 @@ // popover service writes. :has() is supported by the target browsers // (BRIEF §8). // -// Local, on purpose: the orange and purple below are the launcher's block -// colour-coding, not brand colours, so they are NOT tokens in -// scss/beyond_variables.scss. See the SCOPE note there. +// Local, on purpose: the orange below is this one block's colour-coding, not a +// brand colour, so it is NOT a token in scss/beyond_variables.scss. The purple +// used to live here too and graduated to $beyond-kiosco once the kiosk page and +// the "Abrir código QR" dialog started using it. See the SCOPE note there. // ============================================================================= // "Panel General" block @@ -22,11 +23,6 @@ $beyond-launcher-panel: #C55A22; $beyond-launcher-panel-hover: #B14E1B; $beyond-launcher-panel-active: #984115; -// "QR" block -$beyond-launcher-qr: #8C4A72; -$beyond-launcher-qr-hover: #7C3E64; -$beyond-launcher-qr-active: #6B3556; - $beyond-font-family: Manrope, ui-sans-serif, system-ui, sans-serif; // ----------------------------------------------------------------------------- @@ -229,10 +225,10 @@ $beyond-font-family: Manrope, ui-sans-serif, system-ui, sans-serif; } .beyond_block_qr { - background: $beyond-launcher-qr; + background: $beyond-kiosco; - &:hover { background: $beyond-launcher-qr-hover; } - &:active { background: $beyond-launcher-qr-active; } + &:hover { background: $beyond-kiosco-dark; } + &:active { background: $beyond-kiosco-darker; } } // -------------------------------------------------------------------------