Skip to content
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

fix(DesignToken): updating tokens; adding new #1248

Merged
merged 2 commits into from
Jul 15, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions packages/react-components/src/foundations/design-token.ts
Original file line number Diff line number Diff line change
Expand Up @@ -375,6 +375,8 @@ export const DesignToken = {
'--one-popover-message-background-default',
OnePopoverBorderDefault: '--one-popover-border-default',
OnePopoverBorderActive: '--one-popover-border-active',
OneTooltipBackground: '--one-tooltip-background',
ContentBasicAutofill: '--content-basic-autofill',
};

export type DesignTokenKey = keyof typeof DesignToken;
10 changes: 10 additions & 0 deletions packages/react-components/src/stories/foundations/Color/data.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1611,4 +1611,14 @@ export const ColorsData: Record<
desc: '',
deprecated: undefined,
},
OneTooltipBackground: {
group: ColorGroup.Products,
desc: '',
deprecated: undefined,
},
ContentBasicAutofill: {
group: ColorGroup.ContentBasic,
desc: '',
deprecated: undefined,
},
};
10 changes: 8 additions & 2 deletions packages/react-components/src/themes/dark.scss
Original file line number Diff line number Diff line change
Expand Up @@ -83,8 +83,8 @@ $surface-invert-primary: #e2e2e4;
--surface-accent-emphasis-high-warning: #e8bb00;
--surface-accent-emphasis-high-positive: #01833a;
--surface-accent-emphasis-high-purple: #9146ff;
--surface-opacity-basic-hover: rgb(255 255 255 / 8%);
--surface-opacity-basic-active: rgb(255 255 255 / 12%);
--surface-opacity-basic-hover: hsl(0deg 0% 100% / 11%);
--surface-opacity-basic-active: hsl(0deg 0% 100% / 15%);
--surface-opacity-invert-hover: rgb(255 255 255 / 10%);
--surface-opacity-invert-active: rgb(255 255 255 / 12%);
--surface-overlay: rgb(19 19 23 / 90%); // deprecated
Expand Down Expand Up @@ -384,4 +384,10 @@ $surface-invert-primary: #e2e2e4;
#c930ff 313.12deg,
#7000ff 360.45deg
);
--one-tooltip-background: linear-gradient(
254.49deg,
#3c364c -0.38%,
#2d3a4c 94.44%
);
--content-basic-autofill: hsl(240deg 6% 97% / 59%);
}
6 changes: 6 additions & 0 deletions packages/react-components/src/themes/legacy.scss
Original file line number Diff line number Diff line change
Expand Up @@ -374,4 +374,10 @@ $decor-gray800: #29292f;
#c930ff 313.12deg,
#7000ff 360.45deg
);
--one-tooltip-background: linear-gradient(
254.49deg,
#3c364c -0.38%,
#1b2b46 96.36%
);
--content-basic-autofill: hsl(240deg 10% 8% / 59%);
}
6 changes: 6 additions & 0 deletions packages/react-components/src/themes/light.scss
Original file line number Diff line number Diff line change
Expand Up @@ -385,4 +385,10 @@ $content-basic-internal-note: #3a310c;
#c930ff 313.12deg,
#7000ff 360.45deg
);
--one-tooltip-background: linear-gradient(
254.49deg,
#3c364c -0.38%,
#1b2b46 96.36%
);
--content-basic-autofill: hsl(240deg 10% 8% / 59%);
}
Loading