<?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[How to let user change font size in config file?]]></title><description><![CDATA[<p dir="auto">I would like to add an option to the config file so that users can change the font size from the default I have defined.</p>
<p dir="auto">I believe that this is what is setting my font size and style:</p>
<pre><code>wrapper.className = this.config.classes ? this.config.classes : "thin xlarge bright pre-line";
</code></pre>
<p dir="auto">but I cannot find any documentation on “config.classes” and what’s allowed.  I’m probably not searching for the right thing.</p>
<p dir="auto">Is it as simple as users putting</p>
<pre><code>classes: "thin small bright pre-line",
</code></pre>
<p dir="auto">in the config file?  Is there anything that documents what classes are available?</p>
<p dir="auto">Personally, “xlarge” (or maybe “large”) works for me but I could see others wanting something different, especially for use in other regions.</p>
<p dir="auto">Thanks!</p>
]]></description><link>https://forum.magicmirror.builders/topic/18136/how-to-let-user-change-font-size-in-config-file</link><generator>RSS for Node</generator><lastBuildDate>Sun, 17 May 2026 15:40:17 GMT</lastBuildDate><atom:link href="https://forum.magicmirror.builders/topic/18136.rss" rel="self" type="application/rss+xml"/><pubDate>Tue, 31 Oct 2023 19:06:30 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to How to let user change font size in config file? on Tue, 31 Oct 2023 21:40:41 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/sdetweil" aria-label="Profile: sdetweil">@<bdi>sdetweil</bdi></a> said in <a href="/post/112222">How to let user change font size in config file?</a>:</p>
<blockquote>
<p dir="auto">then showed them how to use custom.css</p>
</blockquote>
<p dir="auto">I’m afraid that would be like having a toddler show someone how to fly a helicopter.  8^)</p>
<p dir="auto">I kinda understand the general idea of CSS but I certainly don’t know how to do anything with it.   I’m really just sorta stumbling around picking up bits and bobs from other people and trying to MacGyver them into something functional.</p>
]]></description><link>https://forum.magicmirror.builders/post/112231</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/112231</guid><dc:creator><![CDATA[UncleRoger]]></dc:creator><pubDate>Tue, 31 Oct 2023 21:40:41 GMT</pubDate></item><item><title><![CDATA[Reply to How to let user change font size in config file? on Tue, 31 Oct 2023 21:05:24 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/uncleroger" aria-label="Profile: UncleRoger">@<bdi>UncleRoger</bdi></a> you could have used a generic class, and then showed them how to use custom.css to configure that class to their needs.</p>
]]></description><link>https://forum.magicmirror.builders/post/112222</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/112222</guid><dc:creator><![CDATA[sdetweil]]></dc:creator><pubDate>Tue, 31 Oct 2023 21:05:24 GMT</pubDate></item><item><title><![CDATA[Reply to How to let user change font size in config file? on Tue, 31 Oct 2023 20:45:00 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/sdetweil" aria-label="Profile: sdetweil">@<bdi>sdetweil</bdi></a></p>
<p dir="auto">Thanks!  I went ahead and made a “textSize” property and used that to replace the size in the classes string I have.</p>
<p dir="auto">Maybe not the most graceful of solutions but it works.</p>
<p dir="auto">Thanks again!</p>
]]></description><link>https://forum.magicmirror.builders/post/112221</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/112221</guid><dc:creator><![CDATA[UncleRoger]]></dc:creator><pubDate>Tue, 31 Oct 2023 20:45:00 GMT</pubDate></item><item><title><![CDATA[Reply to How to let user change font size in config file? on Tue, 31 Oct 2023 19:14:58 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/uncleroger" aria-label="Profile: UncleRoger">@<bdi>UncleRoger</bdi></a>  classes is an MM config parm</p>
<p dir="auto"><img src="/assets/uploads/files/1698779463007-screenshot-at-2023-10-31-14-10-29.png" alt="Screenshot at 2023-10-31 14-10-29.png" class=" img-fluid img-markdown" /></p>
<p dir="auto">not a module config parm.</p>
<p dir="auto">this.config points to the config: {} section of the module definition in config.js</p>
<p dir="auto">but it is just a string of class names that are added to the  html  element defining the module</p>
<pre><code class="language-html">&lt;div id="module_7_weather" class="module weather weather"&gt;
&lt;/div&gt;
</code></pre>
<p dir="auto">and these strings will be appended to the class=“”  setting untouched or validated</p>
<p dir="auto">you could provide your own ‘string’ property to capture this info…<br />
remember that not every element inherits settings from its parent…<br />
so setting a top level div might not slide down to some text element later</p>
]]></description><link>https://forum.magicmirror.builders/post/112215</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/112215</guid><dc:creator><![CDATA[sdetweil]]></dc:creator><pubDate>Tue, 31 Oct 2023 19:14:58 GMT</pubDate></item></channel></rss>