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

Reverse colors on globals.js #25

Closed
diegohaz opened this issue Dec 14, 2016 · 0 comments
Closed

Reverse colors on globals.js #25

diegohaz opened this issue Dec 14, 2016 · 0 comments

Comments

@diegohaz
Copy link
Owner

Currently we are using Array.prototype.reverse() at runtime on many styles. This should be static and defined on globals.js. Something like:

export const reverseColors = {}

Object.keys(colors).forEach((key) => {
  reverseColors[key] = [ ...colors[key] ].reverse()
})
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