# Embed Assets Theme

**URL:** <https://meta.discourse.org/t/embed-assets-theme/371868>\
**Category:** Product Support\
**Created:** [June 26, 2025, 5:58pm UTC](https://meta.discourse.org/t/embed-assets-theme/371868 "2025-06-26T17:58:32Z")\
**Posts on this page:** 1\
**Showing post:** 1

<div class="post-metadata">

**Author:** ![nlambert](https://avatars.discourse-cdn.com/v4/letter/n/ecccb3/32.png) [@nlambert](https://meta.discourse.org/u/nlambert)\
**Post date:** [June 26, 2025, 5:58pm UTC](https://meta.discourse.org/t/embed-assets-theme/371868/1 "2025-06-26T17:58:32Z")

</div>

Hey folks,

I’ve gone through a few threads looking for answers — and I’ve found many (linked below — thank you!). Thanks to those, I can get things mostly looking the way I want. But there’s still one question I haven’t been able to solve.

It concerns the embed asset files, specifically the `embed_HASH.css` file.

It **appears** that when these assets are built, they’re not compiled using the active theme’s color palette. That might be by design, or it might be something I’ve missed.

Here’s what I’d love clarity on:

1. **Is `embed_[digest].css` always built using the default palette?**  
If so, I can live with that — I know there’s a lot of ongoing work to improve how themes and color palettes are handled in Discourse.
2. **If it _can_ be built with a custom palette, how can I trigger that behavior?**
3. **I’ve noticed it can be built using the system’s light or dark palettes** , so it seems plausible that a custom palette could be used — but I haven’t been able to predictably generate a light or dark embed file.

To test this, I deleted all themes and palettes, set everything back to the default Light theme, and then ran:

```plaintext
rake assets:precompile
rake assets:precompile:build

```

…expecting to get a light-themed `embed_HASH.css`. But the result still appeared to use dark styles.

I’m not deeply familiar with the internals, so I may be missing something obvious. If anyone could share what is required so that the `embed_HASH.css` is built with a predictable palette, it would really help.

Thanks in advance!

FYI, my Discourse instance is running in Docker and it’s up to date. I’ve used the `launcher` script and the standalone template.

> Related reading (only 2 links allowed for new accounts, 3rd is a searchable title):
> 
> - [How to customize appearance of discourse embeds?](https://meta.discourse.org/t/how-to-customize-appearance-of-discourse-embeds/240026)
> - [Styling of Embedded Discourse](https://meta.discourse.org/t/styling-of-embedded-discourse/31956)
> - Automatic dark mode for embedded comments as well?

---

_[View the full topic](https://meta.discourse.org/t/embed-assets-theme/371868)._
