useCssVars is called without current active component instance
Vue version
3.2.47
Link to minimal reproduction
Steps to reproduce
<template>
<div class="test">test</div>
</template>
<script setup>
let background = $ref('red')
</script>
<style>
#app {
width: 100%;
height: 100%;
}
.test {
width: 100%;
height: 100%;
background: v-bind(background);
}
</style>
What is expected?
useCssVars work well
What is actually happening?
useCssVars not effective
System Info
No response
Any additional comments?
No response