question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Generate multiple tokens per property

See original GitHub issue

Is it possible to generate multiple tokens for a single property?

The specific case I’m looking for is, given a Hex color property, generate both Hex and RGB color tokens.

{
  "color": {
    "white": { "value": "#FFFFFF" },
    "black": { "value": "#000000" }
  }
}

Would produce something like this:

$color-white: #FFFFFF;
$color-black: #000000;
$color-white-rgb: 255,255,255;
$color-black-rgb: 0,0,0;

I know I can transform a value into another format and I used that in the past, but what I’m looking for is multiple formats for a single input value (in my case just colors).

On a side note, is there an official Discord or Slack channel for Style Dictionary discussions/help?

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Reactions:1
  • Comments:10 (6 by maintainers)

github_iconTop GitHub Comments

1reaction
nuno-mcommented, Jan 14, 2021

@dbanksdesign yes, please. Sorry for not getting back earlier. Feel free to close this issue.

0reactions
dbanksdesigncommented, Jan 14, 2021

No worries at all! Closing for now. Feel free to re-open or open a new issue if you have any more questions!

Read more comments on GitHub >

github_iconTop Results From Across the Web

Create multiple tokens for a unique property
here is the idea: we assign a set of unique tokens to a company and then we allow people to buy some tokens...
Read more >
Allow multiple application tokens for multipl build variants in ...
I'm working on a project that has a debug and release build variant that are wired up to separate New Relic buckets (development...
Read more >
Spring Oauth2 - multiple tokens per client id - Stack Overflow
I have noticed that the server generates the same token per user/client id combination even when calling from separate devices. This causes an...
Read more >
Token Best Practices - Auth0
Token -based authentication is implemented by generating a token when the user authenticates and then setting that token in the Authorization header of...
Read more >
API Protection token management properties - IBM
For configuration task instructions, see Creating an API protection definition. ... redirects fail because the access token is validated multiple times.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found