You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
However when using var(--p-surface-50) in styles.scss I can see that the light mode color is applied correctly however activating dark mode has no effect and background-color remains same.
body {
background: var(--p-surface-50);
}
Not sure if that is a bug or if I missing something in the configuration.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Hello,
I am using presets and those are working as expected in all primeNg components both is light and dark mode.
export const appConfig: ApplicationConfig = {
providers: [
provideZoneChangeDetection({ eventCoalescing: true }),
provideRouter(routes),
provideAnimationsAsync(),
providePrimeNG({
theme: {
preset: MyPreset,
options: {
prefix: 'p',
darkModeSelector: '.app-dark', // 'system' '.app-dark'
cssLayer: false
}
}
})...
However when using var(--p-surface-50) in styles.scss I can see that the light mode color is applied correctly however activating dark mode has no effect and background-color remains same.
body {
background: var(--p-surface-50);
}
Not sure if that is a bug or if I missing something in the configuration.
Any help is appreciated.
Beta Was this translation helpful? Give feedback.
All reactions