Skip to content

docs: code surfaces guide and --ca-code-line-height token (integer px line-height) #551

Closed

Description

@mvilacad

Atlas app: an editor's caret and active-line highlight drifted apart. The lib ships no editor and no line highlight, but its code surfaces (.ca-code pre 0.8125rem/1.7, CodeSnippet font-size caption * 1.6) have fractional line-heights that make any overlay (active line, line numbers, caret) drift.

Plan: token --ca-code-line-height (integer px) used by CodeSnippet and .ca-code/prose pre; guide 'code surfaces: integer line-height, one font stack'; test that the computed line-height is an integer px and the token is applied.

Activity

  1. added
    enhancementNew feature or request
    in progressSomeone is working on it (see the linked draft PR)
    on Oct 25, 2026
  2. self-assigned this
    on Oct 25, 2026
  3. mvilacad commented on Oct 25, 2026

    @mvilacad
    ContributorAuthor

    Working on this in #554 (draft). Branch feat/551-docs-code-surfaces-guide-and-ca. Regression test first, then the fix.

  4. removed
    in progressSomeone is working on it (see the linked draft PR)
    on Oct 25, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions