I am the about page and have set in my component:
+export default { + meta: { + theme: 'dark' + } +}+
This example is made to illustrate the usafe of
+ meta
inside the page components.
+
We have a middleware setup in
+ ~/middleware/theme.js
used to get which theme has to be applied and commit it to the store.
+
Then, in our layout, we simply use
+ $store.state.theme
as a class to change our CSS dynamically.
+
I am a child of /parent, and the theme is overwritten by myself!
+Go back to
+