foliage
foliage copied to clipboard
Support for stores
In React we could use components props and context to create dynamic styles
const Text = styled.div`
color: ${props => props.color}
`
In Forest we can do something with stores. Simple use case - theming
const Text = styled.div`
color: ${theme.map(theme => theme.colors.primary)}
`
Now it sets color to [object Object]

Can be implemented with css-vars:
const Text = styled.div`
color: var(--text-var-theme-juas98h);
`