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
refactor(custom/colors): Use useStyleTag for injecting accent color styles
- Refactor custom accent color logic to avoid directly updating CSS variables, which caused resets and disappearance from body styles on window resize
- Replace manual creation and injection of `<style>` tags with `vueuse`'s `useStyleTag` utility
- Ensure accent color styles are consistently applied without latency, lag, or DOM freezing
- Improve performance and reliability by leveraging `useStyleTag` for dynamic style injection
Changes summary:
- Refactored the custom accent color logic to use `vueuse`'s `useStyleTag` for injecting styles into the document head. This approach eliminates issues with CSS variables being reset or disappearing during window resize, while also removing latency, lag, and DOM freezing that occurred with manual `<style>` tag injection. The result is a smoother and more reliable implementation.
0 commit comments