Status: Accepted
Date: 2026-02-23
Authors: OSHUN Studio Design Systems, OSHUN Web Engineering
Reviewers: Domain Leads (Yemaya, Isis, Hathor, Aja, Bellona), Project
Obsidian Program Design
Context and Problem Statement#
Studio workflows operate with high information density and multi-panel layouts. Without an explicit spacing and layout-grid decision, domains may diverge in rhythm, scannability, and interaction ergonomics.
Lack of governed spacing/grid rules causes:
- inconsistent panel density and hierarchy spacing
- unpredictable alignment across cross-domain surfaces
- degraded mobile/desktop responsiveness
- token drift via ad hoc layout constants
Decision Drivers#
- Ergonomics consistency: predictable spacing rhythm for rapid scanning.
- Cross-domain alignment: one layout grammar across domain modules.
- Responsive reliability: deterministic behavior from narrow to wide viewports.
- Token parity: spacing and radii usage must be tokenized and auditable.
- Operational clarity: dense data layouts must preserve clarity and action reachability.
Considered Options#
Option 1: Domain-Specific Layout Grids#
Each domain defines independent spacing and grid rules.
Pros:
- Local flexibility.
Cons:
- High visual and cognitive drift.
- Difficult cross-domain consistency.
Option 2: Shared Token Scale, Ungoverned Layout Usage#
Use shared spacing tokens but allow ungoverned composition.
Pros:
- Faster initial implementation.
Cons:
- Weak guarantees for layout consistency and ergonomics.
Option 3: Unified Studio Spacing and Grid Governance (Chosen)#
Adopt a shared spacing scale + governed layout-grid conventions with release checks and auditability.
Pros:
- Consistent layout rhythm and panel ergonomics.
- Better responsiveness and readability in dense surfaces.
- Enforceable token usage and predictable release governance.
Cons:
- Requires stronger governance discipline for layout changes.
Decision Outcome#
Chosen option: Option 3.
Studio spacing/layout requirements:
- Tokenized spacing scale for all spacing/padding/gap usage.
- Layout grid conventions for panel columns, gutters, and breakpoints.
- Density profiles for operational, review, and executive surfaces.
- Validation gates for spacing-token parity and responsive integrity.
- Release governance with approvals, telemetry/audit, and rollback.
Normative Rules#
Spacing Contract#
- Layout gaps, paddings, and margins must use approved spacing tokens.
- Ad hoc numeric spacing values in governed Studio surfaces are prohibited.
Grid Contract#
- Studio surfaces must align to shared responsive breakpoints and grid columns.
- Gutter and container spacing rules must remain deterministic per breakpoint.
Density Contract#
- Dense operational surfaces must preserve minimum interaction spacing.
- Review and narrative surfaces may use expanded spacing presets.
Release Validity Contract#
A spacing/layout release is valid only when all are true:
- token usage parity checks pass
- responsive grid checks pass
- role-authorized approval exists
- telemetry/audit records are complete
- rollback reference is defined
Architecture Implications#
libs/oshun/design-tokensremains authoritative for spacing primitives.apps/oshun/web/src/design-system/tokens.tsand global system CSS remain web implementation surfaces.- Studio spacing/layout governance workflows are implemented under
apps/oshun/webStudio routes.
Acceptance Criteria (OST-00033)#
OST-00033 is complete only when:
- ADR exists at
docs/adr/ADR-0023-oshun-studio-spacing-and-layout-grid.md. - ADR defines options, trade-offs, and selected strategy.
- ADR defines spacing, grid, density, and release validity contracts.
- ADR aligns with
ADR-0007throughADR-0016. - ADR aligns with
docs/releases/v1/design/brand-system.md,docs/releases/v1/design/ergonomics-requirements.md, andlibs/oshun/design-tokens/src/tokens.ts. - ADR explicitly covers Yemaya, Isis, Hathor, Aja, Bellona, and Project Obsidian.
Consequences#
Positive#
- Stable layout rhythm and cross-domain alignment.
- Fewer responsive regressions in dense Studio interfaces.
- Stronger governance and traceability for layout-system changes.
Negative#
- Added governance overhead for layout adjustments.
- Requires token-discipline in all Studio contributions.
Related Decisions#
docs/adr/ADR-0013-oshun-shell-architecture-and-domain-adapters.mddocs/adr/ADR-0014-oshun-web-and-pwa-strategy.mddocs/adr/ADR-0015-deep-linking-and-cross-domain-routing.mddocs/adr/ADR-0016-shared-identity-and-cross-domain-session-model.mddocs/adr/ADR-0017-offline-caching-and-sync-strategy.mddocs/adr/ADR-0018-analytics-taxonomy-and-event-naming.mddocs/adr/ADR-0019-oshun-studio-information-architecture.mddocs/adr/ADR-0020-oshun-studio-design-language-and-visual-identity.mddocs/adr/ADR-0021-oshun-studio-typography-system.mddocs/adr/ADR-0022-oshun-studio-color-system-and-token-governance.md
References#
docs/releases/v1/design/brand-system.mddocs/releases/v1/design/ergonomics-requirements.mddocs/domains/yemaya/features.mddocs/domains/isis/features.mddocs/domains/hathor/features.mddocs/domains/aja/features.mddocs/domains/bellona/features.mdlibs/oshun/design-tokens/src/tokens.tsapps/oshun/web/src/design-system/tokens.tsapps/oshun/web/src/design-system/globals-v2.css