Problems with Theme Designer on primeng.dev #4872
|
After creating my own theme with the Theme Designer and downloading it as a ZIP file, I noticed that several generated component files contain imports such as: import type { undefinedDesignTokens } from '@primeuix/themes/types/sidebar'; import type { SidebarDesignTokens } from '@primeuix/themes/types/sidebar';I also noticed another issue regarding the primary color. In the Theme Designer, I changed the primary palette to red ({red.50}, {red.100}, etc.), but after exporting the theme, the generated base.ts file still contained the default emerald palette as the primary color. Is the Theme Designer for PrimeNG currently not fully functional, or could this be a bug in the export process? Has anyone experienced similar issues? |
Replies: 4 comments
|
Hi, Thanks for reporting, could you please share a stackblitz example so we can investigate the issue? |
|
Hi, Thanks for your response. I currently do not have a StackBlitz example because the issue occurs with the Theme Designer on primeng.dev and is already present in the generated export, before integrating it into an application. Steps to reproduce:
Observed issues: Several component files contain invalid imports such as: import type { undefinedDesignTokens } from '@primeuix/themes/types/sidebar';which results in TypeScript compilation errors. These had to be manually replaced with the correct types, for example: import type { SidebarDesignTokens } from '@primeuix/themes/types/sidebar';The exported base.ts file still contains the Emerald primary color palette, although the primary palette was changed to Red in the Theme Designer before export. Environment: Since the problem appears in the generated export itself, I believe it should be reproducible without a StackBlitz project. If needed, I can also share the generated ZIP file or provide screenshots of the affected files. Thanks! |
|
Hi, Thanks for the detailed explanation, we'll check and get back to you. |
|
I think that's because Theme Designer does not support the latest PrimeUIX, we'll resolve it as soon as possible. |
I think that's because Theme Designer does not support the latest PrimeUIX, we'll resolve it as soon as possible.