This is due to the Live Reload feature; inline styles in a document opened in the UI Builder will take precedence, to show the same result in the scene. This feature can be disabled in any window by unselecting the "UI Toolkit Live Reload" option in the window's menu.
Note: This inline style override only happen if there are inline styles to load from the document.