Skip to content
New issue

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

Introduce hook that can be used to resolve style sheet object without producing class names #665

Open
michalkvasnicak opened this issue Dec 22, 2020 · 0 comments
Labels
enhancement New feature or request
Milestone

Comments

@michalkvasnicak
Copy link
Member

For usages where people want to use style sheets from visage but want to pass them to their own css in js solution they should be able to use a hook for this that should be possible a part of core.

const style = useVisageStyles();

return <div css={style({ color: 'primary' })} />

The style object should be defined outside of component scope / in memo hook for performance optimization (caching).

@michalkvasnicak michalkvasnicak added the enhancement New feature or request label Dec 22, 2020
@michalkvasnicak michalkvasnicak added this to the v1.0.0 milestone Dec 22, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant