I'm setting up my frontend with:
- PrimeVue
- VUE / Vite
- Tailwind
I've followed the docs for unstyled with pt: Lara.
When using a from primevue and set severity to 'danger' the button is styled correctly.
However, now I'm using the component, but it remains unstyled.

The app.vue (used for testing) is as follow:
<template>
<div class="card flex justify-center">
<Toast />
<Button label="Show" @click="show()" />
</div>
<Button label="Danger" severity="danger" />
</template>
<script setup>
import { useToast } from "primevue/usetoast";
const toast = useToast();
const show = () => {
toast.add({ severity: 'danger', summary: 'Info', detail: 'Message Content', life: 6000 });
};
</script>
taiwind config:
/** @type {import('tailwindcss').Config} */
export default {
content: [
"./index.html",
"./src/**/*.{vue,js,ts,jsx,tsx}",
"./assets/presets/**/*.{vue,js,ts,jsx,tsx}"
],
theme: {
extend: {
colors: {
primary: 'rgb(var(--primary))',
'primary-inverse': 'rgb(var(--primary-inverse))',
'primary-hover': 'rgb(var(--primary-hover))',
'primary-active-color': 'rgb(var(--primary-active-color))',
'primary-highlight': 'rgb(var(--primary)/var(--primary-highlight-opacity))',
'primary-highlight-inverse': 'rgb(var(--primary-highlight-inverse))',
'primary-highlight-hover': 'rgb(var(--primary)/var(--primary-highlight-hover-opacity))',
'primary-50': 'rgb(var(--primary-50))',
'primary-100': 'rgb(var(--primary-100))',
'primary-200': 'rgb(var(--primary-200))',
'primary-300': 'rgb(var(--primary-300))',
'primary-400': 'rgb(var(--primary-400))',
'primary-500': 'rgb(var(--primary-500))',
'primary-600': 'rgb(var(--primary-600))',
'primary-700': 'rgb(var(--primary-700))',
'primary-800': 'rgb(var(--primary-800))',
'primary-900': 'rgb(var(--primary-900))',
'primary-950': 'rgb(var(--primary-950))',
'surface-0': 'rgb(var(--surface-0))',
'surface-50': 'rgb(var(--surface-50))',
'surface-100': 'rgb(var(--surface-100))',
'surface-200': 'rgb(var(--surface-200))',
'surface-300': 'rgb(var(--surface-300))',
'surface-400': 'rgb(var(--surface-400))',
'surface-500': 'rgb(var(--surface-500))',
'surface-600': 'rgb(var(--surface-600))',
'surface-700': 'rgb(var(--surface-700))',
'surface-800': 'rgb(var(--surface-800))',
'surface-900': 'rgb(var(--surface-900))',
'surface-950': 'rgb(var(--surface-950))'
}
},
},
plugins: [],
}
the main.js:
import './assets/main.css'
import { createApp } from 'vue'
import { createPinia } from 'pinia'
import PrimeVue from 'primevue/config'
import Lara from '@/assets/presets/lara'
import App from './App.vue'
import router from './router'
// Import components from Primevue
import Button from 'primevue/button'
import FloatLabel from 'primevue/Floatlabel'
import InputText from 'primevue/inputtext'
import Toast from 'primevue/toast'
import ToastService from 'primevue/toastservice'
const app = createApp(App)
app.use(createPinia())
app.use(router)
app.use(PrimeVue,{
unstyled: true,
pt: Lara,
})
app.use(ToastService)
app.component("Button",Button)
app.component("FloatLabel",FloatLabel)
app.component("InputText",InputText)
app.component("Toast",Toast)
app.mount('#app')
ps. for example the "info" and/or "life" props in the configuration work, only the style or 'severity' seems not to be applied.
I'm stuck here...
thanks