-
Notifications
You must be signed in to change notification settings - Fork 48
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
Style dictionary update including adding colors #353
Conversation
|
Variables changedNo variables changed |
🟢 No design token changes found |
Hey @langermank & @rezrah, I am currently thinking about the prefix. When do we want to have the You are export with and without here: https://primer.style/primitives/typography and for sizes. It also seems we don't have prefixes here: https://primer.style/react/theming or here https://unpkg.com/@primer/css@20.4.5/dist/primer.css So should we not add prefixes? Lastly I am not sure adding prefixes to js objects makes sense as you can prefix them when importing and with prefix you would get something like import theme from '@primer/ts/light.ts' |
73a8dce
to
ecaf70a
Compare
… & added to base
…fig/utils/jsonToNestedValue.ts
d71d730
to
6855dec
Compare
6855dec
to
8b9b14e
Compare
8b9b14e
to
cde1b71
Compare
Closing as everything is not merged via multiple other PRs. |
As mentioned to @rezrah in the loom, I am trying to get our config back to the SD basics and at the same time extract small functions.
Additionally I want the json files to be the only influence on the token output so that a user can just edit json files and does not have to expect any side effects form the script.
Focus: easy authoring & json that conform to w3c design token spec
Todos
export
color.json
,size.json
,typograhy.json
deprecated
property like @rezrah mentioned here: https://github.com/github/primer/pull/1309#discussion_r978409181JSON5
parser: Move to json5 for token source files. #357don't export basepipe base scales to output: https://github.com/github/github/pull/240557$type=color
,$type=typography
and have nofigmaType
figmaType
to all tokens where applicable according to figmaTokensalpha
is presentvalue
is a color that is already transparent? → Alpha is added up (0.6 - 0.4 => 0.2)$type
value
to$value
add requiredhoping for w3c to change typography to not require all valuesletterSpacing
totypography
tokensui
,code
,content
and movesystem, sansSerif, serif, monospace
tobase
Cleanup
Could also be tackled after merging.
extension
to show that they extenddark.json
orlight.json
?exception
files be placed in a subfolder?Questions
prefix
: Style dictionary update including adding colors #353 (comment)