Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

157
Visualizações
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 Respostas
Responde à pergunta

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 Relatório
Responde à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda