How to use the SASS API

UI Components for Vue
Post Reply
sunalive
Posts: 1
Joined: 24 Mar 2022, 13:31

26 Mar 2022, 13:51

Hi there, I'm trying to use the SASS API to override some colours on the lara themes. When I use them no change happens?
Here is my main.ts file:

Code: Select all

import { createApp } from 'vue'
import { createPinia } from 'pinia'
import PrimeVue from 'primevue/config';
import Button from 'primevue/button';
import App from './App.vue'
import router from './router'
import 'primevue/resources/primevue.min.css'
import './assets/styles/_variables.scss'
const app = createApp(App)

app.use(createPinia())
app.use(router)
app.use(PrimeVue)
app.component('Button', Button);
app.mount('#app')
And here is my _variables.scss

Code: Select all

/* General */
$fontSize:14px;
$borderRadius:12px;
$transitionDuration:.2s;
$primaryColor:#1a5cff
The other thing to note is that I have copied the themes from the resources folder in the public folder to allow switching between themes. Any help would be greatly appreciated

Post Reply

Return to “PrimeVue”

  • Information
  • Who is online

    Users browsing this forum: No registered users and 10 guests