From 22d0b3f51dd543b5bb9fcd242e97b25841233e1c Mon Sep 17 00:00:00 2001 From: Arcadio Quintero Date: Fri, 26 Jan 2024 21:28:42 -0500 Subject: [PATCH 1/2] use esbuild to build the app --- project.json | 2 +- src/theme.less | 26 ++++++++++++++++++++++++++ 2 files changed, 27 insertions(+), 1 deletion(-) create mode 100644 src/theme.less diff --git a/project.json b/project.json index 7c99217..604103c 100644 --- a/project.json +++ b/project.json @@ -7,7 +7,7 @@ "tags": [], "targets": { "build": { - "executor": "@angular-devkit/build-angular:browser", + "executor": "@nx/angular:browser-esbuild", "outputs": ["{options.outputPath}"], "options": { "outputPath": "dist/series-workspace", diff --git a/src/theme.less b/src/theme.less new file mode 100644 index 0000000..d26737f --- /dev/null +++ b/src/theme.less @@ -0,0 +1,26 @@ +// For more information: https://ng.ant.design/docs/customize-theme/en +// -------- import official less file ----------- +//@import "../node_modules/ng-zorro-antd/ng-zorro-antd.less"; +@import "../node_modules/ng-zorro-antd/ng-zorro-antd.compact.less"; + +@imdb-yellow: #f5c518; // Color amarillo de IMDB +@imdb-black: #000000; // Negro +@imdb-grey: #f4f4f4; // Gris claro para fondos + +// -------- override less variables ----------- +// View all variables: https://github.com/NG-ZORRO/ng-zorro-antd/blob/master/components/style/themes/default.less + +// Sobrescribir variables de NG-ZORRO +@primary-color: @imdb-yellow; // Color primario +@layout-header-background: @imdb-black; // Color de fondo del header +@layout-body-background: @imdb-grey; // Color de fondo del contenido +@text-color: darken(@imdb-grey, 70%); // Color del texto +@heading-color: @imdb-black; // Color de los encabezados +@border-radius-base: 4px; // Radio de borde +@link-color: @imdb-yellow; // Color de los enlaces + +// Otros colores de estado +@success-color: #52c41a; // Verde para éxitos +@warning-color: #faad14; // Amarillo para advertencias +@error-color: #f5222d; // Rojo para errores +@info-color: @primary-color; // Color para información, usa el color primario From e51645ce5e4e953f5a1e40a3f4303044146965ae Mon Sep 17 00:00:00 2001 From: Arcadio Quintero Date: Fri, 26 Jan 2024 21:33:21 -0500 Subject: [PATCH 2/2] fix lint --- src/theme.less | 27 ++++++++++++--------------- 1 file changed, 12 insertions(+), 15 deletions(-) diff --git a/src/theme.less b/src/theme.less index 73f0358..8e9eb28 100644 --- a/src/theme.less +++ b/src/theme.less @@ -1,27 +1,24 @@ // For more information: https://ng.ant.design/docs/customize-theme/en // -------- import official less file ----------- -@import "../node_modules/ng-zorro-antd/ng-zorro-antd.compact.less"; +@import '../node_modules/ng-zorro-antd/ng-zorro-antd.compact.less'; - -@imdb-yellow: #f5c518; +@imdb-yellow: #f5c518; @imdb-black: #000000; @imdb-grey: #f4f4f4; // -------- override less variables ----------- // View all variables: https://github.com/NG-ZORRO/ng-zorro-antd/blob/master/components/style/themes/default.less - -@primary-color: @imdb-yellow; +@primary-color: @imdb-yellow; @layout-header-background: @imdb-black; -@layout-body-background: @imdb-grey; +@layout-body-background: @imdb-grey; @text-color: darken(@imdb-grey, 70%); -@heading-color: @imdb-black; -@border-radius-base: 4px; -@link-color: @imdb-yellow; - - -@success-color: #52c41a; -@warning-color: #faad14; -@error-color: #f5222d; -@info-color: @primary-color; +@heading-color: @imdb-black; +@border-radius-base: 4px; +@link-color: @imdb-yellow; + +@success-color: #52c41a; +@warning-color: #faad14; +@error-color: #f5222d; +@info-color: @primary-color;