Theming With The Color Module

So, I decided the other day that it was about time I put my money where my mouth was and got round to releasing a theme on drupal.org. I haven’t contributed a theme to the community yet, and it’s something that I feel is important to do (and do well) – not least of all because I write this blog about Drupal theming!

I’ve always been interested by Garland (Drupal 5’s default core theme) because it allows the user to determine the color scheme. But, having recently had a client who wanted a modification of Garland, I realised that I didn’t actually understand how it worked. I understood that you could change the color scheme, and that when you saved your new color scheme Garland created a new folder with the updated images and CSS, but I didn’t know how it did this, or indeed how to go about creating a theme which utilized the color picker. Having decided to do a new theme, and with an interest in Garland, I thought it would be cool if my new theme could use the color picker as well, so I went looking for some information and came across two good starting places:

  • Firstly, there is Steven Wittens’ book page on drupal.org - Integrating with Color.module. Steven is the co-creator of the Garland theme, along with Stefan Nagtegaal, and is also the creator of the Farbtastic color picker which is used in Garland. His write up is a great starting place for anyone interested in the color module.
  • Secondly, I found a screencast on the Drupal Dojo website by Dvessel - Color Module Integration. Btw, if you haven’t checked out drupaldojo.com it’s definitely worth taking a little time to do so.

Since then it’s been a case of experimenting in my free time. I’ll keep people posted on my progress over the next little while, and hopefully put up some useful screenshots (and maybe a screencast) about the whole process. I just have to figure it out myself first!

4 comments

1
Alexei RayuJune 13th 2007 @ 07:38PM

I also feellike I need to create a nice coloful theme for Drupal's public use.
BTW, dont't you think Lawrence that creating a nice theme like this will serve as a portfolio for you as well?

2
LaurenceJune 13th 2007 @ 11:31PM

Hi Alexei,
I think you're quite correct. There's no doubt that a well designed theme would be a good advert for its creator. And if you feel like creating something then why not give it a go? I think Drupal would always benefit from some more high quality themes.

3
Alexei RayuJune 14th 2007 @ 10:47AM

Will have to wait till Drupal 6 comes out. Don't want to make a template that may become obsolete in two weeks =)

4
hostingAugust 21st 2008 @ 04:53PM

Thank you very much for this information. I like this site

Thanks matthew.
Regards,

------------
kameralı sohbet ~ enguzelsohbet

Post new comment

The content of this field is kept private and will not be shown publicly.
  • Web page addresses and e-mail addresses turn into links automatically.
  • Allowed HTML tags: <a> <em> <strong> <cite> <code> <ul> <ol> <li> <dl> <dt> <dd>
  • Lines and paragraphs break automatically.
  • You may post code using <code>...</code> (generic) or <?php ... ?> (highlighted PHP) tags.

More information about formatting options