You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Jul 19, 2022. It is now read-only.
Right now we have four potential places where colors and other styles can be defined:
The stylesheet
The Nivo theme (nivoTheme.js)
The constants file (constants.js)
The component file itself
Even without switching to a CSS-in-JS solution, I think we could get from 4 to 2 by deciding on the constants file (for example) as a single source of truth for all colors at least.
To help with that I created a new getColor(id) function (getColor('bars'), getColor('would_use_again'), etc.).
The text was updated successfully, but these errors were encountered:
Right now we have four potential places where colors and other styles can be defined:
nivoTheme.js
)constants.js
)Even without switching to a CSS-in-JS solution, I think we could get from 4 to 2 by deciding on the constants file (for example) as a single source of truth for all colors at least.
To help with that I created a new
getColor(id)
function (getColor('bars')
,getColor('would_use_again')
, etc.).The text was updated successfully, but these errors were encountered: