Having a theme add-on breaks Preview mode

Hello,
Using the 2.7.6 version of JMIX, I’ve created an add-on which defines a new CSS theme by following the documentation.
I’m able to import the add-on succesfully in another project. It is included by updating the parent value in the theme.json file (because I want to be able to define an application style if needed).
When the application boots “normally”, it all works well and the new theme is applied.
However, I’ve noticed that the preview mode in IntelliJ is now broken.
The only workaround I found was to manually copy my theme directory in the .jmix/screen-designer/frontend/themes/ folder but I was wondering if there was a better solution for this issue ?
Thanks in advance for your help.
Regards,