Skip to content

docs: draw the focus ring as bounda.dev does, 2px of the accent - #218

Merged
benatespina merged 1 commit into
mainfrom
docs/focus-ring
Oct 31, 2026
Merged

benatespina merged 1 commit into
mainfrom
docs/focus-ring

Conversation

@benatespina

@benatespina benatespina commented Oct 31, 2026 •

Copy link
Copy Markdown
Member

What

docs/src/styles/bounda.css gains a :focus-visible rule: a 2px ring of the brand, 3px off the edge, in both modes. A --bounda-accent variable carries the fill ochre (#d9a04a on Basalt, #b07114 on Bone), since Starlight's own accent is the text ochre, darker in Bone.

Why

Starlight sets no focus ring, so the docs showed the browser's default while bounda.dev draws 2px of ochre. DESIGN.md now fixes the ring as a rule (bounda-dev/bounda-website#19); this makes the docs follow it.

Controls that sit in a box (tabs, the mobile table of contents) keep Starlight's inside offset, so the ring stays within them. Checked on the built docs with the keyboard: the search button on Basalt, a sidebar link on Bone.

Starlight sets no focus ring of its own, so the docs showed the browser's default. DESIGN.md
now fixes the ring at 2px of `--accent`, 3px off the edge; this is that ring on Starlight,
with the brand's fill colour in both modes (the darker ochre Starlight's accent carries in
Bone is the one for text). Controls that sit in a box keep Starlight's inside offset.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
@benatespina
benatespina merged commit cf7bd2c into main Oct 31, 2026
5 checks passed
@benatespina
benatespina deleted the docs/focus-ring branch October 31, 2026 08:48
benatespina added a commit that referenced this pull request Oct 31, 2026
Starlight sets no focus ring of its own, so the docs showed the browser's default. DESIGN.md
now fixes the ring at 2px of `--accent`, 3px off the edge; this is that ring on Starlight,
with the brand's fill colour in both modes (the darker ochre Starlight's accent carries in
Bone is the one for text). Controls that sit in a box keep Starlight's inside offset.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant