Re-import theme.zip that you can download at https://docs.mendix.com/refguide/moving-from-atlas-2-to-3 into your project;s theme directory. Just overwrite it.
This helped me on some occasions. Unfortunately not always.