Just to kickstart a reflexion I had.
Would be glad to implement this feature if there is a common agreement.
Proposed API
import { styled, tag } from 'styletron-vue'
const RedStyle = styled({
color: red
})
const RedButton = tag('button', RedStyle)
new Vue({
components: {
RedStyle,
RedButton,
},
template: `
<red-style tag="h1">i'm red title</red-style>
<red-style tag="h6">i'm small red title</red-style>
<red-button type="button">i'm red button</red-button>
`
})
Purpose
It will allow to play with styles and compose with more flexibility. It can simplify style reuse for quick usage.
Pay now to fund the work behind this issue.
Get updates on progress being made.
Maintainer is rewarded once the issue is completed.
You're funding impactful open source efforts
You want to contribute to this effort
You want to get funding like this too