Skip to content

Give sections more room with a spacing scale - #62

Merged
alies-dev merged 1 commit into
masterfrom
alies-dev/spacing-polish
Nov 21, 2026
Merged

alies-dev merged 1 commit into
masterfrom
alies-dev/spacing-polish

Conversation

@alies-dev

Copy link
Copy Markdown
Contributor

Context

Sections on the home page ran into each other. There were about 48px between the hero and "Projects reporting to Shepherd", and about 44px between the leaderboard table and "Shepherd is one part of Psalm". The project page had the same problem: the badges sat 2px from the note, and the chart sat close to the "Reports" heading. Gaps were set one by one, so the rhythm wasn't consistent.

Solution

I added a spacing scale (--space-1 … --space-12, 4px to 96px) plus section-level tokens (--section-gap, --heading-gap, --page-top, --page-bottom), and used them across the pages. Major sections are now 80px apart on desktop and 48px on small screens. Headings sit closer to their content than to the section above, so each heading groups with what follows.

Key changes (desktop):

Gap Before After
Hero → "Projects reporting" 48 80
Leaderboard → "Shepherd is one part of Psalm" 44 80
Header → page content 32 48
Project badges → note 2 16
Chart → "Reports" heading 36 80

Only spacing changed: colours, type, markup and JS are untouched. The leaderboard tabs keep identical column widths and panel height, and nothing shifts when switching tabs.

- Add --space-1..12 (4px base) plus --section-gap, --heading-gap and page padding tokens
- Separate hero, leaderboards, features and chart/table sections by 80px (48px on small screens)
- Give headings, tab bar, notes, badges, chart card, pager and footer consistent gaps
- Remove the dead .repo-table margin
@alies-dev alies-dev self-assigned this Nov 21, 2026
@alies-dev
alies-dev merged commit 5c85a1b into master Nov 21, 2026
3 checks passed
@alies-dev
alies-dev deleted the alies-dev/spacing-polish branch November 21, 2026 16:59
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