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

[IDEA] palette collections #5

Open
CITguy opened this issue Oct 9, 2020 · 0 comments
Open

[IDEA] palette collections #5

CITguy opened this issue Oct 9, 2020 · 0 comments

Comments

@CITguy
Copy link

CITguy commented Oct 9, 2020

It makes sense that you could programmatically generate multiple DSPs (one per theme), but there are times where I would like to define smaller, focused palettes based on theme colors.

Example: Data Visualization

Say I have the following themes:

  • Light
  • Light (high contrast)
  • Dark
  • Dark (high contrast)

I would like to define a set of consistently named palettes for each theme, so that I can apply a palette to a project asset in a way that I can swap out the theme, but retain the applied palette.

Examples palettes may be:

  • "bright" - base colors (e.g., Red 500, Blue 500, Green 500, etc.)
  • "dim" - low saturation colors (e.g., Red 100, Blue 100, Green 100, etc.)
  • "warm" - monochrome set of Reds or Oranges
  • "cool" - monochrome set of Blues or Cyans
  • "grayscale"
  • etc.

I would expect the following to happen:

GIVEN I am using the "Light" theme,
WHEN I apply the "bright" palette to a chart
AND I switch to the "Dark" theme,
THEN the client should apply the "bright" palette from the "Dark" theme to the same chart.


  • client: an application, plugin, extension, etc. that consumes a DSP and applies it to project assets
  • colors (a.k.a. "global palette"): set of token entities of "type": "color"
  • palette: collection entity of "type": "palette"
    • a subset of colors in the global palette
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