<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>/dev/movabletripe &#187; CSS</title>
	<atom:link href="http://movabletripe.com/category/css/feed/" rel="self" type="application/rss+xml" />
	<link>http://movabletripe.com</link>
	<description>Making up launch dates since 1982</description>
	<lastBuildDate>Mon, 27 Aug 2007 01:39:38 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>CSS variables</title>
		<link>http://movabletripe.com/archive/css-variables/</link>
		<comments>http://movabletripe.com/archive/css-variables/#comments</comments>
		<pubDate>Sat, 18 Mar 2006 08:18:04 +0000</pubDate>
		<dc:creator>Adam</dc:creator>
				<category><![CDATA[CSS]]></category>

		<guid isPermaLink="false">http://movabletripe.com/archive/css-variables/</guid>
		<description><![CDATA[While making a few changes to a stylesheet today, I found myself constantly reaching for colorzilla in order to remember the specific hex or rgb value I had used for a certain class. Not only that, having to do a find-and-replace to change all instances of #b3dca3 is a pain the the butt if all [...]]]></description>
			<content:encoded><![CDATA[<p>While making a few changes to a stylesheet today, I found myself constantly reaching for <a title="Colorzilla firefox extension" href="http://www.iosart.com/firefox/colorzilla/">colorzilla</a> in order to remember the specific hex or rgb value I had used for a certain class. Not only that, having to do a find-and-replace to change all instances of <code>#b3dca3</code> is a pain the the butt if all you want to do is change your colour scheme.</p>
<p>Imagine if at the top of a stylesheet you could define some variables.</p>
<p><code>var customGreen = #b3dca3;</code></p>
<p>Then, whenever you needed that colour in the stylesheet, you could simply write:</p>
<p><code>.someClass { color: customGreen; }</code></p>
<p>This would certainly save some time, as you would not have to remember the specific hex value of the colour you require for a certain class. I feel like I spend half my day scrolling up and down my stylesheets to copy and paste existing hex/rgb values from similar classes.</p>
<p>I realise something similar can be achieved using classes like <code>.customGreen {color: #b3dc3a;}</code>, but this would require adding that class to your markup, which is not really semantically ideal. What happens if you want to change your colour scheme to blue? You could change the one reference in the stylesheet and it would work fine, but your markup will have all of these nosensical classes of customGreen that are actually now blue.</p>
<p>What are your thoughts? Maybe this is something that should be available for CSS4. That way I might just be able to use such a feature in about 20 years time &#8211; if and when CSS4 is implemented (or even thought of for that matter).</p>
]]></content:encoded>
			<wfw:commentRss>http://movabletripe.com/archive/css-variables/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
	</channel>
</rss>
