diff --git a/.changeset/code-line-height-token.md b/.changeset/code-line-height-token.md new file mode 100644 index 00000000..4d7e276b --- /dev/null +++ b/.changeset/code-line-height-token.md @@ -0,0 +1,7 @@ +--- +"@codeatlasdev/ui": minor +--- + +New token `--ca-code-line-height` (20px): an integer px line height for code surfaces. `CodeSnippet`, `.ca-code pre` and a bare Markdown `pre` inside `.ca-prose` use it instead of the unitless 1.6 / 1.7, which rounded to a different pixel height in a text layer and in an overlay (a caret and an active-line highlight drifting apart). The `code` inside a `CodeSnippet` also pins `--ca-font-mono` now: it used the UA's bare `monospace`, resolved per lookup. The docs gain "Code surfaces: integer line-height, one font stack" for apps that build an editor. + +The stylesheet also drops `--ca-action-focus`, a token no component, doc or template ever read, to stay inside its size budget. diff --git a/AGENTS.md b/AGENTS.md index 85652a89..61604033 100644 --- a/AGENTS.md +++ b/AGENTS.md @@ -150,6 +150,8 @@ Reading failures: locators fail with an ARIA snapshot; traces are in `__traces__ 10a. **Cursor**: never write `cursor: pointer` for a clickable element. The reset (`@layer ca.reset`) gives `pointer` to `button`, `a[href]`, `label[for]`, `summary`, `[role=button|tab|option|menuitem*]` and `not-allowed` to `:disabled` / `[aria-disabled=true]`; a custom clickable tile is `