Skip to content

feat: add breadcrumb & meter components, and expanded utilities#151

Closed
d0gra wants to merge 3 commits intoknadh:masterfrom
d0gra:feat/add-components
Closed

feat: add breadcrumb & meter components, and expanded utilities#151
d0gra wants to merge 3 commits intoknadh:masterfrom
d0gra:feat/add-components

Conversation

@d0gra
Copy link
Copy Markdown

@d0gra d0gra commented Mar 27, 2026

feat: add breadcrumb & meter components, and expanded utilities

Hi! This PR adds several missing components and utilities to the library, following the existing minimal, semantic, and class-free philosophy.

Summary of Changes

  • New Breadcrumb Component: Uses a semantic nav structure (no extra classes required) based on aria-label="Breadcrumb".
  • New Meter Component: Cross-browser styled <meter> element using the library's design tokens (--success, --warning, --danger).
  • Expanded Utilities:
    • Added .sr-only (accessibility), .truncate (text-overflow), and .border.
    • Added .rounded and .rounded-full border-radius helpers.
    • Added background helpers (.bg-secondary, .bg-faint).
    • Added a full padding scale (.p-0 through .p-6).
    • Added basic print styles (.no-print, background normalization).
  • Grid Layout: Introduced a tablet breakpoint at 1024px for better responsive control.
  • Documentation: Updated utilities.md and breadcrumb.md to reflect the new additions.

Design/Code Style

  • All CSS follows the project's signature compact one-liner style.
  • Components were designed to be "zero-class" where possible, relying on semantic HTML.
  • Rebuilt with make dist and verified across platforms.

Everything was tested in the latest version to ensure zero regression for existing layouts.

root added 3 commits March 27, 2026 21:54
- Adds a semantic breadcrumb component (no classes needed).
- Adds cross-browser styled <meter> element.
- Expands utilities (sr-only, truncate, rounded, print styles).
- Adds a tablet breakpoint to the grid (1024px).
- Tidies up docs and simplifies breadcrumb markup.
@knadh
Copy link
Copy Markdown
Owner

knadh commented Apr 2, 2026

This is a bunch of random changes, which don't make sense to me, unfortunately.

@knadh knadh closed this Apr 2, 2026
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.

2 participants