From 9ffba43ab44bce9b2caf2e2cfa62cb52bc5e5349 Mon Sep 17 00:00:00 2001 From: josedario87 Date: Sat, 18 Oct 2025 03:16:30 -0600 Subject: [PATCH] =?UTF-8?q?Feat:=20Implementar=20paleta=20de=20colores=20p?= =?UTF-8?q?or=20categor=C3=ADa=20en=20sliders?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - Agregar composable useCategoryColors con 8 colores coordinados (light/dark) - Colores por categoría: Fragancia (lavanda), Aroma (verde menta), Sabor (rojo), Sabor Residual (naranja), Acidez (amarillo), Dulzor (rosa), Sensación en Boca (azul), Impresión Global (turquesa) - Eliminar hints de texto de SliderIntensidad (showDescription = false por defecto) - Aplicar colores dinámicos a headers y sliders de cada categoría - Aumentar font-weight de headers a 700 (bold) - Los colores se adaptan automáticamente al tema light/dark --- .../app/components/cata/FormularioMuestra.vue | 71 ++++++--- .../app/components/cata/SliderIntensidad.vue | 34 ++++- nuxt4/app/composables/useCategoryColors.ts | 81 ++++++++++ .../app/composables/useColorCustomization.ts | 138 ++++++++++++------ 4 files changed, 256 insertions(+), 68 deletions(-) create mode 100644 nuxt4/app/composables/useCategoryColors.ts diff --git a/nuxt4/app/components/cata/FormularioMuestra.vue b/nuxt4/app/components/cata/FormularioMuestra.vue index 219e794..aa85509 100644 --- a/nuxt4/app/components/cata/FormularioMuestra.vue +++ b/nuxt4/app/components/cata/FormularioMuestra.vue @@ -35,18 +35,20 @@
-
Fragancia
+
Fragancia
@@ -54,18 +56,20 @@
-
Aroma
+
Aroma
@@ -73,18 +77,20 @@
-
Sabor
+
Sabor
@@ -92,18 +98,20 @@
-
Sabor Residual
+
Sabor Residual
@@ -111,18 +119,20 @@
-
Acidez
+
Acidez
@@ -130,18 +140,20 @@
-
Dulzor
+
Dulzor
@@ -149,18 +161,20 @@
-
Sensación en la Boca
+
Sensación en la Boca
@@ -168,18 +182,20 @@
-
Impresión Global
+
Impresión Global
@@ -271,18 +287,20 @@
-
Fragancia
+
Fragancia
@@ -290,18 +308,20 @@
-
Aroma
+
Aroma
@@ -309,18 +329,20 @@
-
Sabor
+
Sabor
@@ -328,18 +350,20 @@
-
Sabor Residual
+
Sabor Residual
@@ -347,18 +371,20 @@
-
Acidez
+
Acidez
@@ -366,18 +392,20 @@
-
Dulzor
+
Dulzor
@@ -385,18 +413,20 @@
-
Sensación en la Boca
+
Sensación en la Boca
@@ -404,18 +434,20 @@
-
Impresión Global
+
Impresión Global
@@ -560,6 +592,7 @@ interface FormularioMuestraProps { const props = defineProps() const { actualizarIntensidad: actualizarIntensidadCatacion } = useCatacion() +const { getCategoryColor } = useCategoryColors() // Listas para los selectores const sensacionesBoca = SENSACIONES_BOCA @@ -693,16 +726,14 @@ watch(() => props.muestra.otrasNotas, (newVal) => { .form-section-title { font-size: 0.875rem; - font-weight: 600; + font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; - opacity: 0.75; } .form-subsection-title { font-size: 0.8125rem; - font-weight: 600; - opacity: 0.7; + font-weight: 700; margin-bottom: 0.5rem; } diff --git a/nuxt4/app/components/cata/SliderIntensidad.vue b/nuxt4/app/components/cata/SliderIntensidad.vue index 63101d8..26e9626 100644 --- a/nuxt4/app/components/cata/SliderIntensidad.vue +++ b/nuxt4/app/components/cata/SliderIntensidad.vue @@ -1,5 +1,5 @@