Jump to content
spat09

Controll all colors in a css file

Recommended Posts

Hey everyone,

 

I'm fairly new to the whole web design business and I have a simple question.

I've made a site, just for practice, and I'm not happy with the colors. Instead of every time scrolling trough my css file, I want to have quick acces to a few color codes at the top of the file. In this way I can change the colors way quicker and more easily.

 

Stig

Share this post


Link to post
Share on other sites

There are things called CSS precompilers which let you do that. You should search for LESS or SASS.

Share this post


Link to post
Share on other sites

Thanks!

Share this post


Link to post
Share on other sites

You could split off that portion of the css into a separate css file (perhaps named colors.css) so that it would be easier to deal with, and you can use this type of /* comment */ in css. You could also write a Javascript routine to set a semi-randomized color scheme each time the page is loaded.

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...

×
×
  • Create New...