Repository navigation
Description
Goal
Switch the app to the approved "Angular" design language at the token and primitive level: new graphite/cyan palette for the dark and the light theme, radius 0 everywhere, flat depth (1 px rules instead of shadows), a 2 px focus ring without offset, uppercase Barlow Condensed labels, square status markers, and dialogs with corner ticks. After this issue every screen already shows the new colours and square corners; the per-view issues of the redesign only adjust layout and details.
Context
- Design reference:
docs/design/angular/README.md,docs/design/angular/tokens.md(token values for both themes with contrast),docs/design/angular/screens/Tokens.png(type scale, button/badge/input/tab specimens, "Rules of the system"),docs/design/angular/screens/Main.pnganddocs/design/angular/screens/MainLight.png(whole window in both themes). - Colours live only in
apps/smart-ssh-community/frontend/src/theme/dark.css(palette primitives:8-65, semantic tokens:68-136, terminal:144-165) andsrc/theme/light.css(overrides underhtml[data-theme="light"]). The design keeps every semantic token name (--surface*,--fg*,--accent*,--danger*,--warning*,--success*,--info*,--local*,--term-*); only values change: indigo becomes signal cyan, slate becomes neutral graphite (THEMING.md). - Radius:
src/index.css:199-203sets--radius-sm…xlto 1-3 px;rounded-fullis kept on purpose (:195-198) and used for status dots and pulses in 12 places (SessionTabParts.tsx:32,66,ui/Tabs.tsx:82,chat/ActionCard.tsx:278,chat/RiskBadges.tsx:87,ChatPanel.tsx:268,281,292,319,fileBrowser/TransferList.tsx:93,InjectionCheckStatus.tsx:18,ui/Spinner.tsx:6). - Shadows:
shadow-lg/xl/md/smin 22 places (menusui/Menu.tsx:129, tooltipui/Tooltip.tsx:55, dialogsui/DialogFrame.tsx:102, toasts, drag ghostTreeDragGhost.tsx:24…). - Focus utilities
focus-ring,focus-ring-flush,focus-ring-insetinsrc/index.css:317-331(2 px ring with 1 px offset); fields usefocus:outline-2 focus:outline-focusinFIELD_CONTROL_CLASS(ui/Field.tsx:59-62). - Fonts are already bundled (
src/index.css:42-104,--font-sans/heading/mono:120-122). Labels today are sentence casetext-sm font-medium(ui/Field.tsx:36); dialog titlesfont-heading text-lg(ui/DialogFrame.tsx:139-142). - Primitives:
ui/Button.tsx(variants:19-28, sizes:30-33),ui/Field.tsx,ui/Tabs.tsx(underline tabs,rounded-t:71),ui/DialogFrame.tsx(panel:102),ui/Menu.tsx,ui/Tooltip.tsx,ui/TagInput.tsx,ui/Spinner.tsx,ModalBackdrop.tsx. Barrelui/index.ts. - Guards that must stay green:
src/theme/colourGuard.test.ts(no hard-coded colours, no literal focus ring chain),src/themeContrast.test.ts(AA contrast for both themes),src/lib/theme.test.ts(light overrides every literal variable of dark),src/uiKitGuards.test.ts. - Native background colours copy
--surface-sunken:apps/smart-ssh-community/gen/android/app/src/main/java/com/smartssh/desktop/MainActivity.kt:79-81(0xFF090C14/0xFFF4F6FA),gen/android/app/src/main/res/values/colors.xmlandvalues-night/colors.xml(app_background), described indocs/android-build.md(Launcher/Insets section, says "the app design is always dark" and#090C14). docs/ui-guidelines.md:9-12still says "indigo accent, nearly square radii … The app has a dark theme only",:18"Indigo fill",:79"2 px indigo ring".
Requirements
Palette and themes
dark.cssandlight.css: set the values fromdocs/design/angular/tokens.md. Tokens the design does not list (for example-fg-soft,-fg-subtle,-subtle-hover,-strong,-fg-softer,-fg-faint(est),info,local,local-border,web-*,mcp-*,selection,on-accent,on-solid, window-control colours, all--term-ansi-*) are derived on the same ramp so that every contrast check ofthemeContrast.test.tsstill passes. Terminal ANSI colours follow the new accent (cyan instead of indigo for blue/cyan/cursor) in both themes.- Keep the token names and the two-layer structure; rename the palette primitives only if it keeps
THEMING.mdcorrect (update its mapping table accordingly). - Add a token
--grid-line(both themes) for the 1 px grid background of the start screens (docs/design/angular/screens/DeskUnlock.png), mapped inindex.css. - Android: update the background constants in
MainActivity.ktandapp_backgroundin bothcolors.xmlto the new--surface-sunkenvalues; updatedocs/android-build.md.
Shape, depth, focus
- Radius 0 everywhere: all
--radius-*theme values become0,rounded-fullis no longer used for status markers (seeStatusSquarebelow). The spinner and the three-dot "typing" pings keep their animation; see Open questions for their shape. - No blurred shadows: the shadow theme values become
none. Floating layers get a hard offset shadow without blur, colour from a new token--shadow-offset(defined in both themes): utilitiesshadow-offset-sm(4 px: menus, tooltip, drag ghost),shadow-offset(6 px: popovers such as the activity panel) andshadow-offset-lg(8 px: dialogs), as indocs/design/angular/screens/DeskDialogs.pngandDeskActivity.png. Inline content (cards, toasts in the flow, panels) has no shadow; depth comes from 1 pxborder/border-strongrules and the surface steps. - Focus:
focus-ringand its variants draw a 2 pxfocusring without offset (visually the design's "1 px accent border + 1 px accent ring");FIELD_CONTROL_CLASSuses the same look. Contrast of the ring stays at least 3:1 on every surface in both themes.
Typography
- Add utilities in
src/index.cssfor the design's type scale (docs/design/angular/screens/Tokens.png):text-display(Barlow Condensed 32/700, +0.06em, uppercase),text-title(20/600, +0.05em, uppercase),text-label(11.5/600, +0.14em, uppercase,fg-faint). Body stays Barlow 14/400; host names, paths, commands, counts and key values use JetBrains Mono (font-mono). - For
:lang(ja),:lang(zh),:lang(ko)and Devanagari scripts the letter spacing of these utilities isnormal(uppercase has no effect there).
Primitives (in src/components/ui/, exported from ui/index.ts)
Button: variants as in the specimen:primary(accent fill,on-accenttext),secondary(transparent,border-strongoutline,fg-softtext),danger(transparent,danger-borderoutline,danger-fgtext),ghost(no border,fg-muted),bareunchanged. Labels in Barlow Condensed 600, uppercase, +0.08em. Height 32 px formd, 26-28 px forsm, at least 44 px in the narrow layout (narrow:variant). NewiconOnlyboolean gives a square button (requiresaria-label).Field: label withtext-label; help and error text unchanged in function.Tabs: active tab with a 2 px accent top rule andsurface-raisedfill, inactive tabsfg-subtle, uppercase condensed labels, a 1 px bottom rule under the strip; the invalid marker becomes aStatusSquare.DialogFrame(layout ofdocs/design/angular/screens/DeskDialogs.png): squaresurface-raisedpanel with a 1 pxborder-strongrule andshadow-offset-lg; a header row (optional leadingiconprop, title intext-title, 1 px bottom rule), a padded body, and the action row as a footer with a 1 px top rule onsurface. New optionalticksprop ("accent" | "danger") draws decorative corner ticks on the two top corners viaCornerTicks; the host-key dialog usesdanger, all other dialogs none. A new optionaltone="danger"colours the panel rule withdanger-border. The narrow layout stays full-window, without ticks and shadow.- New
CornerTicks: decorative 12-14 px L-marks (2 px) just outside the corners of its positioned parent,aria-hidden, propstone(accent | danger) andcorners(top | all); used byDialogFrameand by the unlock card (all four corners,docs/design/angular/screens/DeskUnlock.png). - New
Badge: outline badge (20 px high, condensed 11 px uppercase), tonesneutral | accent | success | warning | danger | local, optional leadingStatusSquare. - New
StatusSquare: 8 px solid square (aria-hidden), tonessuccess | warning | danger | local | neutral | accent, optionalpulse. Replaces the round status dots inSessionTabParts.tsx:32,66,ui/Tabs.tsx:82,chat/ActionCard.tsx:278,chat/RiskBadges.tsx:87,fileBrowser/TransferList.tsx:93in this issue (one-line swaps, so the old dots disappear everywhere at once). Menu,Tooltip,TagInputchips: square, 1 px rules,shadow-offset-smfor menu and tooltip.
Docs
THEMING.md(palette table, radius/shadow/focus rules, new utilities and primitives) anddocs/ui-guidelines.md(accent colour, button looks, focus ring, both themes, type scale, status squares, corner ticks) describe the new system.
Acceptance Criteria
- With the dark theme,
--surface,--accent,--fg,--borderresolve to the values ofdocs/design/angular/tokens.md(#0e1116,#2cc6e8,#e3e7ed,#242b35); with the light theme to#ffffff,#0a7fa0,#12161c,#d5dae1. -
themeContrast.test.tspasses unchanged in its thresholds for both themes;theme.test.tspasses. - No element in the running app has a non-zero
border-radiusexcept the spinner and the typing pings (if kept round per the open question), checked by a unit or e2e check over the main screen, settings and a dialog. - Menus and tooltip use
shadow-offset-sm, dialogsshadow-offset-lg; no element has a blurred box shadow (shadow-sm/md/lg/xlresolve tonone). - Keyboard focus on a button, an input, a tab and a menu item shows a 2 px ring without offset with at least 3:1 contrast in both themes.
-
Button,Field,Tabs,DialogFrame,Badge,StatusSquare,CornerTicksmatch the specimens indocs/design/angular/screens/Tokens.png; aDialogFramewithticks="danger"shows the two corner ticks on wide windows and none in the narrow layout; withoutticksnone are drawn. - The listed round status dots are
StatusSquares; the pulsing "waiting for confirmation" marker on a tab still pulses. - Field labels and dialog titles are uppercase Barlow Condensed in Latin languages; in Japanese the label has no extra letter spacing.
- Android window background matches
--surface-sunkenof both themes (constants andcolors.xml), anddocs/android-build.mdsays so. -
THEMING.mdanddocs/ui-guidelines.mddescribe the new palette, radius, shadow, focus and type rules and the new primitives. -
colourGuard.test.tsanduiKitGuards.test.tspass; unit tests of the primitives (ui/ui.test.tsx,ui/Menu.test.tsx,ui/TagInput.test.tsx) cover the new variants,BadgeandStatusSquare. - Relevant automated tests pass
Technical Notes
- Tailwind v4: radius and shadow values are
@themevariables insrc/index.css; setting them there changes everyrounded*/shadow-*class without touching components. Only the listed status dots need a component change in this issue; everything else is left to the per-view issues. - Do not hard-code colours in TS/TSX (colour guard); the corner ticks are CSS borders or an inline SVG with
currentColor/token classes. - Capture before/after images with the e2e screenshot helper (
SCREENSHOT_LABEL=before|after,e2e/support/screenshots.ts) for the main screen, settings and one dialog, both themes, and attach them to the PR. - Existing e2e that assert colours or classes:
e2e/tests/appearance.spec.ts,e2e/tests/accessibility.spec.ts(axe contrast),e2e/tests/app-shell-review.spec.ts; update only where they check old values.
Files: apps/smart-ssh-community/frontend/src/theme/dark.css, apps/smart-ssh-community/frontend/src/theme/light.css, apps/smart-ssh-community/frontend/src/index.css, apps/smart-ssh-community/frontend/src/components/ui/ (Button, Field, Tabs, DialogFrame, Menu, Tooltip, TagInput, Spinner, new Badge, new StatusSquare, new CornerTicks, index.ts, tests), apps/smart-ssh-community/frontend/src/components/ModalBackdrop.tsx, apps/smart-ssh-community/frontend/src/components/SessionTabParts.tsx (status dots only), apps/smart-ssh-community/frontend/src/components/chat/ActionCard.tsx (line 278 only), apps/smart-ssh-community/frontend/src/components/chat/RiskBadges.tsx (line 87 only), apps/smart-ssh-community/frontend/src/components/fileBrowser/TransferList.tsx (line 93 only), apps/smart-ssh-community/frontend/src/themeContrast.test.ts, apps/smart-ssh-community/frontend/src/lib/themeTokens.ts (if token names change), apps/smart-ssh-community/frontend/THEMING.md, docs/ui-guidelines.md, apps/smart-ssh-community/gen/android/app/src/main/java/com/smartssh/desktop/MainActivity.kt, apps/smart-ssh-community/gen/android/app/src/main/res/values/colors.xml, apps/smart-ssh-community/gen/android/app/src/main/res/values-night/colors.xml, docs/android-build.md, apps/smart-ssh-community/frontend/e2e/tests/appearance.spec.ts
Spec impact: update 0055 (section "Farbgebung als austauschbares Theme": the dark appearance changes on purpose; state that both appearances follow docs/design/angular/tokens.md), update 0017 §3 and §5 (status "Punkt" becomes a square marker, colours unchanged in meaning)
Open questions
- Spinner and typing indicator: radius 0 would turn the spinner into a rotating square outline and the pings into squares. Recommendation: make both square (consistent with "radius 0 on every element"); the animation stays.
- Primitive token names (
--palette-slate-*,--palette-indigo-*) no longer describe the colours. Recommendation: rename to--palette-graphite-*/--palette-cyan-*in this issue, since nothing outside the two theme files andTHEMING.mdrefers to them.
Related Work
- Part of the Angular redesign (docs/design/angular/). Blocks: every other redesign issue (02-25).
- Theming introduced in Theming: semantic colour tokens in one theme file, guard against hard-coded colours #805 and Appearance setting: light mode alongside dark, or follow the system #804 (light theme), focus utilities in UI: focus-ring utility class instead of 50 copies of the focus-visible ring chain #917.
Metadata
Metadata
Assignees
Labels
Type
Fields
Priority
Activity
smart-ssh-maintainer commentedon Nov 19, 2026
The design reference
docs/design/angular/is now ondevelop(#1359). Mergedevelopinto this issue's branch before continuing, and take the palette, typography and component rules fromdocs/design/angular/tokens.mdand the screens there.feat(frontend): Angular design foundation – palette, square shapes, o…
smart-ssh-coder commentedon Nov 20, 2026
Implementation ready for review. PR #1391. Angular palette (dark+light), radius 0, offset shadows, 2px focus ring, type utilities, new Badge/StatusSquare/CornerTicks and reworked Button/Field/Tabs/DialogFrame, status dots swapped, Android colours and docs/specs updated. vitest, lint, full Playwright suite and CI green. Before/after screenshots and HostKeyDialog ticks wiring left as follow-ups.
smart-ssh-reviewer commentedon Nov 20, 2026
Review: 1. HostKeyDialog (DialogFrame in bare mode, own panel) has no danger corner ticks, although the issue requires them and docs/ui-guidelines.md says it has them. Its shadow-xl now resolves to none, so it has no shadow-offset-lg either. Add CornerTicks (danger, top, hidden in the narrow layout), switch to shadow-offset-lg with narrow:shadow-none, and add a test. 2. The before/after screenshots asked for in Technical Notes are missing: main screen, settings and one dialog, both themes. 3. The selected settings category (SettingsScreen.tsx:192-194, bg-accent with focus-ring-inset) has an invisible focus ring, because --focus now equals --accent (1:1 contrast). Use a ring colour with at least 3:1 against the accent fill. 4. Three specs still describe status dots: 0027:48 ('pulsierender Punkt'), 0104:76 ('statt nur des Punkts') and 0005:323 ('Statuspunkt'). Update them to the square marker.
fix(frontend): host-key dialog ticks and offset shadow, visible focus…
ci: re-run browser tests (previous run hit the job timeout during dep…
smart-ssh-coder commentedon Nov 20, 2026
Implementation ready for review. PR #1391. Review fixes done: host-key dialog danger ticks + offset shadow (with test), visible focus on selected settings category, spec wording, before/after screenshots in the PR, develop merged. vitest, lint and CI green on 1e9a517.
smart-ssh-reviewer commentedon Nov 20, 2026
Review passed – moving on to merge. Follow-up round: all four findings from the first review are fixed. 1. Host-key dialog: danger corner ticks and shadow-offset-lg, both hidden in the narrow layout; the new test fails without the fix. 2. Before/after screenshots are attached. 3. The selected settings category now shows a visible focus ring. 4. Specs 0027, 0104 and 0005 now describe square markers. Targeted vitest runs (212 tests) and Playwright runs (host-key, appearance, narrow settings, accessibility: 110 tests) pass locally, and CI is green. Follow-ups: e2e checks for the light-theme focus ring and the lang=ja letter spacing, and the 'always dark' sentence in docs/android-build.md. The settings dialog shadow and title are left to #1376.
Manual testing after the merge:
feat(frontend): Angular redesign foundation – palette, square shapes,…
smart-ssh-coordinator commentedon Nov 20, 2026
Merged and branch deleted: PR #1391 (squash) in develop
smart-ssh-planner commentedon Nov 20, 2026
Follow-ups filed: #1397 Add e2e checks for the light-theme focus ring and ja letter spacing. Not filed: the 'always dark' sentence in docs/android-build.md (already fixed on develop); the spec 0005 gender wording (wording only); CornerTicks on the unlock card and the settings dialog shadow/title (belong to other redesign issues, e.g. #1376).