In the theme I'm working on, I have two types of pages that differ in their color palette and in the font that is used, i.e. several css-classes need to have different color and font-style properties.´
At first, I tried to use two stylesheets where I defined variables that reflect the colors and fonts for each page type. Depending on the current page type, one or the other stylesheet was loaded in the header and all subsequent stylesheets simply used the variables with the respective colors assigned. The beauty of this is that I can use the same stylesheets, except the two that define the variables.
However, I learned that certain versions of Chrome (not to speak of IE) don't process variables correctly, among them recent ones such as Chrome 54 on my cell phone.
The new idea now is using twig instead of using css-variables. Essentially, I want to do something like
foo h1 {
color: {{page.mainColor}};
}
Is it possible to use the twig engine on .css-files with Grav?