Builder applies styles from a USS file that is not actually loaded

Builder applies styles from a USS file that is not actually loaded.

I’d expect to have styles defined in a USS file applied to the document currently being edited only when that USS has actually been added to the stylesheet tab.


This does not happen in playmode.

Using Unity 2021.1.17f1 with packages preview.16

1 Like

Same issue here. It breaks all of UXML design. (both builder/uitoolkit package preview.16)

Hi Guys, we were able to see this issue and we’ll get a fix out as soon as possible.

1 Like

Hi,
Could you verify that the style definition is not coming from the Silo Theme you use to preview your ui?

I don’t think it comes from there. I just renamed the default theme (the one that got automatically imported), but I haven’t put anything in it yet as you can see:
7456169--915044--Schermata 2021-08-28 alle 18.10.22.png

I’m even more sure since I solved it by putting more specific names in the other files. Which I guess is actually the recommended way to do it, docs recommend using BEM. That would make it harder to have this issue pop up