Closed TravisSpomer closed 3 years ago
This is nearly finished in the platform-overrides
branch.
winui
is the only supported platform override; I need to add othersThis is now working as of this commit. I still need to write documentation for it.
We need a way to have tokens that are only exported for specific platforms, and for some tokens to have different values on each platform. We'd want to use this sparingly, but it's going to be unavoidable in some cases. e.g.:
SegmentedControl
(basically, their tabstrip) that we might want to restyle on Apple platforms, but not even export for Windows and CSS, since that control doesn't exist elsewhere.This would probably work just by adding some kind of
platform
node to certain tokens that would signify that all platforms other than the specified ones should ignore that node and its children. There could also be a way to specify the reverse, such asexceptPlatform
. For example: