Closed (won't fix)
Project:
Zen
Version:
7.x-5.x-dev
Component:
Miscellaneous
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
7 Feb 2011 at 15:11 UTC
Updated:
6 Aug 2013 at 19:00 UTC
Jump to comment: Most recent file
Comments
Comment #1
johnalbinhmm… The color module's API under D6 was crap. But we got major API improvements done to it in order to get Bartik into core.
Zen is designed to be unstyled. So "changing colors" when there aren't any colors is… odd.
But I will definitely consider it. I may even get time after 7.x-3.0 to see about documenting how to add color module support to sub-themes.
Comment #2
shruti.sheth commentedHello,
Color module integration can be done for zen 7.
A color picker to pick up the color for base, link, header top, etc can be integrated as follows
1. Add a color directory in your sites/all/themes/custom/myzen/
color directory must contain
base.png
color.inc
preview.css
preview.png
Refer to link http://drupal.org/node/108459
2. Add the code for zen default under 'schemes'=>array(
as follows
* All the color in 'colors'=>array must be default color for zen theme included in .css files
* Those files name should be included in color.inc under 'css' => array
3. Refer to link http://drupal.org/node/108459
To create a preview.png
4. Add css for preview in preview.css file
Comment #3
Chris CharltonAnyone planning to make `zen_colors` add-on module? I like color module schemes.
Comment #4
johnalbinAn add-on module isn't needed. Just a patch against STARTERKIT.
Comment #5
shruti.sheth commentedThanks.
Comment #6
NickWebman commentedsubscribing
Comment #7
Garrett Albright commentedLooking into this…
JohnAlbin, you say "there aren't any colors." There's actually quite a few if you take into account the images for list items (the triangles and circles and such - they don't ship with Zen but they're still used by it) and tabs. I believe Color module's ability to create new images could help in regards to those, because the standard grayish defaults can get ugly quickly if the rest of the theme gets more colorful.
At any rate, being able to colorize the core Zen theme may not be that useful, just as actually using the core Zen theme may not be that useful, but it may be useful to serve as a start for those who want their subthemes to be color-able. I currently find myself working on a project where we need a colorable theme, and we're trying to decide between adding colorization features to a starter theme subtheme, as no starter themes that I can find seem to support Color out-of-the-box (and adding it is going to look like a good deal of confusing work), or using a "full" theme that already supports Color, such as Bartik, as a parent theme (obviously not ideal). At any rate, it may be sort of strange, but adding Color support to Zen with the goal of being able to take that support and adapt it for use in subthemes would put it ahead of all other Drupal starter themes in that regard. If we do end up Colorizing Zen or a subtheme, I'll try to make sure it's done in a way that can be contributed back to the project.
Comment #8
johnalbin@Garrett That's a great argument. :-)
I'm in favor of adding color module support to STARTERKIT.
Comment #9
Garrett Albright commentedWell, unfortunately, we're going the Bartik route. =/
But hopefully I can squeeze this in in another project in the future.
Comment #10
d0t15t commentedSo what is the process of manually adding the color module to a Zen theme? All the examples seem to explain a process with background images (see #2 above), which i believe is no longer the case in Drupal 7, right?
I'm trying to give a user the ability to change the navigation link color (which other colorized themes don't seem to offer - am i missing something?).
Comment #11
johnalbinI just copied and pasted the Bartik color support into Zen. This needs a lot of work still. Its in the 1053734-color feature branch in git.
If no one else is going to work on this, this is low on my priority list. Would love someone to bring this to fruition!
Comment #12
d0t15t commentedAs it turns out, the color module wasn't what i was looking for anyway, as i needed to give a user access to change a specific style element w/o granting access to the whole theme permission. There are a few modules that give you just this functionality - i went with Flexible Colors.
Comment #13
sumeet.pareek commentedI would love to contribute here as I am already tasked with creating something similar in a project I am currently working on. But before I proceed I would like a quick check with zen contributors to understand the right way to proceed.
Below is my specific usecase, and as I understand this should be more or less the broader generic usecase too.
Plain colors module integration approach
DesignKit module integration approach
Sass approach
Which of the above approaches seems like a better way to proceed?
Your feedback would be very appreciated.
Comment #14
Garrett Albright commentedSince I last posted in this issue, I've done a lot more work with integrating Color module with themes. It turns out there's an annoying caveat; in the base color set for the theme, every item whose color you want to be changeable must already be distinct from every other changeable color. In other words, if you want, say, the header text color and the body text color to both be changable, then they can't both be #000000 as they are now. You'll have to have one be #000000 and one be #010101 or something silly like that. This is because the Color module works by pretty much doing a find-and-replace on colors in the original base color scheme's color codes in the CSS. Thus, it doesn't seem that integrating Color with Zen or any other base theme which has very little color styling by default is practical.
I don't know enough about DesignKit or Sass to comment on your other two approaches.
Comment #15
diwant commentedFrom Garrett and Wikid Kaka's last posts, and from my own experience, DesignKit module is the way to go. I don't know how much can be reused across subthemes (see #2007470: Will DesignKit colors and images be inherited and usable by subthemes?), if any at all.
I have been able to use DesignKit cordially with my Zen 5 based theme, Neptune. What follow are some screenshots I took of me trying some different color combinations. I have left instructions for people who want to try this at home, see my comment (#4) at #1979208: Colorable Neptune (with options for a dark theme).
I apologize in advance for the purple one.
Black on White
White on Black
The Joker
Comment #16
johnalbinLooks like adding color module or designKit integration sample code is going to be more complicated then anyone wants to do. Understandable; I've never used them in a project.
Comment #17
diwant commentedWell that's unfortunate, those are cool modules that have made Neptune hyper configurable for me. Oh well, if anyone is trying to get this setup for your theme, DesignKit is quite friendly to get on with and there is a lot of help online for how to implement it.
Cheers!