We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Consider the following example:
colors: { blue: '#07c', blues: [ '#004170', '#006fbe', '#2d8fd5', '#5aa7de', ] }
One then has to then assign color names:
theme.colors.blues.regalBlue = theme.colors.blues[0]
But because object literals in JSON and JavaScript are already ordered, one could perhaps use instead:
colors: { blue: '#07c', blues: { regalBlue: '#004170', lochmara: '#006fbe', curiousBlue: '#2d8fd5', havelockBlue: '#5aa7de', } }
Something like styled-system could then transform blues to be available as an array, e.g. blues[0] or blues.0. Keys in JavaScript are already ordered.
styled-system
blues
blues[0]
blues.0
It'd be perhaps nice if theme objects could be in JSON? Then we could use a JSON schema to validate theme objects.
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Consider the following example:
One then has to then assign color names:
But because object literals in JSON and JavaScript are already ordered, one could perhaps use instead:
Something like
styled-system
could then transformblues
to be available as an array, e.g.blues[0]
orblues.0
. Keys in JavaScript are already ordered.It'd be perhaps nice if theme objects could be in JSON? Then we could use a JSON schema to validate theme objects.
The text was updated successfully, but these errors were encountered: