Layout and measurements

Shared sizes, spacing, shapes and type. Every measurement lives in InkLayout (ui/EInkTheme.kt); screens never hard-code them. The shared components are implemented in ui/EInkTheme.kt, InkControls.kt, InkPopover.kt, CanvasDialogs.kt and InkScroll.kt.

Touch targets

Spacing

Token Value Use
gap 8 dp Between related controls
section 16 dp Between sections
inset 24 dp Modal padding

Dialog sizes

Class Size Use
dialogNarrow 400 dp Pickers, confirmations
phoneDialog 343 dp Phone confirmations
dialogWidth 560 dp Default dialogs
editorWidth 720 dp Editors
List 560 × 800 dp (listHeight) Lists

InkLayout also holds the app bars, sidebar, scrollbar lane and selected box.

Shapes

Editor fields

Typography

Role Size Use
headlineSmall 28 sp Medium ToDo text in details
titleMedium 24 sp Medium Dialog titles
titleLarge 22 sp Medium App bar date
titleSmall 20 sp Medium Sections
body 18 sp Body text
labelMedium 16 sp Medium Times and metadata, tabular figures