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

[Question] Renaming theme object properties... #12

Open
didimedina opened this issue Jun 14, 2020 · 0 comments
Open

[Question] Renaming theme object properties... #12

didimedina opened this issue Jun 14, 2020 · 0 comments

Comments

@didimedina
Copy link

I'm a bit thrown off by a specific behavior that occurs and I can't seem to pinpoint what's causing it.

I want to change the name of my theme object to something else, for example, space to spacers. Then in my components, I use useTheme() and assign padding values like spacers.tightest for example. For some reason when I do this and console.log the value it logs it correctly but the rendered value is way off. However, when I rename it to its suggested name in the theme object to space it works as expected. This is strange to me bec I'd assume according to system-ui's documentation that so long it gets a valid value the name is arbitrary.

Any insight on why this is happening?

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