Check out JSON CSS. It's a rather interesting method of using the power of Javascript (performing logic, etc) in a nice and orderly fashion to set styles. Arc90.Labs has a nice write-up on the topic with examples.
http://lab.arc90.com/2009/01/json_css.php (also on Google Code)
Demo JSON CSS Stylesheet:
{
"@variables": {
"demoBgColor": "#FBFAF4"
},
"#demoContainer": {
"background-color": "@{demoBgColor}",
"border": "1px dotted #CCC",
"padding": "0.5em",
"width": "40em",
"@browser[msie-6]": {
"width": "400px"
},
"h3.header": {
"text-decoration": "underline"
},
"div:first": {
"font-weight": "bold"
}
}
}