Skip to content

Infra/ design tokens infra #1752

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

Merged
merged 5 commits into from
Jan 5, 2022
Merged

Infra/ design tokens infra #1752

merged 5 commits into from
Jan 5, 2022

Conversation

lidord-wix
Copy link
Contributor

Description

Add designTokens infra

Changelog

Add designTokens infra

import {colorsPalette} from './colorsPalette';

export const designTokens = {
...colorsPalette,
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I wouldn't include the system colors palette in the tokens, It might be good for us to have a clear separation between the two objects in the future.
In the Colors class you can load the all together

@@ -11,7 +12,7 @@ export class Colors {
[key: string]: any;

constructor() {
const colors = Object.assign(colorsPalette, themeColors);
const colors = Object.assign(designTokens, themeColors);
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

See my previous comment on separating between the tokens and colorsPalette, here you can join them together instead of include the colorsPalette in the tokens

const colorObject = new TypedColors();
colorObject.loadColors(colorsPalette);
colorObject.loadColors(designTokens);
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

same here

@lidord-wix lidord-wix requested a review from ethanshar January 4, 2022 16:25
@ethanshar ethanshar merged commit 76ebef9 into master Jan 5, 2022
@lidord-wix lidord-wix deleted the infra/designTokens branch January 25, 2022 15:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants