Calling get_theme_setting from php-as-css file I'm developing a Drupal 7 theme, and I'm using a php file as my theme's css file, in order to be able to use variables to simplify colour changes across the entire css.

I've also defined some theme settings in the theme-settings.php

What I want is to be able to call get_theme_setting() from within my style.php file, and use the theme settings to determine CSS attributes.
I recommend you to take a look to less css:

http://lesscss.org/

In fact there is a drupal module for this:

http://drupal.org/project/less

I used it a project and works great.