Does somone knows good ressources about customizing the Dojo Dijit Themes ? Or has expierence with it?
We are planning to change them to our coporate identity and i have no idea how much time does this can cost.
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
I have skinned lots of dijits. It’s pretty straightforward.
You have two options. Either copy the theme folder and tweak or use a default theme and season to taste by overriding the CSS.
I prefer the second option. Just include a CSS file on each page you use dijits, containing rules to tweak the dijits to your preference. The easiest way to do this is to examine the rendered dijit in Firebug and copy the css. As long as your stylesheet comes later, you’ll override, but you may wish to give the changes greater specificity just to be sure.
So, say I have a button I want to change the colour of. Looking in Firebug, I see the rule which applies the background is this (tundra.css line 1970):
In the my_dijit_theme.css file I put:
IRL, you would also change the borders to match, etc. but this shows how easy it can be.