Skip to content

docs(site): style the sidebar as flat rows, and mark the open page with a band #426

Open

Description

@IanoNjuguna

The problem

The docs sidebar is styled by about 250 lines of !important overrides that force a specific look: 300-weight rows, and an active item that turns its text blue and grows a 3px blue rule while keeping a transparent fill. Two consequences:

  • the open page is marked by a colour change, which reads as a link rather than as a location, and the rule snaps in because only background is transitioned
  • the rules are broad enough that they quietly suppress other parts of the theme. Infima's .menu__caret::before arrow only stayed hidden because one of those rules set background: transparent !important on it, so the whole design depends on a side effect.

What it should be

The sidebar on docs.logos.co, measured against ours, is the same Docusaurus 3.10.2 and the same Infima markup, so the difference is only CSS:

                  ours                            theirs
active            blue text #2555FE, 3px blue     ink text, 2px ink rule,
                  rule, transparent, radius 4px   filled band #DBDDD7, radius 0
weight            300 on links, 600 when active   500 throughout
row               chip floating on white          flat row, band edge to edge
transition        background only, 200ms          background and border-color, 180ms

Location by fill plus rule, not by colour, is the part worth taking. Ours keeps book, so the rule carries Genie Blue and the band is Moon.

Scope

  • rewrite the sidebar block in website/src/css/custom.css against the design tokens instead of literals, so light and dark stop being two separate sets of overrides
  • two knobs for the judgement calls: --sidebar-row-weight (400 default, 500 for their exact weight, since Poppins 500 reads heavier than Public Sans 500) and --sidebar-row-radius (0 default, 4px restores the chip)
  • animate border-color with the background so the rule moves with the fill
  • hide Infima's ::before arrow explicitly rather than as a side effect

Out of scope, noted deliberately

Two rows still truncate ("Why Join Intersect? Complete Me…", "Developer Experience W…") because the sidebar labels are doc titles. That is a sidebar_label frontmatter change per page, not a styling one, and it should be its own PR.

Acceptance: the block shrinks, no !important for colour or spacing, active state is band plus rule in both themes, one chevron per category, and npm run build passes.

Activity

  1. added
    documentation
    enhancement
    on Nov 22, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    documentationenhancement

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions