Reputation: 1565
Stack Blitz example: https://stackblitz.com/edit/stackblitz-starters-ajqpjxrh?file=src%2Fmain.ts
I implemented a light and a dark theme for angular material 18, see stack blitz example.
it seems to work somehow, but some styles don't seem to be set correctly. See for example the menu overlay or the submit button tooltip.
It seems that css variables have been lost, for example --mat-menu-container-shape
. What have I done wrong or how can I implement light/dark mode so that all styles are applied correctly and I can switch the mode via css class?
Upvotes: 0
Views: 45