kaigou: this is what I do, darling (Default)
锴 angry fishtrap 狗 ([personal profile] kaigou) wrote in [site community profile] dreamscapes2009-11-15 07:13 pm

Gradiance

Theme name/layout: Gradiance
Author: Kaigou
Layout info: originally Tranquility III
Image info: 10 substitute icons (5 per style)
Layout url: http://www.dreamwidth.org/customize/advanced/layersource?id=87751&fmt=html

Users can change the 8-scale gradient, the page background, the default text color, the content/comment background color, and colors for active & visited links. As long as the contrast between the 4th color and the 8th color is enough to make text legible, the gradient can go from darkest-dark to lightest-light, or from medium-dark to medium-light, depending on the amount of contrast required. The CSS looks a little funky as a result, but it makes for some easy cut-and-paste to create new color schemes.

The links all go to a test post on my journal, which has multiple replies of varying types (anon, registered, openid) so you can those in action.

Gradiance AmethystGradiance Amethyst Verso
Gradiance CarmineGradiance Carmine Verso
Gradiance CeladonGradiance Celadon Verso
Gradiance CeriseGradiance Cerise Verso
Gradiance CeruleanGradiance Cerulean Verso
Gradiance CobaltGradiance Cobalt Verso
Gradiance EmeraldGradiance Emerald Verso
Gradiance ForestGradiance Forest Verso
Gradiance FuschiaGradiance Fuschia Verso
Gradiance GrayscaleGradiance Grayscale Verso
Gradiance Halaya UbeGradiance Halaya Ube Verso
Gradiance HarlequinGradiance Harlequin Verso
Gradiance HeliotropeGradiance Heliotrope Verso
Gradiance IndigoGradiance Indigo Verso
Gradiance JadeGradiance Jade Verso
Gradiance LemonGradiance Lemon Verso
Gradiance MaizeGradiance Maize Verso
Gradiance MajorelleGradiance Majorelle Verso
Gradiance MidnightGradiance Midnight Verso
Gradiance MossGradiance Moss Verso
Gradiance NadeshikoGradiance Nadeshiko Verso
Gradiance OceanGradiance Ocean Verso
Gradiance OchreGradiance Ochre Verso
Gradiance OlivineGradiance Olivine Verso
Gradiance PeachGradiance Peach Verso
Gradiance PistachioGradiance Pistachio Verso
Gradiance RacingGradiance Racing Verso
Gradiance SangriaGradiance Sangria Verso
Gradiance SapphireGradiance Sapphire Verso
Gradiance SiennaGradiance Sienna Verso
Gradiance SkyGradiance Sky Verso
Gradiance SlateGradiance Slate Verso
Gradiance SpringGradiance Spring Verso
Gradiance StormGradiance Storm Verso
Gradiance ThistleGradiance Thistle Verso
Gradiance VermilionGradiance Vermilion Verso
Gradiance ViridianGradiance Viridian Verso

The substitute icons fill in when there's a blank for an anonymous poster, an RSS feed, a DW user, or an OpenID user. The last image the blockquote background. [ETA: after further testing, the regular icons look fine even on a reversed setup, so not seeing reason to do that extra bit.]



There are still some outstanding issues that I can't figure out. None of them are really deal-breakers, but if I can find answers to these questions, I'll edit the existing code to reflect the fixes.

I'm presuming separate layouts for reversed (light-on-dark) color schemes, but it seems like it'd be a LOT easier to give users the option of reversing the colors, with a simple yes/no question (which would then flip color_001 for color_008 and so on). Or is it better to treat each as separate themes, on the grounds that users wouldn't be aware ahead-of-time that the colors can be easily reversed in the wizard?


...I think that covers it!
afuna: Cat under a blanket. Text: "Cats are just little people with Fur and Fangs" (Default)

[personal profile] afuna 2009-11-16 05:28 am (UTC)(link)
I have a thought, but it makes for ugly code:

1.) eight properties exposed through the wizard
2.) bunch of other properties, which are defined noui, so you can edit them in a user or theme layer
3.) blank noui properties will be initialized in prop_init to match the properties exposed through the wizard (so you could have a "page_border" property exposed through the wizard. It, in turn, sets the colors of "entry_border" and "content_border" which are both noui, if these don't already have a color defined
4.) the noui properties are what are used in the CSS

But hmmmmm, I think the approach above will take a lot of work, and that eight is enough. The biggest problem we had, and the reason we eventually split up things into more and more properties, is that some color combinations would not work with light on dark (you could pick a good color combination for the main areas, but then, surprise unreadable text in small sections! especially when it came to links on accent colors :-))

Since this layout was built with the balance of changing color combinations in mind, I think we don't need to offer as fine-grained control over individual colors, if that makes sense?