sourcegraph / sourcegraph-public-snapshot

Code AI platform with Code Search & Cody
https://sourcegraph.com
Other
10.1k stars 1.28k forks source link

Create one source of truth for color variables usage in Javascript #23839

Open valerybugakov opened 3 years ago

valerybugakov commented 3 years ago

We have a file where all CSS color variables are defined. However, some colors should be used in Javascript code.

We don't have a robust way to sync them with CSS variables. It's done manually via comments. Also, such values are scattered across the codebase without one source of truth for them.

As a part of this ticket:

  1. Create one source file from where CSS color values can be used in Javascript code.
  2. Think about enforcing synchronization with CSS color variables. It might be done via extracting CSS variable values using JS API similar to ColorsVariants story.
github-actions[bot] commented 3 years ago

Heads up @alicjasuska @umpox @valerybugakov @5h1ru @pdubroy - the "team/frontend-platform" label was applied to this issue.