Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 9154215
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 17, 20262026-06-17T12:23:38+00:00 2026-06-17T12:23:38+00:00

I am currently building a template and have come across the following problem. I

  • 0

I am currently building a template and have come across the following problem. I want the user to be able to choose a color, any color, based on a hex number that their theme will have. It is currently hardcoded into many places in my style.css file. What I want to know is what is the best way to go about this? I have looked into less.js and is this the best option for me to go with? I would also have to recode a lot of the css into it less. So the question is what is the best option for me? I don’t want to convert style.css into php just so I can accomplish this… because I am sure there is a better way. This will also become a wordpress theme eventually so I want to know how to do it with that as well based on user settings.

Thank you.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-17T12:23:39+00:00Added an answer on June 17, 2026 at 12:23 pm

    You can keep user color or theme setting in options table and generate css file based on it. If configuration options are not too big consider dynamically putting it in file itself as inline css. It will override rules from external css.

    If theme has predefined color schemes, separate theme rules in css files and place it as alternate stylesheets in html. Switch stylesheets files based on users color selection, using js.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm currently building a website with Django and want to host user bio style
I'm building a Wordpress template from an HTML page. I currently have <?php $queried_post
I'm currently building a 6 page site and have finished the template for the
I have this selectbox on a site Im currently building and what I want
I am building a user interface using Raphael JS. currently I have a .js
I am currently building my project locally using MVC. The user enters some search
I am building a template system for emailing people that currently works in the
I'm building an application based on the Utility template from Xcode, to which I
I am building an Magento site. Currently on the account registration form I have
I'm building an excel template (*.xlt) for a user here, and one of the

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.