microsoft / fluentui-token-pipeline

The Fluent UI token pipeline generates source code for Fluent UI libraries.
https://microsoft.github.io/fluentui-token-pipeline/
Other
41 stars 18 forks source link

WinUI lightweight styling names #37

Closed TravisSpomer closed 3 years ago

TravisSpomer commented 3 years ago

I'm going to be getting an Excel spreadsheet mapping the WinUI lightweight styling resource names to our standardized token names. I'll need to build a small console app that reads that and writes out token JSON with some platform overrides that can be merged with other token JSON from the plugin:

{
  "Meta": { "FluentUITokensVersion": 0 },
  "platform" : { "winui": {
    "Button": { "Base": { "Fill": { "Color": { "fullName": "ButtonBackground" }}}},
    "etc": "etc"
  }}
}
TravisSpomer commented 3 years ago

I added an example script in this commit and verified that it works with the sample data I have. We can use that script to produce token JSON with those mappings to feed into the pipeline along with regular tokens.