From 928e905235384e00b5224e709c23e771d5e61489 Mon Sep 17 00:00:00 2001 From: "pouriade.com" Date: Tue, 27 Oct 2026 21:12:13 -0700 Subject: [PATCH] Share typography as Text and Title Page titles copied six classes three times, and hints and notes wrote their size, color, and weight by hand. Text sizes them on one xs to 3xl ladder over the type scale, and Title separates a heading's level from its size, as Mantine's do. --- CHANGELOG.md | 4 ++ .../admin/components/SuspendControl.tsx | 5 +- .../features/auth/components/AccountCard.tsx | 5 +- .../web/src/features/auth/pages/LoginPage.tsx | 5 +- .../chat-list/components/SearchResults.tsx | 9 +-- .../chat-list/components/SyncStatus.tsx | 5 +- .../chat-list/components/TagFilter.tsx | 5 +- .../conversation/components/DeletePanel.tsx | 5 +- .../components/EmptyConversation.tsx | 10 ++- .../components/InstructionsPanel.tsx | 5 +- .../conversation/components/PendingReply.tsx | 5 +- .../conversation/components/PromptStack.tsx | 5 +- .../components/StoreUnavailable.tsx | 9 +-- .../conversation/components/TagsPanel.tsx | 5 +- .../features/models/components/ModelTable.tsx | 5 +- .../settings/pages/ApiKeySettings.tsx | 9 +-- .../settings/pages/SettingsLayout.tsx | 5 +- .../src/features/sharing/pages/SharedPage.tsx | 10 +-- apps/web/src/parts/tools/ui.tsx | 5 +- apps/web/src/parts/tools/web-fetch/index.tsx | 5 +- apps/web/src/shared/ErrorPage.tsx | 10 +-- apps/web/src/shared/SectionNav.tsx | 11 +++- .../src/shared/schema-fields/SchemaFields.tsx | 5 +- apps/web/src/shared/ui/ItemList.tsx | 11 +++- apps/web/src/shared/ui/SettingsPage.tsx | 20 +++--- apps/web/src/shared/ui/Text.tsx | 61 +++++++++++++++++++ apps/web/src/shared/ui/Title.tsx | 39 ++++++++++++ specs/styling.md | 2 + 28 files changed, 222 insertions(+), 58 deletions(-) create mode 100644 apps/web/src/shared/ui/Text.tsx create mode 100644 apps/web/src/shared/ui/Title.tsx diff --git a/CHANGELOG.md b/CHANGELOG.md index 6e56aef..ae5be05 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,6 +4,10 @@ What changed in each release of SCN Chat, for the people who use it, run it, or ## [Unreleased] +### Changed + +- The new chat's "What can I help with?" draws in a touch, as other titles do. For forks: `shared/ui/Text.tsx` has a new `Text`, sized on one `xs` to `3xl` ladder over the type scale, with a `color` and `weight`, and `shared/ui/Title.tsx` a new `Title`, whose `order` is its heading level and `size` its look. Page titles, hints, and other plain text now use them. + ## [0.7.2] - 2026-10-27 ### Changed diff --git a/apps/web/src/features/admin/components/SuspendControl.tsx b/apps/web/src/features/admin/components/SuspendControl.tsx index 6199f11..46d30ed 100644 --- a/apps/web/src/features/admin/components/SuspendControl.tsx +++ b/apps/web/src/features/admin/components/SuspendControl.tsx @@ -2,6 +2,7 @@ import { useState } from 'react' import { useAppForm } from '../../../shared/form.tsx' import { Badge } from '../../../shared/ui/Badge.tsx' import { Button } from '../../../shared/ui/Button.tsx' +import { Text } from '../../../shared/ui/Text.tsx' import type { AdminUser } from '../queries.ts' interface Props { @@ -34,9 +35,9 @@ export function SuspendControl(props: Props) { Suspended - + {note} - + -

+ ) : (