packages/runtime-dom/src/helpers/useCssVars.ts
<<<<<<< SEARCH
function setVarsOnNode(el: Node, vars: Record<string, string>) {
  if (el.nodeType === 1) {
    const style = (el as HTMLElement).style
    let cssText = ''
    for (const key in vars) {
      style.setProperty(`--${key}`, vars[key])
      cssText += `--${key}: ${vars[key]};`
    }
    ;(style as any)[CSS_VAR_TEXT] = cssText
  }
}
=======
function setVarsOnNode(el: Node, vars: Record<string, string>) {
  if (el.nodeType === 1) {
    const style = (el as HTMLElement).style
    if (!style) return
    let cssText = ''
    for (const key in vars) {
      const value = vars[key]
      if (value == null || value === '') {
        style.removeProperty(`--${key}`)
      } else {
        style.setProperty(`--${key}`, value)
        cssText += `--${key}: ${value};`
      }
    }
    ;(style as any)[CSS_VAR_TEXT] = cssText
  }
}
>>>>>>> REPLACE
packages/shared/src/normalizeProp.ts
<<<<<<< SEARCH
  for (const key in styles) {
    const value = styles[key]
    if (isString(value) || typeof value === 'number') {
      const normalizedKey = key.startsWith(`--`) ? key : hyphenate(key)
      // only render valid values
      ret += `${normalizedKey}:${value};`
    }
  }
=======
  for (const key in styles) {
    const value = styles[key]
    if (isString(value) || typeof value === 'number') {
      const normalizedKey = key.startsWith(`--`) ? key : hyphenate(key)
      // only render valid values
      if (
        value !== '' &&
        (typeof value !== 'number' || normalizedKey !== 'display')
      ) {
        ret += `${normalizedKey}:${value};`
      }
    }
  }
>>>>>>> REPLACE