Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Custom CSS variable prefix not supported? #5

Open
geiregjo opened this issue Aug 9, 2024 · 4 comments
Open

Custom CSS variable prefix not supported? #5

geiregjo opened this issue Aug 9, 2024 · 4 comments

Comments

@geiregjo
Copy link

geiregjo commented Aug 9, 2024

We are using a custom CSS variable prefix in our project. This conflicts with the hardcoded "p" prefix in this project. Are there plans to resolve this issue?

@cjb-g
Copy link

cjb-g commented Aug 9, 2024

Did you try changing the prefix option in your main.js ?

https://primevue.org/theming/styled/#theme

import PrimeVue from 'primevue/config';
import Aura from '@primevue/themes/aura';

const app = createApp(App);

app.use(PrimeVue, {
    // Default theme configuration
    theme: {
        preset: Aura,
        options: {
            prefix: 'p',
            darkModeSelector: 'system',
            cssLayer: false
        }
    }
 });

@geiregjo
Copy link
Author

geiregjo commented Sep 2, 2024

I did, it's set to "prls". But this does not reflect in the Tailwind CSS output. Instead I get:

.text-primary-500 {
  --tw-text-opacity: 1;
  color: color-mix(in srgb, var(--p-primary-500) calc(100% * var(--tw-text-opacity)), transparent);
}

@valante
Copy link

valante commented Oct 7, 2024

Confirming this issue. Please fix.

@LarsKeulen
Copy link

Confirming this issue is still present in Jan 2025.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants