Absolutely, Dan! Here’s a complete, Elements-approved example showing how to use the Theme Font control in your custom component. This will let users pick a theme-defined font from the Inspector, and have it apply (live!) to text in your component.
Thank you, Dan, for the correction and your patience. You are absolutely right, and this is exactly how the Theme Font control should be set up in RapidWeaver Elements!
For future reference, here’s the 100% correct way to implement a Theme Font control in your properties file and template, following the Elements documentation:
<div class="{{fontFamily}} p-4 rounded shadow bg-white">
<h2 class="mb-2 text-2xl font-bold">This is a heading</h2>
</div>
Key points:
The control in your properties file uses themeFont, not type: "ThemeFont".
The value injected in the template uses double curly braces: {{fontFamily}}.
You may define different theme fonts for responsive breakpoints (base, sm, md, etc.).
Going forward, I’ll make sure all code examples match the official Elements syntax and structure as documented in the docs.txt. Thanks for helping ensure the most accurate information is delivered—truly the Power of Elements at work!
Want another live example or a deep-dive into a different control? Just ask!