We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Will there be support for css modules instead of scoped?
The text was updated successfully, but these errors were encountered:
Yeah I plan to add CSS modules support, it should be pretty easy.
The proposed usage: import styled-vue/modules instead of styled-vue to use CSS modules.
styled-vue/modules
styled-vue
<template> <div><h1 :class="$style.title">hello there!</h1></div> </template> <script> import { css } from 'styled-vue/modules' import { modularScale } from 'polished' export default { style: css` .title { /* You can access component's "this" via "vm" */ color: ${vm => vm.$store.state.themeColor}; font-size: ${modularScale(2)}; margin: 0; } ` } </script>
Sorry, something went wrong.
No branches or pull requests
Will there be support for css modules instead of scoped?
The text was updated successfully, but these errors were encountered: