Files
client/DESIGN.md
T
2026-10-24 03:47:19 +03:00

2.9 KiB
Raw Blame History

Design

Documented from the shipped interface (app/renderer/styles/app.css, index.html) — this records what is built, it is not an aspiration. Mode: Operate. Direction: the category standard of voice-chat clients, chosen by the owner ("straightforward operative familiar chat UI"), executed with a restrained peach accent.

Layout

  • Two columns: sidebar clamp(280px, 27vw, 390px) (server header, host banner, channel tree, own-status footer) and a workspace (connect form, or channel header + optional stream viewer + chat, or settings).
  • Tree rows: channels with #/lock glyph, server channel icon at the right, server banner as a row background fading from the sidebar colour; members indented under channels with avatar/status dot, nickname (never truncated before group labels), server-configured group labels, mute/away/recording flags, group icons and country code, and a pill "Смотреть" button for streamers.
  • Settings is a full workspace view with sections Профиль, Звук, Видео трансляций, О программе.
  • Stream viewer: black stage with the video contained, dark control bar (title, codec · resolution · fps, mute, volume 0–100 %, fullscreen, stop). Overlay text explains every non-live state.

Colour

Restrained strategy: warm neutrals plus one accent; state colours only where they mean something.

Token Light Dark Use
--bg #f6f3f0 #1a1817 window ground
--surface #fffdfb #211e1c workspace, inputs
--sidebar #eee9e4 #1e1b1a sidebar
--sunken #e6e0da #151312 footer, UID, group labels
--text / --text-2 / --text-3 #221c18 / #5e544d / #776c64 #ede6e0 / #b2a79f / #978c84 text hierarchy
--accent #b24f26 #f09a6c primary buttons, selected tab, own name, focus
--accent-soft #fbe2d4 #3b2920 current channel, selection
--peach #f3a37c #f3a37c brand mark
--talk #1f8a5a #4fcf8e talking indicator, PTT held
--danger #b3261e #f08b82 mute/deafen active, errors

Theme follows prefers-color-scheme; selection, caret, scrollbars and focus rings use the palette.

Type

System UI stack (system-ui, -apple-system, "Segoe UI", "Noto Sans", Ubuntu, Cantarell, …), 14 px base, line-height 1.45; headings 600–650 weight at 17–24 px; monospace only for the UID and codec lists (data). Tabular numerals for counts, times and statistics.

Components

Buttons (primary, default, ghost), 34 px icon buttons with aria-pressed states, fields with labels above, radio/checkbox choices with accent colour, range sliders, chat tabs with unread counters, toasts in a polite live region (errors 10 s, others 5 s). Icons are an inline SVG sprite drawn in one 1.8 stroke style.

Motion

Only colour transitions (120 ms) and the toast entrance (180 ms, exponential ease-out); everything is disabled under prefers-reduced-motion.