<?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>non-random ramble &#187; css</title>
	<atom:link href="http://jimbarritt.com/non-random/category/css/feed/" rel="self" type="application/rss+xml" />
	<link>http://jimbarritt.com/non-random</link>
	<description>adventures in code</description>
	<lastBuildDate>Tue, 20 Sep 2011 13:16:52 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
		<item>
		<title>Simple Color Constants For CSS</title>
		<link>http://jimbarritt.com/non-random/2006/09/18/simple-color-constants-for-css/</link>
		<comments>http://jimbarritt.com/non-random/2006/09/18/simple-color-constants-for-css/#comments</comments>
		<pubDate>Mon, 18 Sep 2006 03:20:08 +0000</pubDate>
		<dc:creator>Jim Barritt</dc:creator>
				<category><![CDATA[css]]></category>

		<guid isPermaLink="false">http://jimbarritt.com/non-random/2006/09/18/simple-color-constants-for-css/</guid>
		<description><![CDATA[Ok So CSS doesn&#8217;t have a way to declare constants. But yet you always want a set of constant colors? I discovered a simple method which is manual but works. All you do is : #116611/*text*/ #1A801A/*border*/ #FFFFFF/*high-text*/ #9966FF/*high-bg*/ #FFFFFF/*page-bg*/ Then whenever you reference a color: div#sitemast { color:#116611/*text*/; } now all you have to [...]]]></description>
			<content:encoded><![CDATA[<p>Ok So CSS doesn&#8217;t have a way to declare constants. </p>
<p>But yet you always want a set of constant colors? </p>
<p>I discovered a simple method which is manual but works.</p>
<p>All you do is :</p>
<p><code><br />
#116611/*text*/<br />
#1A801A/*border*/<br />
#FFFFFF/*high-text*/<br />
#9966FF/*high-bg*/<br />
#FFFFFF/*page-bg*/<br />
</code></p>
<p>Then whenever you reference a color:<br />
<code><br />
div#sitemast { color:#116611/*text*/; }<br />
</code></p>
<p>now all you have to do if you want to change a color globally is use your editor to do a global search and replace.</p>
<p>This is more efficient than simply S/R on the hex value &#8211; what if you have 2 types of element which are the same color in one scheme but not another?</p>
<p>Next I would love to write a simple plugin for intellij which does this for you!</p>
<p><a class="a2a_dd addtoany_share_save" href="http://www.addtoany.com/share_save#url=http%3A%2F%2Fjimbarritt.com%2Fnon-random%2F2006%2F09%2F18%2Fsimple-color-constants-for-css%2F&amp;title=Simple%20Color%20Constants%20For%20CSS"><img src="http://jimbarritt.com/non-random/wp-content/plugins/add-to-any/share_save_256_24.png" width="256" height="24" alt="Share"/></a> </p>]]></content:encoded>
			<wfw:commentRss>http://jimbarritt.com/non-random/2006/09/18/simple-color-constants-for-css/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

