Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 9 additions & 3 deletions STANDARDS.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,13 @@ The architecture pages that apply, in the architecture repository:
- `architecture/principles/agent-separation.md`: the agent area in `.agent/`, the task layout in
`mise-tasks/` and `.agent/mise-tasks/`, the agent profile in `mise.agent.toml`, and
`MISE_ENV=agent` in the Claude settings' `env`.
- `architecture/standards/web-elemental/principles/stable-layout.md`: nothing shifts layout as data
arrives, and a value, such as a size, a clock, or a media type, breaks only between its segments.
- `architecture/standards/web-elemental/principles/app-keys.md`: no component binds a key; only the
app binds keys.
- `architecture/standards/web-elemental/principles/dialog-focus.md`: `sl-drawer` opens on its
heading, and `sl-settings` focuses its checked radio unless its dialog marks something
`autofocus`.

## Design

Expand All @@ -28,8 +35,8 @@ The architecture pages that apply, in the architecture repository:
themes give them.
- A component is finished in every state it can show (empty, loading, streaming, error, long
content, narrow width) and in every profile, light and dark, regular and compact.
- Focus is always visible, and nothing shifts layout as data arrives. Motion is brief, or a quiet
loop that signals ongoing work and ends with it; all of it honours reduced motion.
- Focus is always visible. Motion is brief, or a quiet loop that signals ongoing work and ends with
it; all of it honours reduced motion.
- A component sizes to its content in any parent, a shrink-to-fit one too: no container query or
containment on the host, and none that sets the component's width. An inner element may query
the width the component already has.
Expand All @@ -52,7 +59,6 @@ The architecture pages that apply, in the architecture repository:

- A component takes its data as its own properties, emits events, and imports no SDK or domain
code; wiring lives in the app (`architecture/principles/downward-dependencies.md`).
- No component binds a key; only the app binds keys.

## Code

Expand Down