Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

HTML How to Make a Website Customizing Colors and Fonts Organize CSS with Comments

Martin Gasowski
Martin Gasowski
1,866 Points

Typical workflow with colors

Do you always make an explicit area for colors? So would you create an additional css file for colors in a big project?

Matt Ramsden
Matt Ramsden
14,152 Points

I suppose it would depend really on the colour scheme of your website. If it doesn't actually have that many variants of colour then probably not. If it's got loads of colours then maybe, most certainly if the website was based around colour and maybe depending on how many people are going to be accessing it.

Also on advanced and larger projects developers will use things like SASS which will use things like partials for separate css files for things like the base, the images, the typography etc so i'd imagine in some cases colour is one of them.

2 Answers

Steven Parker
Steven Parker
231,248 Points

I might use a separate "colortheme.css" file if I planned to prepare different color themes, to make it easy to replace an entire theme at once. I might also use a separate file if the project already used individual files for different aspects of the overall styles.

Otherwise, I would probably just identify the colors section of the main file with comments.

Martin Gasowski
Martin Gasowski
1,866 Points

Thanks guys. The answers are really helpful.