<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[Can't change color of analog clock in default clock module]]></title><description><![CDATA[<p dir="auto">I’m not an expert CSS guy, but I thought I was doing the right thing.  Can someone let me know what I’m doing wrong?  I want the entire analog face red for night time.</p>
<p dir="auto">In my config/config.js, I have this for the clock module:</p>
<pre><code>	{
	    module: "clock",
	    position: "middle_center",
	    classes: "nightclock",
	    config: {
	    displaySeconds: true,
	    displayType: "analog",
	    analogSize: "400px",
            analogFace: "face-010"
	    }
	},

</code></pre>
<p dir="auto">and then in my css/custom.css I have:</p>
<pre><code>.clock .nightclock {
    color: red;
}
</code></pre>
<p dir="auto">to no effect – the clock is still white.</p>
<p dir="auto">I tried bringing MagicMirror up inside Chrome and using dev tools to mess with the css, but nothing I could do there would seem to have an effect on the color either.</p>
<p dir="auto">Thanks for any help,</p>
<p dir="auto">–Jim–</p>
]]></description><link>https://forum.magicmirror.builders/topic/14946/can-t-change-color-of-analog-clock-in-default-clock-module</link><generator>RSS for Node</generator><lastBuildDate>Sat, 12 Sep 2026 03:00:26 GMT</lastBuildDate><atom:link href="https://forum.magicmirror.builders/topic/14946.rss" rel="self" type="application/rss+xml"/><pubDate>Fri, 16 Apr 2021 20:46:05 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Can't change color of analog clock in default clock module on Sat, 17 Apr 2021 20:11:57 GMT]]></title><description><![CDATA[<p dir="auto">OK, I finally succeeded in changing the analog clock to red.  It wasn’t pretty and I don’t know if there is a better way.  But here’s what I did, for the record:</p>
<ol>
<li>
<p dir="auto">In modules/default/clock/faces, I copied face-010.svg to face-013.svg to create a new face.</p>
</li>
<li>
<p dir="auto">I edited face-013.svg to modify the style to have a fill color:<br />
<code>&lt;style&gt;.cls-1{fill:#f00;}&lt;/style&gt;</code></p>
</li>
<li>
<p dir="auto">Added the following to my custom.css:</p>
</li>
</ol>
<pre><code>/* for the date display */
.nightclock .date.normal.medium {
    color: #f00;
}

/* for the hour hand */
.nightclock .clockHour {
    background: #f00;
}

/* for the minute hand */
.nightclock .clockMinute {
    background: #f00;
}
</code></pre>
<ol start="4">
<li>Edit the config: section of the clock module in config.js.</li>
</ol>
<ul>
<li>Added secondsColor: “#f00” to the config:  section of the clock module in config.js to change the color of the second hand</li>
<li>Change the analogFace config to the newly edited “face-013”.</li>
</ul>
]]></description><link>https://forum.magicmirror.builders/post/90801</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/90801</guid><dc:creator><![CDATA[jjd]]></dc:creator><pubDate>Sat, 17 Apr 2021 20:11:57 GMT</pubDate></item><item><title><![CDATA[Reply to Can't change color of analog clock in default clock module on Sat, 17 Apr 2021 12:27:37 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/peterpang" aria-label="Profile: peterpang">@<bdi>peterpang</bdi></a> said in <a href="/post/90778">Can't change color of analog clock in default clock module</a>:</p>
<blockquote>
<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/jjd" aria-label="Profile: jjd">@<bdi>jjd</bdi></a><br />
Its seem to have write [ code name , such as #11111111 ] , not the color name as red .</p>
</blockquote>
<p dir="auto">Thanks, but no luck.  I tried #ff0000 and everything’s still white.</p>
]]></description><link>https://forum.magicmirror.builders/post/90791</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/90791</guid><dc:creator><![CDATA[jjd]]></dc:creator><pubDate>Sat, 17 Apr 2021 12:27:37 GMT</pubDate></item><item><title><![CDATA[Reply to Can't change color of analog clock in default clock module on Sat, 17 Apr 2021 02:34:22 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/jjd" aria-label="Profile: jjd">@<bdi>jjd</bdi></a><br />
Its seem to have write [ code name , such as #11111111 ] , not the color name as red .</p>
]]></description><link>https://forum.magicmirror.builders/post/90778</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/90778</guid><dc:creator><![CDATA[PeterPang]]></dc:creator><pubDate>Sat, 17 Apr 2021 02:34:22 GMT</pubDate></item></channel></rss>