Mercurial
view design_system/SIZING.md @ 279:b3b547563ec7
Add Google connector service and agent wiki
Implement the C/Seobeo Google Drive and Gmail connector with encrypted OAuth storage, Zenbu authentication, browser testing, AI tool discovery, chunked HTTP decoding, and Bazel coverage. Consolidate repository guidance into progressive wiki documentation and enforce arena-first allocation for new first-party C code.
Co-authored-by: Copilot <[email protected]>
Copilot-Session: 84c338fd-0939-4bb3-b7f3-1062eb213e5d
| author | MrJuneJune <me@mrjunejune.com> |
|---|---|
| date | Mon, 17 Aug 2026 22:22:36 -0700 |
| parents | 60a876c4587a |
| children |
line wrap: on
line source
# Zenbu UI sizing Zenbu UI uses one five-step scale everywhere: | Size | Intended use | | --- | --- | | `xs` | dense metadata and compact actions | | `sm` | secondary controls and toolbars | | `md` | default body text and controls | | `lg` | prominent actions and lead text | | `xl` | touch-forward actions and display text | ## Tokens Each step defines: - `--zenbu-sys-font-size-*` and `--zenbu-sys-line-height-*`; - `--zenbu-sys-control-height-*`; - `--zenbu-sys-control-padding-block-*` and `--zenbu-sys-control-padding-inline-*`; - `--zenbu-sys-control-gap-*`; - `--zenbu-sys-icon-size-*`; - `--zenbu-sys-padding-*` for containers. Component hosts expose the selected values through inherited variables: ```css --zenbu-control-height --zenbu-control-padding-block --zenbu-control-padding-inline --zenbu-control-gap --zenbu-control-font-size --zenbu-control-line-height --zenbu-control-icon-size ``` Styled components consume these automatically: ```html <zen-button size="lg"><button type="button">Publish</button></zen-button> <zen-input size="sm"><input aria-label="Filter" /></zen-input> ``` Plain components expose the same variables without styling the native control. Applications can preserve their visual identity while sharing the scale: ```css zen-button[appearance="plain"] > button { min-height: var(--zenbu-control-height); padding: var(--zenbu-control-padding-block) var(--zenbu-control-padding-inline); font-size: var(--zenbu-control-font-size); } ``` ## Typography and containers Use native semantics inside the primitives: ```html <zen-heading size="xl"><h2>Repository activity</h2></zen-heading> <zen-text size="sm"><p>Updated two minutes ago.</p></zen-text> <zen-box padding="lg">...</zen-box> ```