Closed 7iomka closed 2 months ago
How about a new setting bodyAttributes
:
// +config.js
export default {
bodyAttributes: { class: 'dark' }
}
PR welcome in case that's something you'd have fun doing. Otherwise I'll implement it myself later today.
How about a new setting
bodyAttributes
:// +config.js export default { bodyAttributes: { class: 'dark' } }
PR welcome in case that's something you'd have fun doing. Otherwise I'll implement it myself later today.
Implementation on your side will be preferable, because I am a newbie here:)
My general suggestion is to add
bodyAttributes
and htmlAttributes
. In case of the html attrs of course you can add a class as well, but maybe need some extra work to omit lang and dir attributes from other configs.
Thanks.
:+1: Will do tomorrow.
See the example in the PR.
See the example in the PR.
I mean this version is not found when I tried to install it
Implemented by https://github.com/vikejs/vike-vue/pull/169. I will release a new version in the coming days.
How to add some className to body? For example I want initially to have
dark
class for tailwind dark theme by default for all my pages.