# Icon type theme setting in objects type settings

**URL:** https://meta.discourse.org/t/icon-type-theme-setting-in-objects-type-settings/410092
**Category:** Feature
**Created:** [August 14, 2026, 4:20pm UTC](https://meta.discourse.org/t/icon-type-theme-setting-in-objects-type-settings/410092 "2026-08-14T16:20:41Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![Moin](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/moin/32/554653_2.png) [@Moin](https://meta.discourse.org/u/Moin)
#### Post date: [August 14, 2026, 4:20pm UTC](https://meta.discourse.org/t/icon-type-theme-setting-in-objects-type-settings/410092/1 "2026-08-14T16:20:42Z")

</div>

Continuing the discussion from [Icon type SiteSetting](https://meta.discourse.org/t/icon-type-sitesetting/370452/8):

> [@Icon type SiteSetting](https://meta.discourse.org/t/icon-type-sitesetting/370452/8):
>
> I’m assuming it can be used for TCs as well?

It is available now 🎉

> <https://github.com/discourse/discourse/pull/42626>
>
> Mirrors site-setting support added in 802fa4c3562.
> 
> Also updates the sprite-sh…eet logic so that it includes all site/theme settings with \`type: icon\`, in addition to the existing logic which looked for setting names ending in \`\_icon\`.

> [@Icon type SiteSetting](https://meta.discourse.org/t/icon-type-sitesetting/370452/10):
>
> are there any plans for supporting `type: icon` inside [object schemas](https://meta.discourse.org/t/objects-type-for-theme-setting/305009) for theme

I don’t think this has been added yet. But I think it’s worth a #Contribute > Feature topic

---

<div class="post-metadata">

### Author: ![Moin](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/moin/32/554653_2.png) [@Moin](https://meta.discourse.org/u/Moin)
#### Post date: [September 6, 2026, 11:09am UTC](https://meta.discourse.org/t/icon-type-theme-setting-in-objects-type-settings/410092/2 "2026-09-06T11:09:30Z")

</div>

> <https://github.com/discourse/discourse/pull/42632>
>
> Follow-up to #42626.
> 
> Previously, the \`icon\` setting type was only available a…s a top-level site/theme setting type — properties inside an \`objects\` setting schema could not use it, and icon names stored in objects values were never added to the SVG sprite sheet.
> 
> This change allows \`objects\` type site and theme settings to declare schema properties with \`type: icon\`, rendering the icon grid picker in the schema editor and automatically including the selected icons (nested \`objects\` included) in the sprite sheet.
> 
> Note one adjacent change: sprite cache invalidation in \`014-track-setting-changes.rb\` was gated on the setting \*name\* containing \`\_icon\`, so changing an \`icon\` or \`objects\` typed site setting left a stale sprite. It now also expires for those types, which fixes that latent gap for top-level \`icon\` site settings from 802fa4c3562 as well.
> 
> Example:
> \`\`\`yaml
> Example:
> type: objects
> default: ""
> schema:
> name: link
> identifier: title
> properties:
> title:
> type: string
> required: true
> icon:
> type: icon
> \`\`\`\`

Thanks for the update, much appreciated!
