-
Notifications
You must be signed in to change notification settings - Fork 35
Conversation
src/utils.ts
Outdated
} | ||
|
||
function tokensToJson(data) { | ||
// TODO: type data |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We'll need to address this one, but I still need to wrap my head around the shape of data
8f33005
to
e132dfe
Compare
e132dfe
to
506fdd1
Compare
8686d94
to
d9337e8
Compare
Hoo boy this does a bunch of stuff. Most of this is based around the idea that having one dist folder that both new and old stuff go into is confusing, and that we should stop that, so that the delineation is clearer and we have a more obvious migration path when it comes to removing the old tokens.
To testRun After this gets merged into the next branch:
|
Removes root color-factory.js (instead import from polaris-tokens/dist-modern/) compile to cjs Update theo transform to read from dist-modern Run ts build before gulp runs Colocate color-factory test next to color-factory.ts
Remove some unneeded bits in npmignore
There are now build-modern and a build-legacy tasks
This lets the format step be ran within the build-legacy phase instead of the docs phase
4b452ed
to
ffd31b1
Compare
* Added surface disabled variant and updated other variant configs ([#101](#101)) * Added TypeScript build for modern tokens, and shifted directory structures to differentiate between legacy and modern tokens ([#97](#97)) * Updated variant names and descriptions ([#96](#96)) * Added decorative icon variants ([#94](#94)) * Built changes from previous release, and added textOnInteractive variant ([#93](#93)) * Fixed an issue where legacy themes caused the color factory to throw ([#92](#92)) * Update color variants for consistency with changes in Polaris React ([#91](#91)) * Marked the config as optional and the colors as partial ([dd3d8fc](https://github.com/Shopify/polaris-tokens/commit/ * Actually exporting the types would be helpful ([4998856](4998856)) * Added the Color Factory. Long live the Color Factory! ([#89](#89)) Co-authored-by: Dan Rosenthal <dan.rosenthal@shopify.com> Co-authored-by: Ben Scott <227292+BPScott@users.noreply.github.com> Co-authored-by: Kyle Durand <kyle.durand@shopify.com> Co-authored-by: Sara Hill <sara.hill@shopify.com>
No description provided.