Storybook: Export Library with PrimeVue with Aura theme customized #2436
Unanswered
cristinafernandez1234
asked this question in
PrimeVue
Replies: 2 comments 12 replies
-
Hello @cristinafernandez1234. I don't get to understand your use case, why do you want to use your CustomPreset with this code? app.use(PrimeVue, {
preset: CustomPreset
}); |
Beta Was this translation helpful? Give feedback.
10 replies
-
hi @cristinafernandez1234, any solutions yet? I kinda have the same issue looking to build a custom UI library using some of my own components and some of primevue's with a custom preset, while exporting/building the styles are missing when I try to import and use it in a test project! |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
We have a component library that uses PrimeVue components and custom components from our own, everything with our own design system.
Until PrimeVue 3 we were using a theme provided by PrimeVue that we customized: https://github.com/primefaces/primevue/blob/master/public/themes/saga-blue/theme.css.
Now, with PrimeVue 4, we are using the Aura theme and customize it to adapt to our design. Here a mini example:
We use it without problems in the preview.js of our storybook:
If we check in the console we see the CSS variables from Aura theme generated (example
--p-button-primary-background
):But the problem we have is that we have to export the library with the Aura style customized and use it in other projects. Before we exported the CSS customized, how can we achieve the same from the Aura theme? We don't see any documentation about it.
We tried to export the CustomPreset file and uses in the Vue 3 project in main.js:
But the
--p-button-primary-background
and the other vars are not defined there:Thanks in advance.
Beta Was this translation helpful? Give feedback.
All reactions