microsoft / microsoft/AzureStorageExplorer

Add support for color palettes in themes

Open
#8,192 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
No language data
Stars
452
Forks
92
Avg merge
15h 20m
Merged PRs (30d)
3

Description

App themes have many color tokens, but most of these colors tend to be limited to much smaller sets of colors. It would be useful to have a way to refer to these color "swatches" rather than the raw color values over and over again. This makes it easier to make color adjustments while keeping the app's color palette uniform.

For example, today we must specify explicit color values for every token:

{
  "data-grid-focus-cell-selected-hover-background": "#3669FF",
  "data-grid-focus-cell-selected-hover-border": "#3669FF",
  "data-grid-focus-cell-selected-inactive-background": "#3355AA",
  "data-grid-focus-cell-selected-inactive-border": "#3355AA",
}

It would be more convenient to refer to a color by some name, allowing color palettes to remain unform and future changes to be localized to one place:

{
  "DarkBlue": "#3355AA",
  "LightBlue": "#3669FF",
  "data-grid-focus-cell-selected-hover-background": "%LightBlue",
  "data-grid-focus-cell-selected-hover-border": "%LightBlue",
  "data-grid-focus-cell-selected-inactive-background": "%DarkBlue",
  "data-grid-focus-cell-selected-inactive-border": "%DarkBlue"
}
{
  "colors": {
    "DarkBlue": "#3355AA",
    "LightBlue": "#3669FF"
  },
  "tokens": {
    "data-grid-focus-cell-selected-hover-background": "%LightBlue",
    "data-grid-focus-cell-selected-hover-border": "%LightBlue",
    "data-grid-focus-cell-selected-inactive-background": "%DarkBlue",
    "data-grid-focus-cell-selected-inactive-border": "%DarkBlue"
  }
}

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by locating the theme token handling and configuration used by Azure Storage Explorer; the issue names no files, tests, or entry points. Compare the two palette representations in the issue and define what “done” means for resolving named colors while preserving existing raw color values.

Written by the indexing model from the issue text.

Assessment

Domain
design
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.