Skip to content

Hook

useTheme

Return

  • DefaultTheme

Usage

vue
<script setup lang="ts">
  import styled, { useTheme } from '@vue-styled-components/core'
  
  const theme = useTheme()

  const StyledDiv = styled.div`
    background: ${ theme.bg };
  `
</script>

Released under the Apache-2.0 License.