# RJ Signal UI - Foundations and platform choices Version 1.0.0 | Reviewed 11 November 2026 | Canonical: https://rajajeevan.com/brand/#ui-kit ## Contents - [What this kit is](#what-this-kit-is) - [Best-of synthesis](#best-of-synthesis) - [Runtime decision matrix](#runtime-decision-matrix) - [Minimum project brief](#minimum-project-brief) - [Token architecture](#token-architecture) - [Semantic colour pairs](#semantic-colour-pairs) - [Shared state model](#shared-state-model) ## What this kit is An opinionated synthesis for Raja's product interfaces, not an official Google, Apple, Microsoft or W3C kit. Reuse one visual language and one behavioural contract, with platform-specific controls. A web button, a SwiftUI Button and a WinUI Button can share intent without sharing implementation. This kit adds application rules to the brand guide; it does not redesign existing documents or the public website. For apps, native conventions and user accessibility settings take priority over branded geometry, font, colour and motion. Keep the logo and brand intact in suitable surfaces; do not repaint system permission sheets, OS chrome or file pickers. Existing product requirements and a verified installed SDK constrain implementation. Never treat style guidance as permission to access data, send, spend or act. ## Best-of synthesis | Source family | Adopt | Do not import blindly | | --- | --- | --- | | Material 3 | Semantic colour roles, explicit interaction states, adaptive navigation and Android touch behaviour | Android ripples, FABs and bottom bars on every desktop or Apple screen | | Apple HIG | Native navigation, system typography, safe areas, Dynamic Type, standard menus and window behaviour | Apple-only artwork, SF Symbols or fonts into a cross-platform asset bundle | | Fluent 2 / WinUI | Desktop command density, list/detail, keyboard access, Windows control semantics | Windows window chrome on macOS or a React package in a native XAML tree | | React Aria / Radix | Web focus, accessible naming, keyboard patterns and headless component composition | Two owners for the same focus trap or menu; ARIA as a substitute for HTML | | W3C WCAG / APG | Contrast checks, focus visibility, keyboard alternatives, semantic web patterns | A claim that a library or this kit makes the whole app conformant | | RJ Signal | Brand palette, concise copy, restrained shape, spacing and readable data | Fixed brand colours when system high contrast requires an override | This is the selection, not a claim that one source is universally best. Each row solves a different class of problem. Do not assemble five component libraries in one app. Pick one primary component system per rendered surface and adapt its tokens. ## Runtime decision matrix | Product target | Default route | What renders | Fit and boundary | | --- | --- | --- | --- | | Browser / PWA ('web native') | Semantic HTML + CSS; React optional | Browser DOM | Best when URL navigation, web distribution and web accessibility matter. Web native here means browser-first, not native OS widgets. | | Hybrid mobile | Existing web UI + Capacitor | Web content in native host, native plugins at boundaries | Reuse a web product; adapt back, safe areas, keyboard and permissions. A wrapper does not make web controls native. | | iOS native | SwiftUI, UIKit when needed | Apple framework views | Preserve iOS navigation, Dynamic Type, VoiceOver and system sheets. | | Android native | Kotlin + Jetpack Compose Material 3 | Android UI stack | Preserve predictive/system back and platform input semantics. | | Windows native | WinUI 3 + Windows App SDK | XAML/native Windows UI | Use Windows navigation, menus, accelerators and window controls. | | macOS native | SwiftUI + AppKit where needed | Apple desktop UI | Menus, toolbars, multiple windows, file/document integration. iOS styling alone is insufficient. | | Shared mobile code | React Native or Flutter, chosen per team | RN host components; Flutter's own renderer | Share state and intent. Test each OS; neither is a promise of identical native controls everywhere. | | Web-based desktop | Tauri or Electron | System WebView (Tauri) or Chromium-based renderer (Electron) | Desktop integration without rewriting all web UI. Neither equals WinUI/AppKit-native rendering. | Do not choose a runtime only from a screenshot. Consider offline work, background tasks, accessibility, required native APIs, deployment, team languages, target hardware and existing code. Do not migrate a working stack merely to use this kit. ## Minimum project brief Record platform(s), runtime and installed version, minimum OS/browser, main task, primary input, data sensitivity, offline rules, localisation, screen-reader target, distribution and ownership. If missing, use browser-first for a prototype only and label it as a prototype. Do not infer store publication, payment or tracking permissions. Before using an optional package, inspect its current version, peer dependencies, maintenance, platform coverage, license and lockfile. This release does not pin or install any third-party package. Native examples are integration sketches, not compiled applications. ## Token architecture Three layers: primitive colour/spacing values, semantic roles (surface, text, action, error), then component aliases (button background, field border). Components consume roles, not arbitrary hex literals. Keep spacing tokens separate from font, border, icon and target-size tokens. - Shared layout scale in CSS logical px: 4, 8, 12, 16, 24, 32, 48, 64, 96. Map intentionally to Android dp and Apple pt; do not call them physical pixels or assume identical text metrics. - Web button radius 8; card radius 12; button padding 16 block / 24 inline. Compact desktop variants may use 8 / 16 with a suitable native hit region. Border 1 and focus outline 2 with offset 2 are explicit non-spacing exceptions. - Layout: content-driven widths, no device sniffing. House breakpoints: compact under 640 CSS px, medium 640-1023, wide 1024+. They are design defaults, not official platform breakpoints. At text zoom or split view, use the space actually available. - Touch: house target 48 CSS px; Android at least 48 dp. iOS/iPadOS house target 44 pt, following Apple's default recommendation rather than treating it as a universal hard minimum. Desktop uses native control sizes plus touch-friendly mode when needed. Never shrink a target just to preserve a row count. - Web body 16-18 px / 1.5-1.6. Native body uses scalable system text styles (iOS body, macOS body, Android sp), not a fixed Inter override. Brand headings can use Inter only if scaling and legibility survive. Native typography is an explicit app-specific exception to the general brand type rule. - Motion: house durations 120 ms feedback / 200 ms transition, ease-out; honour reduced motion and remove nonessential spatial movement. Native transitions follow the OS. Never delay a task so an animation can finish. ## Semantic colour pairs Use the supplied tokens.json and tokens.css. Light: canvas Cloud, surface White, main text Night Ink, secondary Slate, action Signal Blue/White, danger #C62828/White. Dark: canvas Night Ink, surface #172A44, main White, secondary Mist, action Sky/Night Ink, danger text #FFB4AB and success text #A7E8B4 on dark surfaces. These are deliberate functional dark-state variants, not new decorative brand colours. Error colours are functional only. Selected state adds a label, check or shape; never colour alone. Signal Blue with White clears 4.5:1; Bright Blue on White does not for normal text. Stone is not body text. Stone/White technically clears 3:1 by a tiny margin but is excluded as sole meaningful encoding; Sky fails 3:1 on White. Mist borders are decorative only: input boundaries use Slate on light and Stone on dark, not Mist on White. The contrast report in the package computes exact ratios, displays three decimals and applies thresholds before rounding. Disabled controls have a label and remain understandable; low contrast is not an invitation to hide required instructions. Dark mode is a semantic remap, not inverted pixels. High-contrast/forced-colour and user overrides can replace brand colours. Focus must remain visible on adjacent surfaces, not be covered by sticky chrome. Prefer native focus drawing; web uses a 2 px Signal Blue ring on light and Sky on dark. Test actual pixels including hover, pressed, selection and overlay backgrounds. ## Shared state model Every async task models idle -> pending -> success or error; cancellation and stale results are explicit. Keep network data state separate from selection, focus, validation and permission. Disable duplicate commits while pending, preserve the label ('Saving...'), and announce completion once. A timeout is unknown, not proof of failure: reconcile the server result before offering a repeat transaction. Persist domain data in the product's authorised storage, not automatically in localStorage. The included demo stores nothing. Never log secrets or full personal records. UI defaults are not data-retention, consent or security policies.