From cd9ea58650e4b48765e6551875f2ac64dca89981 Mon Sep 17 00:00:00 2001 From: Corban Riley Date: Thu, 30 Jan 2025 00:12:36 -0500 Subject: [PATCH] Updating text color values to match new names --- .storybook/preview.tsx | 6 ++--- src/components/Breadcrumbs/Breadcrumbs.tsx | 6 ++--- src/components/Card/Card.stories.tsx | 16 ++++++------- .../Collapsible/Collapsible.stories.tsx | 4 ++-- src/components/Collapsible/Collapsible.tsx | 2 +- src/components/Field/Field.tsx | 4 ++-- src/components/FileInput/FileInput.tsx | 2 +- .../GradientAvatar/GradientAvatar.stories.tsx | 2 +- src/components/Modal/Modal.stories.tsx | 8 +++---- src/components/Scroll/Scroll.stories.tsx | 4 ++-- .../StopClickPropagation.stories.tsx | 2 +- .../TabbedNav/TabbedNav.stories.tsx | 2 +- src/components/Tabs/Tabs.stories.tsx | 2 +- src/components/Text/Text.stories.tsx | 16 ++++++------- .../ThemeProvider/ThemeProvider.stories.tsx | 16 ++++++------- src/components/Toast/Toast.tsx | 4 ++-- src/components/TokenImage/TokenImage.tsx | 2 +- src/components/Tooltip/Tooltip.tsx | 2 +- src/tokens/color.ts | 24 +++++++++---------- 19 files changed, 62 insertions(+), 62 deletions(-) diff --git a/.storybook/preview.tsx b/.storybook/preview.tsx index 1892022c..af1e80b3 100644 --- a/.storybook/preview.tsx +++ b/.storybook/preview.tsx @@ -8,9 +8,9 @@ import docsTheme from './theme' import './tailwind.css' const CUSTOM_THEME = { - text100: 'rgba(255, 255, 255, 1)', - text80: 'rgba(200, 200, 255, 1)', - text50: 'rgba(150, 150, 200, 1)', + textPrimary: 'rgba(255, 255, 255, 1)', + textSecondary: 'rgba(200, 200, 255, 1)', + textMuted: 'rgba(150, 150, 200, 1)', backgroundPrimary: 'pink', backgroundSecondary: 'navy', } diff --git a/src/components/Breadcrumbs/Breadcrumbs.tsx b/src/components/Breadcrumbs/Breadcrumbs.tsx index 352e47e0..c31efc2b 100644 --- a/src/components/Breadcrumbs/Breadcrumbs.tsx +++ b/src/components/Breadcrumbs/Breadcrumbs.tsx @@ -58,7 +58,7 @@ const BreadcrumbSegment = (props: BreadcrumbSegmentProps) => { const { path, active, renderLink = defaultRenderLink } = props return active ? ( - + {path.label} ) : ( @@ -68,7 +68,7 @@ const BreadcrumbSegment = (props: BreadcrumbSegmentProps) => { { {path.label} )} - + {' / '} diff --git a/src/components/Card/Card.stories.tsx b/src/components/Card/Card.stories.tsx index befdd6cb..c7d340de 100644 --- a/src/components/Card/Card.stories.tsx +++ b/src/components/Card/Card.stories.tsx @@ -16,10 +16,10 @@ export const Default: Story = { children: ( <>
- + Card - + Description
@@ -34,10 +34,10 @@ export const Clickable: Story = { children: ( <>
- + Card - + Description
@@ -52,10 +52,10 @@ export const Disabled: Story = { children: ( <>
- + Card - + Description
@@ -69,10 +69,10 @@ export const Outlined: Story = { children: ( <>
- + Card - + Description
diff --git a/src/components/Collapsible/Collapsible.stories.tsx b/src/components/Collapsible/Collapsible.stories.tsx index 4c023d63..68c85517 100644 --- a/src/components/Collapsible/Collapsible.stories.tsx +++ b/src/components/Collapsible/Collapsible.stories.tsx @@ -26,7 +26,7 @@ const CollapsibleStory = () => { onOpenChange={open => setIsOpen(open)} > {[1, 2, 3, 4, 5].map(x => ( - +

Item {x}

))} @@ -38,7 +38,7 @@ export const Default: Story = { args: { label: 'My Heading', children: [1, 2, 3, 4, 5].map(x => ( - +

Item {x}

)), diff --git a/src/components/Collapsible/Collapsible.tsx b/src/components/Collapsible/Collapsible.tsx index e70ee481..c1e55703 100644 --- a/src/components/Collapsible/Collapsible.tsx +++ b/src/components/Collapsible/Collapsible.tsx @@ -57,7 +57,7 @@ export const Collapsible = (props: CollapsibleProps) => { transition={{ ease: 'easeOut', duration: 0.3 }} > - +
{label}
{ {label && (