-
Notifications
You must be signed in to change notification settings - Fork 178
feat(commonlib): Move style choices to design tokens dir #1516
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
base: master
Are you sure you want to change the base?
Conversation
Making eaier to manage those choices and override those in the future in one place.
Remove misleading thresholds from grafana by default
Dasomeone
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is a fantastic effort @v-zhuravlev! Works great too, tested with the kafka observ-lib locally, and worked just fine and added additional palette info to a couple panels.
One comment on consistent naming on colours, what gets aliases and what doesn't, but overall hugely in favour of this.
| + timeSeries.standardOptions.color.withMode('fixed') | ||
| + timeSeries.standardOptions.color.withFixedColor('light-purple'), | ||
| + timeSeries.standardOptions.color.withMode(tokens.base.colors.mode.single) | ||
| + timeSeries.standardOptions.color.withFixedColor(tokens.base.colors.palette['light-purple']), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Given that this particular colour has an alias for rate but nor for topk_percentage, perhaps we should settle on a consistent approach here?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
wdyt, what should be done here?
Making easier to manage those choices and override those in the future in one place.
In other words, all things like colors or line thickness are placed in in folder, and then referenced by commonlib panels (or observ-libs that uses common-lib as a core). So if it decided to change base colors used it just one place where to change it.
Refs
https://www.uxpin.com/studio/blog/what-are-design-tokens/
Meantime, this is not a breaking change, everything should work as before.