Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

150
Views
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 answers
Answer question

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 Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!