When I try to write my own theme, I’m confronted with the fact, that a lot of CSS is applied before my own, eg. for many of the .dijit and .claro classes.
Is there a way to configure my theme so these styles don’t get set? I’d like to start with the raw, unstyled HTML, like I often do with Wordpress themes or other websites, basically like a CSS reset.
I have not found a page documenting the process of making themes. If it exists, it would help me as well. Thanks in advance!
(Also, is there a way for themes to affect page HTML and Javascript, or is it only CSS and images?)
As of now, I’m not importing any other file in my theme’s CSS file. When I check the site in the browser though, I see that claro.css is loaded and applied anyway. Is there a way to prevent that?
I looked at the other themes in the themes/ directory, but wasn’t able to learn whether they started from scratch or built on claro themselves.
I solved this for my particular installation by modifying index.php, which is unelegant and messes up future releases, but I saw it as my only option here.
I added a few lines that check whether the theme’s CSS file has a second line with a comment /* load-default-css:0 */
If it does, it skips loading Dojo’s clara theme file. Beware, if you go down this path you have a lot of work ahead of you, redeclaring all interface CSS.