You also need to keep in mind that in a scenario with a precompiled asset, CSS will run through Sprockets at compile time, so you get a static color (assuming that @school actually created, which won't happen). This is undesirable, since each school will have the same color (regardless of what happened at the compilation stage).
For a custom corporate identity, we allow our users to specify their colors and include the layout block in the block:
:css h1.logo { color: <%= @school.primary_color %>; }
This is not ideal, but if you have a small number of settings, it seems to work quite well.
source share