From 368bcf4dffc6286d00292028946d5ffbe93898b4 Mon Sep 17 00:00:00 2001 From: giancarlo Date: Fri, 5 Apr 2024 12:13:58 +0800 Subject: [PATCH] Implement text color changes across components The commit involves modifications in various components to change 'text-gray-500' to 'text-muted-foreground'. The purpose of this change is to create uniformity in text colors across the application, enhancing the user interface's overall look and making color scheme tweaks easier in the future. --- .../home/[account]/_components/account-layout-sidebar.tsx | 3 +-- .../app/(marketing)/docs/_components/docs-page-link.tsx | 5 +---- .../gateway/src/components/billing-session-status.tsx | 4 +--- packages/billing/gateway/src/components/pricing-table.tsx | 1 - .../accounts/src/components/personal-account-dropdown.tsx | 2 +- .../src/components/settings/team-account-danger-zone.tsx | 2 +- packages/ui/src/makerkit/image-upload-input.tsx | 2 +- packages/ui/src/makerkit/stepper.tsx | 8 ++++---- 8 files changed, 10 insertions(+), 17 deletions(-) diff --git a/apps/web/app/(dashboard)/home/[account]/_components/account-layout-sidebar.tsx b/apps/web/app/(dashboard)/home/[account]/_components/account-layout-sidebar.tsx index b516ed054..6bd0272dc 100644 --- a/apps/web/app/(dashboard)/home/[account]/_components/account-layout-sidebar.tsx +++ b/apps/web/app/(dashboard)/home/[account]/_components/account-layout-sidebar.tsx @@ -123,8 +123,7 @@ function CollapsibleButton({ `bg-background absolute -right-[10.5px] bottom-4 cursor-pointer block`, ); - const iconClassName = - 'bg-background text-gray-300 dark:text-gray-600 h-5 w-5'; + const iconClassName = 'bg-background text-muted-foreground h-5 w-5'; return ( diff --git a/apps/web/app/(marketing)/docs/_components/docs-page-link.tsx b/apps/web/app/(marketing)/docs/_components/docs-page-link.tsx index ac06ed56d..8fb42fd57 100644 --- a/apps/web/app/(marketing)/docs/_components/docs-page-link.tsx +++ b/apps/web/app/(marketing)/docs/_components/docs-page-link.tsx @@ -30,10 +30,7 @@ export function DocsPageLink({ {before ? `Previous` : ``} {after ? `Next` : ``} diff --git a/packages/billing/gateway/src/components/billing-session-status.tsx b/packages/billing/gateway/src/components/billing-session-status.tsx index 060b74722..102e04192 100644 --- a/packages/billing/gateway/src/components/billing-session-status.tsx +++ b/packages/billing/gateway/src/components/billing-session-status.tsx @@ -69,9 +69,7 @@ function SuccessSessionStatus({ 🎉 -
+

-

+
diff --git a/packages/features/team-accounts/src/components/settings/team-account-danger-zone.tsx b/packages/features/team-accounts/src/components/settings/team-account-danger-zone.tsx index 7b3265566..860bc13b7 100644 --- a/packages/features/team-accounts/src/components/settings/team-account-danger-zone.tsx +++ b/packages/features/team-accounts/src/components/settings/team-account-danger-zone.tsx @@ -78,7 +78,7 @@ function DeleteTeamContainer(props: { -

+

, Props>(

- + diff --git a/packages/ui/src/makerkit/stepper.tsx b/packages/ui/src/makerkit/stepper.tsx index b5dbaf093..278e8101f 100644 --- a/packages/ui/src/makerkit/stepper.tsx +++ b/packages/ui/src/makerkit/stepper.tsx @@ -98,7 +98,7 @@ function getClassNameBuilder() { { variant: 'default', selected: false, - className: 'text-gray-400 dark:text-gray-500', + className: 'text-muted-foreground', }, { variant: 'default', @@ -108,7 +108,7 @@ function getClassNameBuilder() { { variant: 'default', selected: false, - className: 'bg-gray-300 dark:bg-gray-800', + className: 'bg-muted', }, { variant: 'numbers', @@ -118,7 +118,7 @@ function getClassNameBuilder() { { variant: 'numbers', selected: false, - className: 'text-gray-400 dark:text-gray-500', + className: 'text-muted-foreground', }, ], defaultVariants: { @@ -135,7 +135,7 @@ function StepDivider({ selected: boolean; }>) { const spanClassName = cn('font-medium text-sm', { - ['text-gray-400 dark:text-gray-500']: !selected, + ['text-muted-foreground']: !selected, ['text-primary']: selected, });