<?xml version="1.0" encoding="UTF-8"?>
<wiki>
  <body>&lt;h2&gt;&lt;span class=&quot;caps&quot;&gt;CSS&lt;/span&gt;&lt;/h2&gt;
&lt;p&gt;Colors can be given in a few formats that will be familiar to those who work with &lt;span class=&quot;caps&quot;&gt;CSS&lt;/span&gt;:&lt;/p&gt;
&lt;ul&gt;
	&lt;li&gt;&lt;code&gt;#&lt;/code&gt; followed by three or six hexadecimal characters,&lt;/li&gt;
	&lt;li&gt;&lt;code&gt;rgb(&lt;/code&gt; followed by three comma-separated integer values in &lt;code&gt;0&lt;/code&gt; &amp;#8230; &lt;code&gt;255&lt;/code&gt; and then &lt;code&gt;)&lt;/code&gt;,&lt;/li&gt;
	&lt;li&gt;&lt;code&gt;rgba(&lt;/code&gt; followed by four comma-separated integer values in &lt;code&gt;0&lt;/code&gt; &amp;#8230; &lt;code&gt;255&lt;/code&gt; and then &lt;code&gt;)&lt;/code&gt;,&lt;/li&gt;
	&lt;li&gt;a &lt;a href=&quot;http://www.w3.org/TR/CSS21/syndata.html#color-units&quot;&gt;&lt;span class=&quot;caps&quot;&gt;CSS&lt;/span&gt; color keyword&lt;/a&gt;.&lt;/li&gt;
&lt;/ul&gt;
&lt;h2&gt;JavaScript&lt;/h2&gt;
&lt;p&gt;Beginning with &lt;a href=&quot;http://github.com/psychs/limechat/commit/cf5c3dd98863b400bf13b742e7fba2e432d1ee51&quot;&gt;commit cf5c3dd&lt;/a&gt; LimeChat will evaluate a &lt;code&gt;ThemeName.js&lt;/code&gt; file in every chat room view. We can modify messages as they arrive by listening for the &lt;a href=&quot;http://www.w3.org/TR/DOM-Level-2-Events/events.html#Events-eventgroupings-mutationevents&quot;&gt;&lt;code&gt;DOMNodeInserted&lt;/code&gt; event&lt;/a&gt;:&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;function react(e) {
	var line = e.target;
	// Do things to the line element.
}

document.addEventListener(&quot;DOMNodeInserted&quot;, react, true);&lt;/code&gt;&lt;/pre&gt;


</body>
  <created-at type="datetime">2008-08-01T11:01:14-07:00</created-at>
  <id type="integer">41688</id>
  <permalink>writing-themes</permalink>
  <repository-id type="integer">4016</repository-id>
  <title>Writing Themes</title>
  <updated-at type="datetime">2008-08-30T17:45:24-07:00</updated-at>
  <user-id type="integer">18513</user-id>
</wiki>
