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
{{ message }}
This repository has been archived by the owner on Sep 4, 2024. It is now read-only.
Analog uses media query @media (prefers-color-scheme: light) I want to keep it
PrimeNG has specific setup of adjusting the angular.json, using a service and adding an element that loads stylesheets dynamically
Suggested solution
let's see if I can combine both
this one turns out to be a bit more challenging than I thought
cannot keep PrimeNG theming in the same file, that doesn't work as styles overwrite each other
I tried several implementations adding stuff to the vite.config.js
there has been a bit of a challenge in adding another link element directly in the index.html but I found a workaround for this
current biggest challenge is to separate the CSS files so that I get styles.css but also separate compiled dark.css and light.css which I can load dynamically
Additional context
suggestions are more than welcome
I would be willing to submit a PR to fix this issue
Type of feature
✨ Feature
Current behavior
@media (prefers-color-scheme: light)
I want to keep itangular.json
, using a service and adding an element that loads stylesheets dynamicallySuggested solution
let's see if I can combine both
this one turns out to be a bit more challenging than I thought
cannot keep PrimeNG theming in the same file, that doesn't work as styles overwrite each other
I tried several implementations adding stuff to the
vite.config.js
there has been a bit of a challenge in adding another
link
element directly in theindex.html
but I found a workaround for thiscurrent biggest challenge is to separate the
CSS
files so that I getstyles.css
but also separate compileddark.css
andlight.css
which I can load dynamicallyAdditional context
I would be willing to submit a PR to fix this issue
The text was updated successfully, but these errors were encountered: