+htmlAttributes
type Value = Record<string, string>
type HtmlAttributes = Value | ((pageContext) => Value)vike-react/vike-vue/vike-solidYou need
vike-react/vike-vue/vike-solidto be able to use this setting.
The htmlAttributes setting adds attributes to the <html> tag.
// pages/+config.js
export default {
// <html class="dark">
htmlAttributes: { class: 'dark' }
}// pages/+config.ts
import type { Config } from 'vike/types'
export default {
// <html class="dark">
htmlAttributes: { class: 'dark' }
} satisfies ConfigSee lang if you merely want to set the <html lang> attribute.