Dark for all components
-
Is there a way to ‘globally’ set properties, such as
dark
for all components?Right now I have a user configurable global app state
isDark
in Vuex, but i have to add:dark="state.isDark"
to every component that has that takes thedark
prop, and add the Vuex state or getter to every component.It is getting to be quite a bit of overhead, and I was wondering if anyone had a better solution. Thanks in advance.
-
Maybe color branding helps: https://quasar-framework.org/components/color-utils.html ?
-
@binaryconstruct, @fakx dark mode was released - https://quasar.dev/style/dark-mode or https://dev.to/quasar/hys-1-quasar-1-3-0-15eo.