From 9014fdca968cfb53cc27abf714bdde8c4d7d5266 Mon Sep 17 00:00:00 2001 From: PixeledCode Date: Wed, 29 Jan 2025 16:03:32 +0530 Subject: [PATCH 01/46] feat(side-panel): add elevation changes --- packages/paste-core/components/side-panel/src/SidePanel.tsx | 6 ++---- .../components/side-panel/src/SidePanelFooter.tsx | 2 +- .../stories/components/MessagingInsightsContent.tsx | 4 ---- .../stories/components/SidePanelWithAIContent.tsx | 2 -- .../stories/components/SidePanelWithFilterContent.tsx | 2 -- .../paste-website/src/pages/components/side-panel/index.mdx | 4 ---- 6 files changed, 3 insertions(+), 17 deletions(-) diff --git a/packages/paste-core/components/side-panel/src/SidePanel.tsx b/packages/paste-core/components/side-panel/src/SidePanel.tsx index 6d33b5aed9..ba16607ab5 100644 --- a/packages/paste-core/components/side-panel/src/SidePanel.tsx +++ b/packages/paste-core/components/side-panel/src/SidePanel.tsx @@ -96,11 +96,9 @@ const SidePanel = React.forwardRef( maxHeight="100%" flexDirection="column" width={["100%", "size40", "size40"]} - borderStyle="solid" borderRadius={["borderRadius0", "borderRadius70", "borderRadius70"]} - borderWidth="borderWidth10" - borderColor="colorBorderWeaker" - backgroundColor="colorBackgroundBody" + boxShadow="shadowElevation05" + backgroundColor="colorBackgroundWeaker" marginTop="space40" marginBottom={["space0", "space40", "space40"]} paddingBottom="space70" diff --git a/packages/paste-core/components/side-panel/src/SidePanelFooter.tsx b/packages/paste-core/components/side-panel/src/SidePanelFooter.tsx index 248ecee702..ebb51ded1a 100644 --- a/packages/paste-core/components/side-panel/src/SidePanelFooter.tsx +++ b/packages/paste-core/components/side-panel/src/SidePanelFooter.tsx @@ -11,7 +11,7 @@ const SidePanelFooter = React.forwardRef( paddingX={variant === "chat" ? "space50" : "space70"} paddingBottom="space50" paddingTop={variant === "chat" ? "space0" : "space50"} - boxShadow={variant === "chat" ? "none" : "shadow"} + boxShadow={variant === "chat" ? "none" : "shadowElevationTop05"} marginBottom="spaceNegative70" zIndex="zIndex20" display="flex" diff --git a/packages/paste-core/components/side-panel/stories/components/MessagingInsightsContent.tsx b/packages/paste-core/components/side-panel/stories/components/MessagingInsightsContent.tsx index 5e3215f650..bbf9ca0be5 100644 --- a/packages/paste-core/components/side-panel/stories/components/MessagingInsightsContent.tsx +++ b/packages/paste-core/components/side-panel/stories/components/MessagingInsightsContent.tsx @@ -14,7 +14,6 @@ import { PlusIcon } from "@twilio-paste/icons/esm/PlusIcon"; import { Label } from "@twilio-paste/label"; import { Paragraph } from "@twilio-paste/paragraph"; import { Option, Select } from "@twilio-paste/select"; -import { Separator } from "@twilio-paste/separator"; import { Tab, TabList, TabPanel, TabPanels, Tabs } from "@twilio-paste/tabs"; import { Text } from "@twilio-paste/text"; import { useUID } from "@twilio-paste/uid-library"; @@ -74,9 +73,6 @@ export const MessagingInsightsContent: React.FC - - - From 14a9ad73d36a93404f5154869753a5253b683022 Mon Sep 17 00:00:00 2001 From: PixeledCode Date: Thu, 6 Feb 2025 20:44:02 +0530 Subject: [PATCH 29/46] feat(sidepanel): update tokens --- packages/paste-core/components/side-panel/src/SidePanelBody.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/paste-core/components/side-panel/src/SidePanelBody.tsx b/packages/paste-core/components/side-panel/src/SidePanelBody.tsx index c179902884..03b422434c 100644 --- a/packages/paste-core/components/side-panel/src/SidePanelBody.tsx +++ b/packages/paste-core/components/side-panel/src/SidePanelBody.tsx @@ -23,7 +23,7 @@ const SidePanelBodyWrapper = styled.div(({ theme }: { theme: ThemeShape }) => { }, // Handle "::-webkit-scrollbar-thumb": { - background: colorBackgroundBodyElevation, + background: colorBackgroundElevation, borderRadius: "10px", }, // Handle on hover From 09f4aec92c1c676906cb7da325e02a8f37d1e9e8 Mon Sep 17 00:00:00 2001 From: PixeledCode Date: Thu, 6 Feb 2025 20:44:26 +0530 Subject: [PATCH 30/46] feat(sidebar): update tokens --- .../sidebar/src/navigation/SidebarNavigation.tsx | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/packages/paste-core/components/sidebar/src/navigation/SidebarNavigation.tsx b/packages/paste-core/components/sidebar/src/navigation/SidebarNavigation.tsx index e2f0d3cfa0..3e05898e9d 100644 --- a/packages/paste-core/components/sidebar/src/navigation/SidebarNavigation.tsx +++ b/packages/paste-core/components/sidebar/src/navigation/SidebarNavigation.tsx @@ -14,7 +14,8 @@ import { SidebarNavigationContext } from "./SidebarNavigationContext"; * only when they are scrolled out of view */ const SidebarNavigationWrapper = styled.nav(({ theme }: { theme: ThemeShape }) => { - const { colorBackgroundInverse, colorBackgroundInverseElevation } = theme.backgroundColors; + const { colorBackgroundInverse, colorBackgroundInverseStrongerElevation, colorBackgroundInverseStrongElevation } = + theme.backgroundColors; return css({ overflowScrolling: "touch", @@ -36,12 +37,12 @@ const SidebarNavigationWrapper = styled.nav(({ theme }: { theme: ThemeShape }) = }, // Handle "::-webkit-scrollbar-thumb": { - background: colorBackgroundInverseElevation, + background: colorBackgroundInverseStrongElevation, borderRadius: "10px", }, // Handle on hover "::-webkit-scrollbar-thumb:hover": { - background: colorBackgroundInverseElevation, + background: colorBackgroundInverseStrongerElevation, }, }); }); From 6c15853ceb88cbba874a8f77a76729bc93b39f42 Mon Sep 17 00:00:00 2001 From: PixeledCode Date: Mon, 10 Feb 2025 11:34:40 +0530 Subject: [PATCH 31/46] feat(tokens): add shadow-elevation-top-20 token --- packages/paste-design-tokens/tokens/global/box-shadow.yml | 5 ++++- .../tokens/themes/dark/global/box-shadow.yml | 5 ++++- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/packages/paste-design-tokens/tokens/global/box-shadow.yml b/packages/paste-design-tokens/tokens/global/box-shadow.yml index 45eaa882fc..89b2b53b37 100644 --- a/packages/paste-design-tokens/tokens/global/box-shadow.yml +++ b/packages/paste-design-tokens/tokens/global/box-shadow.yml @@ -284,8 +284,11 @@ props: value: "{!offset-0} {!offset-negative-05} {!offset-0} {!offset-0} {!palette-gray-90}, {!offset-0} {!offset-15} {!offset-20} {!offset-0} {!palette-black-transparent-40}" comment: Use on inverse elements that overlay other UI components but remain visually connected to the elements behind them. shadow-elevation-20: - value: "{!offset-0} {!offset-0} {!offset-0} {!offset-05} {!palette-gray-05}, {!offset-0} {!offset-30} {!offset-40} {!offset-0} {!palette-gray-110-transparent-10}, {!offset-60} {!offset-60} {!offset-90} {!offset-0} {!palette-gray-110-transparent-05}" + value: "{!offset-0} {!offset-30} {!offset-40} {!offset-0} {!palette-gray-110-transparent-10}, {!offset-60} {!offset-60} {!offset-90} {!offset-0} {!palette-gray-110-transparent-05}" comment: Use on elements that sit above the UI to indicate a greater distance distance from the surface behind them. shadow-elevation-left-20: value: "{!offset-0} {!offset-0} {!offset-0} {!offset-05} {!palette-gray-05}, {!offset-negative-20} {!offset-0} {!offset-40} {!offset-0} {!palette-gray-110-transparent-10}, {!offset-negative-60} {!offset-0} {!offset-90} {!offset-0} {!palette-gray-110-transparent-05}" comment: Use for elements that dynamically open from the right side of the screen, appearing above the UI to indicate a greater separation from the underlying surface. + shadow-elevation-top-20: + value: "{!offset-0} {!offset-0} {!offset-0} {!offset-05} {!palette-gray-05}, {!offset-0} {!offset-30} {!offset-40} {!offset-0} {!palette-gray-110-transparent-10}, {!offset-60} {!offset-60} {!offset-90} {!offset-0} {!palette-gray-110-transparent-05}" + comment: Use on elements that sit above the UI to indicate a greater distance distance from the surface behind them. diff --git a/packages/paste-design-tokens/tokens/themes/dark/global/box-shadow.yml b/packages/paste-design-tokens/tokens/themes/dark/global/box-shadow.yml index f802ce9356..dd2c64d6c6 100644 --- a/packages/paste-design-tokens/tokens/themes/dark/global/box-shadow.yml +++ b/packages/paste-design-tokens/tokens/themes/dark/global/box-shadow.yml @@ -199,8 +199,11 @@ props: value: "{!offset-0} {!offset-negative-05} {!offset-0} {!offset-0} {!palette-gray-90}, {!offset-0} {!offset-15} {!offset-20} {!offset-0} {!palette-black-transparent-40}" comment: Use on elements that overlay other UI components but remain visually connected to the elements behind them. shadow-elevation-20: - value: "{!offset-0} {!offset-0} {!offset-0} {!offset-05} {!palette-gray-95}, {!offset-0} {!offset-30} {!offset-40} {!offset-0} {!palette-black-transparent-30}, {!offset-60} {!offset-60} {!offset-90} {!offset-0} {!palette-black-transparent-20}" + value: "{!offset-0} {!offset-30} {!offset-40} {!offset-0} {!palette-black-transparent-30}, {!offset-60} {!offset-60} {!offset-90} {!offset-0} {!palette-black-transparent-20}" comment: Use on elements that sit above the UI to indicate a greater distance distance from the surface behind them. shadow-elevation-left-20: value: "{!offset-0} {!offset-0} {!offset-0} {!offset-05} {!palette-gray-95}, {!offset-negative-20} {!offset-0} {!offset-40} {!offset-0} {!palette-black-transparent-30}, {!offset-negative-60} {!offset-0} {!offset-90} {!offset-0} {!palette-black-transparent-20}" comment: Use for elements that dynamically open from the right side of the screen, appearing above the UI to indicate a greater separation from the underlying surface. + shadow-elevation-top-20: + value: "{!offset-0} {!offset-0} {!offset-0} {!offset-05} {!palette-gray-95}, {!offset-0} {!offset-30} {!offset-40} {!offset-0} {!palette-black-transparent-30}, {!offset-60} {!offset-60} {!offset-90} {!offset-0} {!palette-black-transparent-20}" + comment: Use on elements that sit above the UI to indicate a greater distance distance from the surface behind them. From f29593231932c7c4c1018c58b9b2a0d9301edca7 Mon Sep 17 00:00:00 2001 From: PixeledCode Date: Mon, 10 Feb 2025 11:39:14 +0530 Subject: [PATCH 32/46] feat(elevation): update componets to use new token --- .../minimizable-dialog/src/StyledMinimizableDialog.tsx | 2 +- packages/paste-core/components/modal/src/Modal.tsx | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/paste-core/components/minimizable-dialog/src/StyledMinimizableDialog.tsx b/packages/paste-core/components/minimizable-dialog/src/StyledMinimizableDialog.tsx index 99145ed44b..03077741e2 100644 --- a/packages/paste-core/components/minimizable-dialog/src/StyledMinimizableDialog.tsx +++ b/packages/paste-core/components/minimizable-dialog/src/StyledMinimizableDialog.tsx @@ -14,7 +14,7 @@ export const StyledMinimizableDialog: React.FC {children} diff --git a/packages/paste-core/components/modal/src/Modal.tsx b/packages/paste-core/components/modal/src/Modal.tsx index 6ecf59f23e..2a5fe9174f 100644 --- a/packages/paste-core/components/modal/src/Modal.tsx +++ b/packages/paste-core/components/modal/src/Modal.tsx @@ -55,7 +55,7 @@ export const ModalDialogContent = animated( minHeight: "170px", backgroundColor: "colorBackgroundBody", borderRadius: "borderRadius30", - boxShadow: "shadowElevation20", + boxShadow: "shadowElevationTop20", display: "flex", flexDirection: "column", }), From 02a73096ec46a14f7630e54ce677a8a73768c97e Mon Sep 17 00:00:00 2001 From: PixeledCode Date: Mon, 10 Feb 2025 12:03:41 +0530 Subject: [PATCH 33/46] feat(elevation): add new token color-background-strong-elevation --- .../side-panel/src/SidePanelBody.tsx | 4 ++-- .../__snapshots__/index.test.tsx.snap | 20 ++++++++++++++----- .../tokens/global/background-color.yml | 3 +++ 3 files changed, 20 insertions(+), 7 deletions(-) diff --git a/packages/paste-core/components/side-panel/src/SidePanelBody.tsx b/packages/paste-core/components/side-panel/src/SidePanelBody.tsx index 03b422434c..f0247dfda4 100644 --- a/packages/paste-core/components/side-panel/src/SidePanelBody.tsx +++ b/packages/paste-core/components/side-panel/src/SidePanelBody.tsx @@ -7,7 +7,7 @@ import type { SidePanelBodyProps } from "./types"; // This wrapper applies styles that customize the scrollbar and its track const SidePanelBodyWrapper = styled.div(({ theme }: { theme: ThemeShape }) => { - const { colorBackgroundBody, colorBackgroundElevation, colorBackgroundBodyElevation } = theme.backgroundColors; + const { colorBackgroundBody, colorBackgroundElevation, colorBackgroundStrongElevation } = theme.backgroundColors; return css({ // Scrollbar @@ -28,7 +28,7 @@ const SidePanelBodyWrapper = styled.div(({ theme }: { theme: ThemeShape }) => { }, // Handle on hover "::-webkit-scrollbar-thumb:hover": { - background: colorBackgroundElevation, + background: colorBackgroundStrongElevation, }, }); }); diff --git a/packages/paste-design-tokens/__tests__/__snapshots__/index.test.tsx.snap b/packages/paste-design-tokens/__tests__/__snapshots__/index.test.tsx.snap index ab2623772d..e9fc219bd3 100644 --- a/packages/paste-design-tokens/__tests__/__snapshots__/index.test.tsx.snap +++ b/packages/paste-design-tokens/__tests__/__snapshots__/index.test.tsx.snap @@ -66,6 +66,7 @@ exports[`Design Tokens matches the Dark theme 1`] = ` \\"color-background-inverse\\": \\"rgb(31, 48, 76)\\", \\"color-background-overlay\\": \\"rgba(18, 28, 45, 0.9)\\", \\"color-background-unavailable\\": \\"rgb(214, 31, 31)\\", + \\"color-background-strong-elevation\\": \\"rgb(225, 227, 234)\\", \\"color-background-inverse-strongest\\": \\"rgb(255, 255, 255)\\", \\"color-background-weak-elevation\\": \\"rgb(18, 28, 45)\\", \\"color-background-error-stronger\\": \\"rgb(252, 207, 207)\\", @@ -175,6 +176,7 @@ exports[`Design Tokens matches the Dark theme 1`] = ` \\"shadow-border-bottom-brand-10-strong\\": \\"0 1px 0 #855c15\\", \\"shadow-border-bottom-brand-20-strong\\": \\"0 1px 0 #043cb5\\", \\"shadow-right-inverse\\": \\"-4px 0 8px -4px rgba(0, 0, 0, 0.4)\\", + \\"shadow-elevation-top-20\\": \\"0 0 0 1px #19273E, 0 6px 8px 0 rgba(0, 0, 0, 0.3), 16px 16px 32px 0 rgba(0, 0, 0, 0.2)\\", \\"shadow-border-bottom-brand-30-strong\\": \\"0 1px 0 #0e7c3a\\", \\"shadow-left\\": \\"4px 0 8px -4px rgba(0, 0, 0, 0.4)\\", \\"shadow-border-error\\": \\"0 0 0 1px #d61f1f\\", @@ -210,7 +212,7 @@ exports[`Design Tokens matches the Dark theme 1`] = ` \\"shadow-border-decorative-20-weaker\\": \\"0 0 0 1px #043cb5\\", \\"shadow-border-bottom-subaccount\\": \\"0 1px 0 #c28e00\\", \\"shadow-focus-inset\\": \\"inset 0 0 0 2px #606b85\\", - \\"shadow-elevation-20\\": \\"0 0 0 1px #19273E, 0 6px 8px 0 rgba(0, 0, 0, 0.3), 16px 16px 32px 0 rgba(0, 0, 0, 0.2)\\", + \\"shadow-elevation-20\\": \\"0 6px 8px 0 rgba(0, 0, 0, 0.3), 16px 16px 32px 0 rgba(0, 0, 0, 0.2)\\", \\"shadow-border-inverse\\": \\"0 0 0 1px #8891aa\\", \\"shadow-elevation-10\\": \\"0 -1px 0 0 #1f304c, 0 3px 4px 0 rgba(0, 0, 0, 0.4)\\", \\"shadow-border-decorative-30-weaker\\": \\"0 0 0 1px #0e7c3a\\", @@ -548,6 +550,7 @@ exports[`Design Tokens matches the Global theme 1`] = ` \\"color-background-inverse\\": \\"rgb(31, 48, 76)\\", \\"color-background-overlay\\": \\"rgba(6, 3, 58, 0.4)\\", \\"color-background-unavailable\\": \\"rgb(214, 31, 31)\\", + \\"color-background-strong-elevation\\": \\"rgb(225, 227, 234)\\", \\"color-background-inverse-strongest\\": \\"rgb(255, 255, 255)\\", \\"color-background-weak-elevation\\": \\"rgb(249, 249, 250)\\", \\"color-background-error-stronger\\": \\"rgb(74, 11, 11)\\", @@ -657,6 +660,7 @@ exports[`Design Tokens matches the Global theme 1`] = ` \\"shadow-border-bottom-brand-10-strong\\": \\"0 1px 0 #855c15\\", \\"shadow-border-bottom-brand-20-strong\\": \\"0 1px 0 #043cb5\\", \\"shadow-right-inverse\\": \\"-4px 0 8px -4px rgba(0, 0, 0, 0.4)\\", + \\"shadow-elevation-top-20\\": \\"0 0 0 1px #f9f9fa, 0 6px 8px 0 rgba(15, 22, 33, 0.1), 16px 16px 32px 0 rgba(15, 22, 33, 0.05)\\", \\"shadow-border-bottom-brand-30-strong\\": \\"0 1px 0 #0e7c3a\\", \\"shadow-left\\": \\"4px 0 8px -4px rgba(18, 28, 45, 0.2)\\", \\"shadow-border-error\\": \\"0 0 0 1px #d61f1f\\", @@ -692,7 +696,7 @@ exports[`Design Tokens matches the Global theme 1`] = ` \\"shadow-border-decorative-20-weaker\\": \\"0 0 0 1px #cce4ff\\", \\"shadow-border-bottom-subaccount\\": \\"0 1px 0 #ffdd35\\", \\"shadow-focus-inset\\": \\"inset 0 0 0 2px rgba(2, 99, 224, 0.7)\\", - \\"shadow-elevation-20\\": \\"0 0 0 1px #f9f9fa, 0 6px 8px 0 rgba(15, 22, 33, 0.1), 16px 16px 32px 0 rgba(15, 22, 33, 0.05)\\", + \\"shadow-elevation-20\\": \\"0 6px 8px 0 rgba(15, 22, 33, 0.1), 16px 16px 32px 0 rgba(15, 22, 33, 0.05)\\", \\"shadow-border-inverse\\": \\"0 0 0 1px #8891aa\\", \\"shadow-elevation-10\\": \\"0 -1px 0 0 #f4f4f6, 0 3px 4px 0 rgba(15, 22, 33, 0.1)\\", \\"shadow-border-decorative-30-weaker\\": \\"0 0 0 1px #d1fae0\\", @@ -1030,6 +1034,7 @@ exports[`Design Tokens matches the Sendgrid theme 1`] = ` \\"color-background-inverse\\": \\"rgb(31, 48, 76)\\", \\"color-background-overlay\\": \\"rgba(6, 3, 58, 0.4)\\", \\"color-background-unavailable\\": \\"rgb(214, 31, 31)\\", + \\"color-background-strong-elevation\\": \\"rgb(225, 227, 234)\\", \\"color-background-inverse-strongest\\": \\"rgb(255, 255, 255)\\", \\"color-background-weak-elevation\\": \\"rgb(249, 249, 250)\\", \\"color-background-error-stronger\\": \\"rgb(74, 11, 11)\\", @@ -1139,6 +1144,7 @@ exports[`Design Tokens matches the Sendgrid theme 1`] = ` \\"shadow-border-bottom-brand-10-strong\\": \\"0 1px 0 #855c15\\", \\"shadow-border-bottom-brand-20-strong\\": \\"0 1px 0 #043cb5\\", \\"shadow-right-inverse\\": \\"-4px 0 8px -4px rgba(0, 0, 0, 0.4)\\", + \\"shadow-elevation-top-20\\": \\"0 0 0 1px #f9f9fa, 0 6px 8px 0 rgba(15, 22, 33, 0.1), 16px 16px 32px 0 rgba(15, 22, 33, 0.05)\\", \\"shadow-border-bottom-brand-30-strong\\": \\"0 1px 0 #0e7c3a\\", \\"shadow-left\\": \\"4px 0 8px -4px rgba(18, 28, 45, 0.2)\\", \\"shadow-border-error\\": \\"0 0 0 1px #d61f1f\\", @@ -1174,7 +1180,7 @@ exports[`Design Tokens matches the Sendgrid theme 1`] = ` \\"shadow-border-decorative-20-weaker\\": \\"0 0 0 1px #cce4ff\\", \\"shadow-border-bottom-subaccount\\": \\"0 1px 0 #ffdd35\\", \\"shadow-focus-inset\\": \\"inset 0 0 0 2px rgba(2, 99, 224, 0.7)\\", - \\"shadow-elevation-20\\": \\"0 0 0 1px #f9f9fa, 0 6px 8px 0 rgba(15, 22, 33, 0.1), 16px 16px 32px 0 rgba(15, 22, 33, 0.05)\\", + \\"shadow-elevation-20\\": \\"0 6px 8px 0 rgba(15, 22, 33, 0.1), 16px 16px 32px 0 rgba(15, 22, 33, 0.05)\\", \\"shadow-border-inverse\\": \\"0 0 0 1px #8891aa\\", \\"shadow-elevation-10\\": \\"0 -1px 0 0 #f4f4f6, 0 3px 4px 0 rgba(15, 22, 33, 0.1)\\", \\"shadow-border-decorative-30-weaker\\": \\"0 0 0 1px #d1fae0\\", @@ -1512,6 +1518,7 @@ exports[`Design Tokens matches the Twilio Dark theme 1`] = ` \\"color-background-inverse\\": \\"rgb(18, 28, 45)\\", \\"color-background-overlay\\": \\"rgba(18, 28, 45, 0.9)\\", \\"color-background-unavailable\\": \\"rgb(214, 31, 31)\\", + \\"color-background-strong-elevation\\": \\"rgb(225, 227, 234)\\", \\"color-background-inverse-strongest\\": \\"rgb(255, 255, 255)\\", \\"color-background-weak-elevation\\": \\"rgb(18, 28, 45)\\", \\"color-background-error-stronger\\": \\"rgb(252, 207, 207)\\", @@ -1621,6 +1628,7 @@ exports[`Design Tokens matches the Twilio Dark theme 1`] = ` \\"shadow-border-bottom-brand-10-strong\\": \\"0 1px 0 #855c15\\", \\"shadow-border-bottom-brand-20-strong\\": \\"0 1px 0 #043cb5\\", \\"shadow-right-inverse\\": \\"-4px 0 8px -4px rgba(0, 0, 0, 0.4)\\", + \\"shadow-elevation-top-20\\": \\"0 0 0 1px #19273E, 0 6px 8px 0 rgba(0, 0, 0, 0.3), 16px 16px 32px 0 rgba(0, 0, 0, 0.2)\\", \\"shadow-border-bottom-brand-30-strong\\": \\"0 1px 0 #0e7c3a\\", \\"shadow-left\\": \\"4px 0 8px -4px rgba(0, 0, 0, 0.4)\\", \\"shadow-border-error\\": \\"0 0 0 1px #d61f1f\\", @@ -1656,7 +1664,7 @@ exports[`Design Tokens matches the Twilio Dark theme 1`] = ` \\"shadow-border-decorative-20-weaker\\": \\"0 0 0 1px #043cb5\\", \\"shadow-border-bottom-subaccount\\": \\"0 1px 0 #c28e00\\", \\"shadow-focus-inset\\": \\"inset 0 0 0 1px #ffffff, inset 0 0 0 3px rgba(255, 255, 255, 0.2)\\", - \\"shadow-elevation-20\\": \\"0 0 0 1px #19273E, 0 6px 8px 0 rgba(0, 0, 0, 0.3), 16px 16px 32px 0 rgba(0, 0, 0, 0.2)\\", + \\"shadow-elevation-20\\": \\"0 6px 8px 0 rgba(0, 0, 0, 0.3), 16px 16px 32px 0 rgba(0, 0, 0, 0.2)\\", \\"shadow-border-inverse\\": \\"0 0 0 1px #8891aa\\", \\"shadow-elevation-10\\": \\"0 -1px 0 0 #1f304c, 0 3px 4px 0 rgba(0, 0, 0, 0.4)\\", \\"shadow-border-decorative-30-weaker\\": \\"0 0 0 1px #0e7c3a\\", @@ -1994,6 +2002,7 @@ exports[`Design Tokens matches the Twilio theme 1`] = ` \\"color-background-inverse\\": \\"rgb(18, 28, 45)\\", \\"color-background-overlay\\": \\"rgba(96, 107, 133, 0.5)\\", \\"color-background-unavailable\\": \\"rgb(214, 31, 31)\\", + \\"color-background-strong-elevation\\": \\"rgb(225, 227, 234)\\", \\"color-background-inverse-strongest\\": \\"rgb(255, 255, 255)\\", \\"color-background-weak-elevation\\": \\"rgb(249, 249, 250)\\", \\"color-background-error-stronger\\": \\"rgb(74, 11, 11)\\", @@ -2103,6 +2112,7 @@ exports[`Design Tokens matches the Twilio theme 1`] = ` \\"shadow-border-bottom-brand-10-strong\\": \\"0 1px 0 #855c15\\", \\"shadow-border-bottom-brand-20-strong\\": \\"0 1px 0 #043cb5\\", \\"shadow-right-inverse\\": \\"-4px 0 8px -4px rgba(0, 0, 0, 0.4)\\", + \\"shadow-elevation-top-20\\": \\"0 0 0 1px #f9f9fa, 0 6px 8px 0 rgba(15, 22, 33, 0.1), 16px 16px 32px 0 rgba(15, 22, 33, 0.05)\\", \\"shadow-border-bottom-brand-30-strong\\": \\"0 1px 0 #0e7c3a\\", \\"shadow-left\\": \\"4px 0 8px -4px rgba(18, 28, 45, 0.2)\\", \\"shadow-border-error\\": \\"0 0 0 1px #c72323\\", @@ -2138,7 +2148,7 @@ exports[`Design Tokens matches the Twilio theme 1`] = ` \\"shadow-border-decorative-20-weaker\\": \\"0 0 0 1px #cce4ff\\", \\"shadow-border-bottom-subaccount\\": \\"0 1px 0 #ffdd35\\", \\"shadow-focus-inset\\": \\"inset 0 0 0 1px #006dfa, inset 0 0 0 3px #cce4ff\\", - \\"shadow-elevation-20\\": \\"0 0 0 1px #f9f9fa, 0 6px 8px 0 rgba(15, 22, 33, 0.1), 16px 16px 32px 0 rgba(15, 22, 33, 0.05)\\", + \\"shadow-elevation-20\\": \\"0 6px 8px 0 rgba(15, 22, 33, 0.1), 16px 16px 32px 0 rgba(15, 22, 33, 0.05)\\", \\"shadow-border-inverse\\": \\"0 0 0 1px #8891aa\\", \\"shadow-elevation-10\\": \\"0 -1px 0 0 #f4f4f6, 0 3px 4px 0 rgba(15, 22, 33, 0.1)\\", \\"shadow-border-decorative-30-weaker\\": \\"0 0 0 1px #d1fae0\\", diff --git a/packages/paste-design-tokens/tokens/global/background-color.yml b/packages/paste-design-tokens/tokens/global/background-color.yml index 6dc9a25a20..4b67fb1d7c 100644 --- a/packages/paste-design-tokens/tokens/global/background-color.yml +++ b/packages/paste-design-tokens/tokens/global/background-color.yml @@ -224,6 +224,9 @@ props: color-background-elevation: value: "{!palette-gray-15}" comment: Elevation token for color-background elements. + color-background-strong-elevation: + value: "{!palette-gray-20}" + comment: Elevation token for color-background-strong elements. color-background-inverse-elevation: value: "{!palette-gray-95}" comment: Elevation token for color-background-inverse elements. From 07d5b6dc2872cd099cb8981fe834d7b573c39933 Mon Sep 17 00:00:00 2001 From: PixeledCode Date: Mon, 10 Feb 2025 12:15:18 +0530 Subject: [PATCH 34/46] feat(chat-log): update background color --- .../components/chat-log/src/ComposerAttachmentCard.tsx | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/packages/paste-core/components/chat-log/src/ComposerAttachmentCard.tsx b/packages/paste-core/components/chat-log/src/ComposerAttachmentCard.tsx index 9dee8852b1..1a4e41976f 100644 --- a/packages/paste-core/components/chat-log/src/ComposerAttachmentCard.tsx +++ b/packages/paste-core/components/chat-log/src/ComposerAttachmentCard.tsx @@ -62,11 +62,9 @@ const ComposerAttachmentCard = React.forwardRef Date: Mon, 10 Feb 2025 12:21:45 +0530 Subject: [PATCH 35/46] feat(elevation): add changeset --- .changeset/great-singers-stare.md | 6 ++++++ 1 file changed, 6 insertions(+) create mode 100644 .changeset/great-singers-stare.md diff --git a/.changeset/great-singers-stare.md b/.changeset/great-singers-stare.md new file mode 100644 index 0000000000..ee566b0fe6 --- /dev/null +++ b/.changeset/great-singers-stare.md @@ -0,0 +1,6 @@ +--- +"@twilio-paste/design-tokens": minor +"@twilio-paste/core": minor +--- + +[Design Tokens] Add new box shadow and background color tokens for elevation From cb91e54af56215e1b9ca4f72bebdb58b5c8e09fd Mon Sep 17 00:00:00 2001 From: PixeledCode Date: Mon, 10 Feb 2025 19:43:27 +0530 Subject: [PATCH 36/46] feat(elevation): update typedocs --- packages/paste-core/primitives/box/type-docs.json | 4 ++-- packages/paste-core/primitives/sibling-box/type-docs.json | 4 ++-- packages/paste-core/primitives/text/type-docs.json | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/packages/paste-core/primitives/box/type-docs.json b/packages/paste-core/primitives/box/type-docs.json index c987a126e0..318ce1cd51 100644 --- a/packages/paste-core/primitives/box/type-docs.json +++ b/packages/paste-core/primitives/box/type-docs.json @@ -727,7 +727,7 @@ "description": "Responsive prop for the CSS `background-attachment` property" }, "backgroundColor": { - "type": "\"inherit\" | \"none\" | \"colorBackground\" | \"colorBackgroundAvailable\" | \"colorBackgroundBody\" | \"colorBackgroundBodyElevation\" | \"colorBackgroundBodyInverse\" | \"colorBackgroundBrand\" | ... 64 more ... | { ...; }", + "type": "\"inherit\" | \"none\" | \"colorBackground\" | \"colorBackgroundAvailable\" | \"colorBackgroundBody\" | \"colorBackgroundBodyElevation\" | \"colorBackgroundBodyInverse\" | \"colorBackgroundBrand\" | ... 65 more ... | { ...; }", "defaultValue": null, "required": false, "externalProp": false, @@ -958,7 +958,7 @@ "description": "Responsive prop for the CSS `bottom` property" }, "boxShadow": { - "type": "\"none\" | \"shadow\" | \"shadowBorder\" | \"shadowBorderBottomBrand10Strong\" | \"shadowBorderBottomBrand20Strong\" | \"shadowBorderBottomBrand30Strong\" | \"shadowBorderBottomDecorative10Weaker\" | ... 85 more ... | { ...; }", + "type": "\"none\" | \"shadow\" | \"shadowBorder\" | \"shadowBorderBottomBrand10Strong\" | \"shadowBorderBottomBrand20Strong\" | \"shadowBorderBottomBrand30Strong\" | \"shadowBorderBottomDecorative10Weaker\" | ... 86 more ... | { ...; }", "defaultValue": null, "required": false, "externalProp": false, diff --git a/packages/paste-core/primitives/sibling-box/type-docs.json b/packages/paste-core/primitives/sibling-box/type-docs.json index 24b82c3189..dbd03e55c8 100644 --- a/packages/paste-core/primitives/sibling-box/type-docs.json +++ b/packages/paste-core/primitives/sibling-box/type-docs.json @@ -829,7 +829,7 @@ "description": "Responsive prop for the CSS `background-attachment` property" }, "backgroundColor": { - "type": "\"inherit\" | \"none\" | \"colorBackground\" | \"colorBackgroundAvailable\" | \"colorBackgroundBody\" | \"colorBackgroundBodyElevation\" | \"colorBackgroundBodyInverse\" | \"colorBackgroundBrand\" | ... 64 more ... | { ...; }", + "type": "\"inherit\" | \"none\" | \"colorBackground\" | \"colorBackgroundAvailable\" | \"colorBackgroundBody\" | \"colorBackgroundBodyElevation\" | \"colorBackgroundBodyInverse\" | \"colorBackgroundBrand\" | ... 65 more ... | { ...; }", "defaultValue": null, "required": false, "externalProp": false, @@ -1060,7 +1060,7 @@ "description": "Responsive prop for the CSS `bottom` property" }, "boxShadow": { - "type": "\"none\" | \"shadow\" | \"shadowBorder\" | \"shadowBorderBottomBrand10Strong\" | \"shadowBorderBottomBrand20Strong\" | \"shadowBorderBottomBrand30Strong\" | \"shadowBorderBottomDecorative10Weaker\" | ... 85 more ... | { ...; }", + "type": "\"none\" | \"shadow\" | \"shadowBorder\" | \"shadowBorderBottomBrand10Strong\" | \"shadowBorderBottomBrand20Strong\" | \"shadowBorderBottomBrand30Strong\" | \"shadowBorderBottomDecorative10Weaker\" | ... 86 more ... | { ...; }", "defaultValue": null, "required": false, "externalProp": false, diff --git a/packages/paste-core/primitives/text/type-docs.json b/packages/paste-core/primitives/text/type-docs.json index ec4863fead..571d97d72a 100644 --- a/packages/paste-core/primitives/text/type-docs.json +++ b/packages/paste-core/primitives/text/type-docs.json @@ -531,7 +531,7 @@ "description": "Responsive prop for the CSS `bottom` property" }, "boxShadow": { - "type": "\"none\" | \"shadow\" | \"shadowBorder\" | \"shadowBorderBottomBrand10Strong\" | \"shadowBorderBottomBrand20Strong\" | \"shadowBorderBottomBrand30Strong\" | \"shadowBorderBottomDecorative10Weaker\" | ... 85 more ... | { ...; }", + "type": "\"none\" | \"shadow\" | \"shadowBorder\" | \"shadowBorderBottomBrand10Strong\" | \"shadowBorderBottomBrand20Strong\" | \"shadowBorderBottomBrand30Strong\" | \"shadowBorderBottomDecorative10Weaker\" | ... 86 more ... | { ...; }", "defaultValue": null, "required": false, "externalProp": false, From 94105a0a19b675dc1c47ec97dd4517c381bd5fe2 Mon Sep 17 00:00:00 2001 From: PixeledCode Date: Mon, 10 Feb 2025 22:25:34 +0530 Subject: [PATCH 37/46] feat(tokens): add color-background-strong-elevation for dark theme --- .../__tests__/__snapshots__/index.test.tsx.snap | 4 ++-- .../tokens/themes/dark/global/background-color.yml | 3 +++ .../tokens/themes/twilio-dark/global/background-color.yml | 3 +++ 3 files changed, 8 insertions(+), 2 deletions(-) diff --git a/packages/paste-design-tokens/__tests__/__snapshots__/index.test.tsx.snap b/packages/paste-design-tokens/__tests__/__snapshots__/index.test.tsx.snap index e9fc219bd3..bf3032e84a 100644 --- a/packages/paste-design-tokens/__tests__/__snapshots__/index.test.tsx.snap +++ b/packages/paste-design-tokens/__tests__/__snapshots__/index.test.tsx.snap @@ -66,7 +66,7 @@ exports[`Design Tokens matches the Dark theme 1`] = ` \\"color-background-inverse\\": \\"rgb(31, 48, 76)\\", \\"color-background-overlay\\": \\"rgba(18, 28, 45, 0.9)\\", \\"color-background-unavailable\\": \\"rgb(214, 31, 31)\\", - \\"color-background-strong-elevation\\": \\"rgb(225, 227, 234)\\", + \\"color-background-strong-elevation\\": \\"rgb(31, 48, 76)\\", \\"color-background-inverse-strongest\\": \\"rgb(255, 255, 255)\\", \\"color-background-weak-elevation\\": \\"rgb(18, 28, 45)\\", \\"color-background-error-stronger\\": \\"rgb(252, 207, 207)\\", @@ -1518,7 +1518,7 @@ exports[`Design Tokens matches the Twilio Dark theme 1`] = ` \\"color-background-inverse\\": \\"rgb(18, 28, 45)\\", \\"color-background-overlay\\": \\"rgba(18, 28, 45, 0.9)\\", \\"color-background-unavailable\\": \\"rgb(214, 31, 31)\\", - \\"color-background-strong-elevation\\": \\"rgb(225, 227, 234)\\", + \\"color-background-strong-elevation\\": \\"rgb(31, 48, 76)\\", \\"color-background-inverse-strongest\\": \\"rgb(255, 255, 255)\\", \\"color-background-weak-elevation\\": \\"rgb(18, 28, 45)\\", \\"color-background-error-stronger\\": \\"rgb(252, 207, 207)\\", diff --git a/packages/paste-design-tokens/tokens/themes/dark/global/background-color.yml b/packages/paste-design-tokens/tokens/themes/dark/global/background-color.yml index a08aa9b979..68f7a0beb2 100644 --- a/packages/paste-design-tokens/tokens/themes/dark/global/background-color.yml +++ b/packages/paste-design-tokens/tokens/themes/dark/global/background-color.yml @@ -204,3 +204,6 @@ props: color-background-elevation: value: "{!palette-gray-95}" comment: Elevation token for color-background elements. + color-background-strong-elevation: + value: "{!palette-gray-90}" + comment: Elevation token for color-background-strong elements. diff --git a/packages/paste-design-tokens/tokens/themes/twilio-dark/global/background-color.yml b/packages/paste-design-tokens/tokens/themes/twilio-dark/global/background-color.yml index 7613686f9b..c79514e812 100644 --- a/packages/paste-design-tokens/tokens/themes/twilio-dark/global/background-color.yml +++ b/packages/paste-design-tokens/tokens/themes/twilio-dark/global/background-color.yml @@ -74,6 +74,9 @@ props: color-background-elevation: value: "{!palette-gray-95}" comment: Elevation token for color-background elements. + color-background-strong-elevation: + value: "{!palette-gray-90}" + comment: Elevation token for color-background-strong elements. color-background-inverse-weak-elevation: value: "{!palette-gray-100}" comment: Elevation token for color-background-inverse-weak elements. From 642df3fbcf9b0caa9cdd53684c01c7a54d2ec618 Mon Sep 17 00:00:00 2001 From: PixeledCode Date: Mon, 10 Feb 2025 22:34:19 +0530 Subject: [PATCH 38/46] feat(tokens): update comments --- packages/paste-design-tokens/tokens/global/box-shadow.yml | 2 +- .../tokens/themes/dark/global/box-shadow.yml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/paste-design-tokens/tokens/global/box-shadow.yml b/packages/paste-design-tokens/tokens/global/box-shadow.yml index 89b2b53b37..faada3d738 100644 --- a/packages/paste-design-tokens/tokens/global/box-shadow.yml +++ b/packages/paste-design-tokens/tokens/global/box-shadow.yml @@ -285,7 +285,7 @@ props: comment: Use on inverse elements that overlay other UI components but remain visually connected to the elements behind them. shadow-elevation-20: value: "{!offset-0} {!offset-30} {!offset-40} {!offset-0} {!palette-gray-110-transparent-10}, {!offset-60} {!offset-60} {!offset-90} {!offset-0} {!palette-gray-110-transparent-05}" - comment: Use on elements that sit above the UI to indicate a greater distance distance from the surface behind them. + comment: Use on elements with decorative or semantic use of color that sit above the UI to indicate a greater distance distance from the surface behind them. shadow-elevation-left-20: value: "{!offset-0} {!offset-0} {!offset-0} {!offset-05} {!palette-gray-05}, {!offset-negative-20} {!offset-0} {!offset-40} {!offset-0} {!palette-gray-110-transparent-10}, {!offset-negative-60} {!offset-0} {!offset-90} {!offset-0} {!palette-gray-110-transparent-05}" comment: Use for elements that dynamically open from the right side of the screen, appearing above the UI to indicate a greater separation from the underlying surface. diff --git a/packages/paste-design-tokens/tokens/themes/dark/global/box-shadow.yml b/packages/paste-design-tokens/tokens/themes/dark/global/box-shadow.yml index dd2c64d6c6..a922734f5e 100644 --- a/packages/paste-design-tokens/tokens/themes/dark/global/box-shadow.yml +++ b/packages/paste-design-tokens/tokens/themes/dark/global/box-shadow.yml @@ -200,7 +200,7 @@ props: comment: Use on elements that overlay other UI components but remain visually connected to the elements behind them. shadow-elevation-20: value: "{!offset-0} {!offset-30} {!offset-40} {!offset-0} {!palette-black-transparent-30}, {!offset-60} {!offset-60} {!offset-90} {!offset-0} {!palette-black-transparent-20}" - comment: Use on elements that sit above the UI to indicate a greater distance distance from the surface behind them. + comment: Use on elements with decorative or semantic use of color that sit above the UI to indicate a greater distance distance from the surface behind them. shadow-elevation-left-20: value: "{!offset-0} {!offset-0} {!offset-0} {!offset-05} {!palette-gray-95}, {!offset-negative-20} {!offset-0} {!offset-40} {!offset-0} {!palette-black-transparent-30}, {!offset-negative-60} {!offset-0} {!offset-90} {!offset-0} {!palette-black-transparent-20}" comment: Use for elements that dynamically open from the right side of the screen, appearing above the UI to indicate a greater separation from the underlying surface. From 80eab76cbf594f43e6ada093c797c3a1ccc1cbca Mon Sep 17 00:00:00 2001 From: PixeledCode Date: Thu, 13 Feb 2025 21:55:40 +0530 Subject: [PATCH 39/46] feat(elevation): implement changes from chromatic review --- .../chat-composer/src/ChatComposerAttachmentCard.tsx | 1 - .../components/chat-log/src/ComposerAttachmentCard.tsx | 1 - packages/paste-core/components/menu/src/MenuItem.styles.tsx | 2 +- packages/paste-core/components/side-panel/src/SidePanel.tsx | 1 + packages/paste-core/components/tooltip/src/TooltipArrow.tsx | 3 +-- 5 files changed, 3 insertions(+), 5 deletions(-) diff --git a/packages/paste-core/components/chat-composer/src/ChatComposerAttachmentCard.tsx b/packages/paste-core/components/chat-composer/src/ChatComposerAttachmentCard.tsx index 95737428b9..595cb75d65 100644 --- a/packages/paste-core/components/chat-composer/src/ChatComposerAttachmentCard.tsx +++ b/packages/paste-core/components/chat-composer/src/ChatComposerAttachmentCard.tsx @@ -85,7 +85,6 @@ const ChatComposerAttachmentCard = React.forwardRef((props width={["100%", "size40", "size40"]} height={props.height} boxSizing="content-box" + backgroundColor="colorBackgroundWeaker" /> )); diff --git a/packages/paste-core/components/tooltip/src/TooltipArrow.tsx b/packages/paste-core/components/tooltip/src/TooltipArrow.tsx index 104b8b101d..ff23b04416 100644 --- a/packages/paste-core/components/tooltip/src/TooltipArrow.tsx +++ b/packages/paste-core/components/tooltip/src/TooltipArrow.tsx @@ -12,8 +12,7 @@ const TooltipArrow: React.FC> = (prop ); }; From 983c7f6249ea0f8199e23fd5cad75be1b46589bc Mon Sep 17 00:00:00 2001 From: PixeledCode Date: Thu, 13 Feb 2025 23:04:22 +0530 Subject: [PATCH 40/46] feat(chat-composer): fix disable text color --- .../components/chat-composer/src/ChatComposerContainer.tsx | 1 + .../components/chat-composer/src/PlaceholderWrapper.tsx | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/packages/paste-core/components/chat-composer/src/ChatComposerContainer.tsx b/packages/paste-core/components/chat-composer/src/ChatComposerContainer.tsx index 0e6b1b5da9..2075a8c4e9 100644 --- a/packages/paste-core/components/chat-composer/src/ChatComposerContainer.tsx +++ b/packages/paste-core/components/chat-composer/src/ChatComposerContainer.tsx @@ -55,6 +55,7 @@ export const ChatComposerContainer = React.forwardRef Date: Thu, 20 Feb 2025 18:31:18 +0530 Subject: [PATCH 41/46] feat(elevation): update sidepanel box shadow --- packages/paste-core/components/side-panel/src/SidePanel.tsx | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/packages/paste-core/components/side-panel/src/SidePanel.tsx b/packages/paste-core/components/side-panel/src/SidePanel.tsx index 4b7f1c67b2..86c52725d7 100644 --- a/packages/paste-core/components/side-panel/src/SidePanel.tsx +++ b/packages/paste-core/components/side-panel/src/SidePanel.tsx @@ -111,13 +111,11 @@ const SidePanelContents = React.forwardRef Date: Thu, 20 Feb 2025 19:25:11 +0530 Subject: [PATCH 42/46] feat(elevation): fix chat composer placeholder text color --- .../src/ChatComposerContainer.tsx | 1 - .../chat-composer/src/PlaceholderWrapper.tsx | 39 +++++++++++-------- 2 files changed, 22 insertions(+), 18 deletions(-) diff --git a/packages/paste-core/components/chat-composer/src/ChatComposerContainer.tsx b/packages/paste-core/components/chat-composer/src/ChatComposerContainer.tsx index 2075a8c4e9..0e6b1b5da9 100644 --- a/packages/paste-core/components/chat-composer/src/ChatComposerContainer.tsx +++ b/packages/paste-core/components/chat-composer/src/ChatComposerContainer.tsx @@ -55,7 +55,6 @@ export const ChatComposerContainer = React.forwardRef -> = ({ placeholder, element }) => ( - - {placeholder} - -); +> = ({ placeholder, element }) => { + const { isDisabled } = React.useContext(ChatComposerContext); + + return ( + + {placeholder} + + ); +}; PlaceholderWrapper.displayName = "PlaceholderWrapper"; From 5056cd54dac74a31a5baa0d5067e2bfe8f86ea0e Mon Sep 17 00:00:00 2001 From: PixeledCode Date: Mon, 24 Feb 2025 18:20:51 +0530 Subject: [PATCH 43/46] feat(elevation): update combobox item background and tokens --- .../combobox/src/styles/ComboboxListboxOption.tsx | 2 +- .../__tests__/__snapshots__/index.test.tsx.snap | 10 +++++----- .../tokens/aliases/color-palette.yml | 1 + .../paste-design-tokens/tokens/global/box-shadow.yml | 2 +- 4 files changed, 8 insertions(+), 7 deletions(-) diff --git a/packages/paste-core/components/combobox/src/styles/ComboboxListboxOption.tsx b/packages/paste-core/components/combobox/src/styles/ComboboxListboxOption.tsx index 202bff5d7d..4995a412a7 100644 --- a/packages/paste-core/components/combobox/src/styles/ComboboxListboxOption.tsx +++ b/packages/paste-core/components/combobox/src/styles/ComboboxListboxOption.tsx @@ -99,7 +99,7 @@ const ComboboxListboxOption = React.forwardRef Date: Thu, 27 Feb 2025 13:19:52 +0530 Subject: [PATCH 44/46] feat(elevation): update background tokens --- .../paste-design-tokens/tokens/global/background-color.yml | 2 +- .../tokens/themes/twilio-dark/global/background-color.yml | 6 +++--- .../tokens/themes/twilio/global/background-color.yml | 6 +++--- 3 files changed, 7 insertions(+), 7 deletions(-) diff --git a/packages/paste-design-tokens/tokens/global/background-color.yml b/packages/paste-design-tokens/tokens/global/background-color.yml index 4b67fb1d7c..b857110cba 100644 --- a/packages/paste-design-tokens/tokens/global/background-color.yml +++ b/packages/paste-design-tokens/tokens/global/background-color.yml @@ -234,7 +234,7 @@ props: value: "{!palette-gray-85}" comment: Elevation token for color-background-inverse-weak elements. color-background-inverse-strong-elevation: - value: "{!palette-gray-75}" + value: "{!palette-gray-85}" comment: Elevation token for color-background-inverse-strong elements. color-background-inverse-stronger-elevation: value: "{!palette-gray-75}" diff --git a/packages/paste-design-tokens/tokens/themes/twilio-dark/global/background-color.yml b/packages/paste-design-tokens/tokens/themes/twilio-dark/global/background-color.yml index c79514e812..0cc18d0203 100644 --- a/packages/paste-design-tokens/tokens/themes/twilio-dark/global/background-color.yml +++ b/packages/paste-design-tokens/tokens/themes/twilio-dark/global/background-color.yml @@ -80,6 +80,6 @@ props: color-background-inverse-weak-elevation: value: "{!palette-gray-100}" comment: Elevation token for color-background-inverse-weak elements. - color-background-inverse-strong-elevation: - value: "{!palette-gray-85}" - comment: Elevation token for color-background-inverse-strong elements. + color-background-inverse-elevation: + value: "{!palette-gray-95}" + comment: Elevation token for color-background-inverse elements. diff --git a/packages/paste-design-tokens/tokens/themes/twilio/global/background-color.yml b/packages/paste-design-tokens/tokens/themes/twilio/global/background-color.yml index 8ad8c41a85..c75cacea4f 100644 --- a/packages/paste-design-tokens/tokens/themes/twilio/global/background-color.yml +++ b/packages/paste-design-tokens/tokens/themes/twilio/global/background-color.yml @@ -91,6 +91,6 @@ props: color-background-inverse-weak-elevation: value: "{!palette-gray-100}" comment: Elevation token for color-background-inverse-weak elements. - color-background-inverse-strong-elevation: - value: "{!palette-gray-85}" - comment: Elevation token for color-background-inverse-strong elements. + color-background-inverse-elevation: + value: "{!palette-gray-95}" + comment: Elevation token for color-background-inverse elements. From 96f5903bcc6988d2af44566574d09f622dbb91de Mon Sep 17 00:00:00 2001 From: PixeledCode Date: Thu, 27 Feb 2025 13:20:40 +0530 Subject: [PATCH 45/46] feat(elevation): update test --- .../__tests__/__snapshots__/index.test.tsx.snap | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/packages/paste-design-tokens/__tests__/__snapshots__/index.test.tsx.snap b/packages/paste-design-tokens/__tests__/__snapshots__/index.test.tsx.snap index 2a638decbc..90d2ee013e 100644 --- a/packages/paste-design-tokens/__tests__/__snapshots__/index.test.tsx.snap +++ b/packages/paste-design-tokens/__tests__/__snapshots__/index.test.tsx.snap @@ -54,7 +54,7 @@ exports[`Design Tokens matches the Dark theme 1`] = ` \\"color-background-primary-weak\\": \\"rgb(57, 71, 98)\\", \\"color-background-brand-30\\": \\"rgb(106, 221, 178)\\", \\"color-background-stronger\\": \\"rgb(96, 107, 133)\\", - \\"color-background-inverse-strong-elevation\\": \\"rgb(64, 79, 110)\\", + \\"color-background-inverse-strong-elevation\\": \\"rgb(37, 57, 91)\\", \\"color-background-brand-20\\": \\"rgb(81, 169, 227)\\", \\"color-background-brand-highlight\\": \\"rgb(242, 47, 70)\\", \\"color-background-brand-highlight-weakest\\": \\"rgba(242, 47, 70, 0.1)\\", @@ -538,7 +538,7 @@ exports[`Design Tokens matches the Global theme 1`] = ` \\"color-background-primary-weak\\": \\"rgb(153, 205, 255)\\", \\"color-background-brand-30\\": \\"rgb(106, 221, 178)\\", \\"color-background-stronger\\": \\"rgb(136, 145, 170)\\", - \\"color-background-inverse-strong-elevation\\": \\"rgb(64, 79, 110)\\", + \\"color-background-inverse-strong-elevation\\": \\"rgb(37, 57, 91)\\", \\"color-background-brand-20\\": \\"rgb(81, 169, 227)\\", \\"color-background-brand-highlight\\": \\"rgb(242, 47, 70)\\", \\"color-background-brand-highlight-weakest\\": \\"rgba(242, 47, 70, 0.1)\\", @@ -1022,7 +1022,7 @@ exports[`Design Tokens matches the Sendgrid theme 1`] = ` \\"color-background-primary-weak\\": \\"rgb(153, 205, 255)\\", \\"color-background-brand-30\\": \\"rgb(106, 221, 178)\\", \\"color-background-stronger\\": \\"rgb(136, 145, 170)\\", - \\"color-background-inverse-strong-elevation\\": \\"rgb(64, 79, 110)\\", + \\"color-background-inverse-strong-elevation\\": \\"rgb(37, 57, 91)\\", \\"color-background-brand-20\\": \\"rgb(81, 169, 227)\\", \\"color-background-brand-highlight\\": \\"rgb(242, 47, 70)\\", \\"color-background-brand-highlight-weakest\\": \\"rgba(242, 47, 70, 0.1)\\", From 16b3794ea6b18b5d75d5d3608dd71ff3171ade45 Mon Sep 17 00:00:00 2001 From: PixeledCode Date: Mon, 3 Mar 2025 19:41:18 +0530 Subject: [PATCH 46/46] feat(elevation): update tokens --- .../__tests__/__snapshots__/index.test.tsx.snap | 6 +++--- .../paste-design-tokens/tokens/global/background-color.yml | 2 +- .../tokens/themes/evergreen/global/background-color.yml | 3 +++ 3 files changed, 7 insertions(+), 4 deletions(-) diff --git a/packages/paste-design-tokens/__tests__/__snapshots__/index.test.tsx.snap b/packages/paste-design-tokens/__tests__/__snapshots__/index.test.tsx.snap index 90d2ee013e..6b217a690f 100644 --- a/packages/paste-design-tokens/__tests__/__snapshots__/index.test.tsx.snap +++ b/packages/paste-design-tokens/__tests__/__snapshots__/index.test.tsx.snap @@ -17,7 +17,7 @@ exports[`Design Tokens matches the Dark theme 1`] = ` \\"color-background-warning-weakest\\": \\"rgb(64, 19, 15)\\", \\"color-background-inverse-strong\\": \\"rgb(57, 71, 98)\\", \\"color-background-new\\": \\"rgb(56, 14, 120)\\", - \\"color-background-inverse-elevation\\": \\"rgb(25, 39, 62)\\", + \\"color-background-inverse-elevation\\": \\"rgb(37, 57, 91)\\", \\"color-background-strong\\": \\"rgb(31, 48, 76)\\", \\"color-background-new-weakest\\": \\"rgb(18, 28, 45)\\", \\"color-background-destructive\\": \\"rgb(214, 31, 31)\\", @@ -501,7 +501,7 @@ exports[`Design Tokens matches the Global theme 1`] = ` \\"color-background-warning-weakest\\": \\"rgb(254, 245, 238)\\", \\"color-background-inverse-strong\\": \\"rgb(57, 71, 98)\\", \\"color-background-new\\": \\"rgb(245, 240, 252)\\", - \\"color-background-inverse-elevation\\": \\"rgb(25, 39, 62)\\", + \\"color-background-inverse-elevation\\": \\"rgb(37, 57, 91)\\", \\"color-background-strong\\": \\"rgb(225, 227, 234)\\", \\"color-background-new-weakest\\": \\"rgb(250, 247, 253)\\", \\"color-background-destructive\\": \\"rgb(214, 31, 31)\\", @@ -985,7 +985,7 @@ exports[`Design Tokens matches the Sendgrid theme 1`] = ` \\"color-background-warning-weakest\\": \\"rgb(254, 245, 238)\\", \\"color-background-inverse-strong\\": \\"rgb(57, 71, 98)\\", \\"color-background-new\\": \\"rgb(245, 240, 252)\\", - \\"color-background-inverse-elevation\\": \\"rgb(25, 39, 62)\\", + \\"color-background-inverse-elevation\\": \\"rgb(37, 57, 91)\\", \\"color-background-strong\\": \\"rgb(225, 227, 234)\\", \\"color-background-new-weakest\\": \\"rgb(250, 247, 253)\\", \\"color-background-destructive\\": \\"rgb(214, 31, 31)\\", diff --git a/packages/paste-design-tokens/tokens/global/background-color.yml b/packages/paste-design-tokens/tokens/global/background-color.yml index b857110cba..58fd8c8776 100644 --- a/packages/paste-design-tokens/tokens/global/background-color.yml +++ b/packages/paste-design-tokens/tokens/global/background-color.yml @@ -228,7 +228,7 @@ props: value: "{!palette-gray-20}" comment: Elevation token for color-background-strong elements. color-background-inverse-elevation: - value: "{!palette-gray-95}" + value: "{!palette-gray-85}" comment: Elevation token for color-background-inverse elements. color-background-inverse-weak-elevation: value: "{!palette-gray-85}" diff --git a/packages/paste-design-tokens/tokens/themes/evergreen/global/background-color.yml b/packages/paste-design-tokens/tokens/themes/evergreen/global/background-color.yml index 593e6c60ed..04bc60a26f 100644 --- a/packages/paste-design-tokens/tokens/themes/evergreen/global/background-color.yml +++ b/packages/paste-design-tokens/tokens/themes/evergreen/global/background-color.yml @@ -189,3 +189,6 @@ props: color-background-inverse-stronger-elevation: value: "{!palette-gray-55}" comment: Elevation token for color-background-inverse-stronger elements. + color-background-inverse-elevation: + value: "{!palette-gray-95}" + comment: Elevation token for color-background-inverse elements.