-
Notifications
You must be signed in to change notification settings - Fork 0
25 Design System Tokens and Responsive Layouts
Irshad Ali edited this page Sep 3, 2026
·
1 revision
Corresponding Specifications:
sys-arch/ui-ux-22-design-system-tokens-typography-icons-motion-architecture.md,sys-arch/ui-ux-23-responsive-adaptive-desktop-tablet-foldable-phone-layout-architecture.md
Key Modules:crates/siar-ui-state,apps/desktop,apps/android
SIAR enforces a strict design token hierarchy across both the Dioxus Rust desktop GUI and Jetpack Compose Android frontends:
[Design Tokens JSON / Rust Constants]
|
+--------+--------+
| |
v v
[Desktop Dioxus CSS] [Android Material 3 Tokens]
(Variables / Classes) (ColorScheme / Typography)
| Token Category | Token Name | Hex Value / Spec | Usage |
|---|---|---|---|
| Brand Primary | color-primary-500 |
#3B82F6 (Electric Blue) |
Action buttons, active badges, sender bubbles |
| Emergency SOS | color-emergency-600 |
#DC2626 (Vivid Crimson) |
Priority 0 alerts, SOS beaconing triggers |
| Mesh Active | color-mesh-green |
#10B981 (Emerald Green) |
Direct radio link indicators (BLE, Wi-Fi Direct) |
| Surface Dark | color-surface-900 |
#0F172A (Slate Navy) |
App shell background in dark mode |
| Typography Body | font-family-body |
Inter, Roboto, system-ui |
Primary chat bubbles and timeline text |
| Typography Mono | font-family-mono |
JetBrains Mono, monospace |
SAS security numbers, node IDs, hex hashes |
SIAR dynamically reflows its user interface across five distinct device form factors:
+-------------------------------------------------------------------------------+
| Device Form Factor | Width Range | Layout Strategy |
+-------------------------+----------------+------------------------------------+
| Compact Phone | < 600 dp | Single-Pane Stack Navigation |
| Foldable Unfolded | 600–840 dp | Two-Pane Split (Inbox + Chat) |
| Tablet Landscape | 840–1200 dp | Two-Pane + Collapsible Details |
| Desktop Windowed | 1200–1600 dp | Three-Pane (Nav + List + Timeline) |
| Ultra-Wide Multi-Monitor| > 1600 dp | Multi-Inspector Workstation Layout |
+-------------------------------------------------------------------------------+
graph TD
ScreenResize[Window Resize / Orientation Change] --> BreakpointCheck{Window Width}
BreakpointCheck -->|< 600 dp| Phone[Single Stack: Slide Transitions]
BreakpointCheck -->|600-1200 dp| Tablet[Two-Pane Master-Detail Master List + Active Chat]
BreakpointCheck -->|> 1200 dp| Desktop[Three-Pane: Icon Sidebar + Inbox + Timeline + Info Pane]
-
Touch Targets: Minimum
$48 \times 48\text{ dp}$ on mobile and touch devices; compact$32\text{ dp}$ with hover states on desktop. - Keyboard Shortcuts: Complete desktop navigation via keyboard (Ctrl+K search, Ctrl+1..9 chat switching, Esc dismiss).
- Haptic Feedback: Contextual haptics on Android for emergency triggers, SAS key verification matches, and outgoing delivery confirmations.
SIAR — Survivable Identity & Autonomous Routing
Open Source Mesh & DTN Communications Platform | Dual Licensed under MIT / Apache-2.0 / Commercial
Documentation Index • GitHub Repository • System Specifications
- 04-Autonomous-Routing-and-Policy-Engine
- 05-Proximity-and-Hardware-Transports
- 06-Delay-Tolerant-Networking-and-Bundle-Forwarding
- 07-Battery-Aware-Scheduling-and-Emergency-Mesh
- 08-Offline-Event-Log-and-Outbox-Engine
- 09-Robust-Blob-Storage-and-Chunk-Transfers
- 10-Crash-Recovery-and-Data-Portability
- 11-Realtime-Audio-Video-Calling-Architecture
- 12-Cross-Platform-Client-Architecture
- 13-Messaging-Timeline-Composer-and-Inbox
- 14-Contacts-Groups-and-Security-Center
- 15-Nearby-Discovery-and-Out-of-Band-Pairing
- 16-Notifications-Presence-and-Background-Lifecycle
- 17-Local-Knowledge-Retrieval-and-Search
- 25-Design-System-Tokens-and-Responsive-Layouts
- 26-UI-UX-Performance-Testing-and-Quality-Gates
- 18-Protocol-Extensions-and-WASM-Plugins
- 19-Headless-Daemons-and-Embedded-Nodes
- 20-C-ABI-FFI-and-Native-Language-Bindings
- 21-Testing-Fuzzing-and-Network-Diagnostics
- 22-Getting-Started-and-Developer-Guide
- 23-Off-Grid-Survival-and-Field-Operations-Guide
- 24-System-Comparison-and-Benchmarking