Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

154
Vistas
dynamic colors in the html :root

I need to have a page with dynamic colors that come from the database. in a sass file I have the styles in variables

$color-primary: #56b4d8;

$theme-colors: (primary: $color-primary,
secondary: #56b4d8,
success: #0ebd65,
info: #198ae3,
warning: #fed713,
danger: #e64b4b,
light: #f8f9fa,
dark: #1a1a1a);

the primary color that is applied to the boostrap classes (text-primary, bg-primary, btn-primary) I want the sass $ color-primary variable to be filled with my data from DB

I am using asp.net core html, sass and gulp. This is possible

about 4 years ago · Juan Pablo Isaza
1 Respuestas
Responde la pregunta

0

I think you have to add asp.net the question's tags because this is where the main problem lies.

You can not send dynamic variables to Sass but there may be an ASP.NET extensions that generates a Sass file.

Remember that Sass files cannot be read directly in a web page, they have to be compiled to standard CSS first and that's exactly what Gulp is doing

about 4 years ago · Juan Pablo Isaza Denunciar
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda