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

Use emotion to render css #14

Open
DecampsRenan opened this issue Dec 12, 2023 · 0 comments
Open

Use emotion to render css #14

DecampsRenan opened this issue Dec 12, 2023 · 0 comments

Comments

@DecampsRenan
Copy link

DecampsRenan commented Dec 12, 2023

The idea is to manage theme and css via emotion; this could enable some nice features like:

  • as prop
  • Native support of hardcoded css values (right now, only theme values are accepted => we can't work with dynamic colors sent by the api or defined by the user for example)
  • Alias support (not sure), so using h or height is the same

Usage:

<Box as={Link} color="red.200" />

Maybe using something like emotion could help (see https://emotion.sh/docs/styled#as-prop)

@DecampsRenan DecampsRenan changed the title Support as attribute at least on Box component Use emotion to render css Dec 12, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant