From 0a9912234b416f75346f954bc5f6f043243ee0ef Mon Sep 17 00:00:00 2001 From: Kris McGinnes Date: Thu, 16 Jul 2026 15:26:41 -0500 Subject: [PATCH] Migrate to Tailwind default font weight classes MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Replace custom fontWeight overrides with Tailwind's standard scale: - font-base (400) → font-normal - font-bold (600) → font-semibold - font-extraBold (700) → font-bold Delete the fontWeight block from tailwind.config.ts, restoring the full default weight scale. Zero visual change — the rendered CSS weight values are identical. --- docs/agents/design.md | 2 +- packages/graph-explorer/src/components/Button/Button.tsx | 4 ++-- packages/graph-explorer/src/components/CheckboxList.tsx | 2 +- packages/graph-explorer/src/components/Dialog.tsx | 2 +- packages/graph-explorer/src/components/EmptyState.tsx | 4 ++-- packages/graph-explorer/src/components/LabelledSetting.tsx | 2 +- packages/graph-explorer/src/components/ListRow.tsx | 2 +- packages/graph-explorer/src/components/NavBar.tsx | 4 +++- packages/graph-explorer/src/components/Panel.tsx | 2 +- packages/graph-explorer/src/components/RouteButton.tsx | 4 ++-- packages/graph-explorer/src/components/SearchResult.tsx | 2 +- packages/graph-explorer/src/components/Select.tsx | 2 +- packages/graph-explorer/src/components/SettingsPage.tsx | 4 ++-- packages/graph-explorer/src/components/Typography.tsx | 2 +- packages/graph-explorer/src/index.css | 2 +- .../modules/ConnectionDetail/ConnectionDeleteButton.tsx | 4 ++-- .../src/modules/EntityDetails/EdgeDetail.tsx | 2 +- .../src/modules/EntityDetails/NodeDetail.tsx | 2 +- .../modules/GraphViewer/internalComponents/ContextMenu.tsx | 2 +- .../src/modules/NodeExpand/NodeExpandFilters.tsx | 2 +- .../src/modules/SchemaGraph/Sidebar/Details.tsx | 6 +++--- .../src/modules/SearchSidebar/SearchResultsList.tsx | 2 +- .../src/modules/common/NeighborsList/NeighborsList.tsx | 2 +- .../graph-explorer/src/routes/Settings/SettingsAbout.tsx | 4 ++-- packages/graph-explorer/tailwind.config.ts | 7 ------- 25 files changed, 34 insertions(+), 39 deletions(-) diff --git a/docs/agents/design.md b/docs/agents/design.md index d2bcff8b2..e35bfa285 100644 --- a/docs/agents/design.md +++ b/docs/agents/design.md @@ -3,7 +3,7 @@ The visual design system for Graph Explorer. Read this before modifying UI styling, adding color tokens, or writing Tailwind classes in components. > [!NOTE] -> **Migration in progress.** This document describes the _target_ state; the cleanup is tracked in [#1952](https://github.com/aws/graph-explorer/issues/1952). Until it completes, the codebase deviates in known ways: `tailwind.config.ts` still exists and owns fonts, weights, z-index, keyframes, and some utilities; legacy color aliases (`text-text-primary`, `bg-background-default`, `primary-main`, etc.) are still in use pending migration to the canonical tokens below; a few `dark:` classes and shadcn compat tokens (`destructive`, `popover`) remain pending removal; and the custom font weight classes (`font-base`, `font-extraBold`) are still active — `font-semibold` does not exist until the weight migration lands. When touching styled code during the transition, migrate toward this document, not away from it. +> **Migration in progress.** This document describes the _target_ state; the cleanup is tracked in [#1952](https://github.com/aws/graph-explorer/issues/1952). Until it completes, the codebase deviates in known ways: `tailwind.config.ts` still exists and owns fonts, z-index, keyframes, and some utilities; legacy color aliases (`text-text-primary`, `bg-background-default`, `primary-main`, etc.) are still in use pending migration to the canonical tokens below; and a few `dark:` classes and shadcn compat tokens (`destructive`, `popover`) remain pending removal. When touching styled code during the transition, migrate toward this document, not away from it. ## Color Architecture diff --git a/packages/graph-explorer/src/components/Button/Button.tsx b/packages/graph-explorer/src/components/Button/Button.tsx index 49201b00c..6c15ec0b2 100644 --- a/packages/graph-explorer/src/components/Button/Button.tsx +++ b/packages/graph-explorer/src/components/Button/Button.tsx @@ -16,9 +16,9 @@ const buttonStyles = cva({ ghost: "text-primary-foreground hover:bg-primary-subtle data-open:bg-primary-subtle", outline: - "text-text-primary border-input hover:bg-muted data-open:border-primary-main font-base border bg-transparent shadow-xs", + "text-text-primary border-input hover:bg-muted data-open:border-primary-main border bg-transparent font-normal shadow-xs", "outline-danger": - "text-danger border-input font-base hover:bg-danger-subtle data-open:bg-danger-subtle border bg-transparent shadow-xs", + "text-danger border-input hover:bg-danger-subtle data-open:bg-danger-subtle border bg-transparent font-normal shadow-xs", "primary-danger": "bg-danger hover:bg-danger-hover data-open:bg-danger-hover text-white", danger: diff --git a/packages/graph-explorer/src/components/CheckboxList.tsx b/packages/graph-explorer/src/components/CheckboxList.tsx index b0991db54..98de92947 100644 --- a/packages/graph-explorer/src/components/CheckboxList.tsx +++ b/packages/graph-explorer/src/components/CheckboxList.tsx @@ -63,7 +63,7 @@ export default function CheckboxList({ isBottom={false} aria-label="checkbox for all" > -