[dojo-contributors] squid theme

Owen Williams owen at smartsoul.com
Fri Aug 17 21:33:40 EDT 2007

I could see some themes (like noir) having a *separate and optional*  
themeExtras.css file which would do body styling, etc.  That way if  
you want to have your app match the theme, it's easy, if not, just  
don't include that file.


Whenever I despair, I remember that the way of truth and love has  
always won. There may be tyrants and murderers, and for a time, they  
may seem invincible, but in the end, they always fail. Think of it:  
always.  -- Mohandas K. Ghandi

On Aug 17, 2007, at 4:50 PM, Torrey Rice wrote:

> I think officially sanctioned (if there is such a thing) dijit  
> themes should leave the page alone and only style the widgets which  
> is what dijit is all about, widgets. If the author of the theme  
> wants to show an example of a page that has a style that works well  
> with the theme, there should be a mechanism to do this without  
> actually including it in the theme.
> For example, what if I like a dijit widget like Calendar and it has  
> a black theme that I want to use and I want to put this on my blog,  
> I certainly don't want including that widget to override anything  
> else about my page. The widget themes should be very specific as to  
> only affect the widgets in my opinion.
> Bill Keese wrote:
>> Wow, a lot of traffic on this topic but I guess it is important.   
>> It's
>> making me wonder just how much a theme should do.  In addition to
>> defining how the widgets look, should it:
>> - reset ?
>> - provide page style, ex: setting the default font ?
>> 1. concerning reset
>> peter e higgins wrote:
>>  > My thoughts would be to move relevant dojo.css styles into  
>> dijit.css...
>> I'm afraid that any "reset" rules we include into dijit.css like
>> table { border: 0; }
>> are useless to widgets because the page might override them. (If the
>> user wants borders on his/her "real" tables.)   All we can do is  
>> to use
>> dijitReset in our templates, like:
>>> a simple solution would be to have a 'default
>>> background gradient' for each of the supported themes in  
>>> dijitTests.css eg:
>>> body.tundra { }, body.squid { } ...
>> Agreed.  The background image we are using for the tests shouldn't be
>> part of the theme itself, but should vary depending on the theme, so
>> dijitTests.css is a good place to specify that behavior.
>> _______________________________________________
>> dojo-contributors mailing list
>> dojo-contributors at dojotoolkit.org
>> http://dojotoolkit.org/mailman/listinfo/dojo-contributors
>> _______________________________________________
>> dojo-contributors mailing list
>> dojo-contributors at dojotoolkit.org
>> http://dojotoolkit.org/mailman/listinfo/dojo-contributors
>> We can still include the reset rules as part of the theme, but the  
>> widgets shouldn't depend on them. It would just be a service to  
>> the user. 2. themes defines page style As demonstrated by squid,  
>> themes want to provide general styling rules for the page, to make  
>> the page contents match the widgets. Ex: .squid  
>> { background:#1E1E1E; color: #ECFED8; } Now I'm conflicted,  
>> because we just spent 50 emails complaining that dojo has no  
>> business defining the style for the page (specifically with table  
>> margins). Not sure how to reconcile those two things. 3.  
>> dijitTests.css

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.dojotoolkit.org/pipermail/dojo-contributors/attachments/20070818/d6aa95f5/attachment.htm 

More information about the dojo-contributors mailing list