Skip to content

Add + repurpose existing CSS utilities - #1079

Merged
tristen merged 10 commits into
sand/unofrom
sand/uno-utilities
Oct 22, 2026
Merged

tristen merged 10 commits into
sand/unofrom
sand/uno-utilities

Conversation

@tristen

@tristen tristen commented Oct 5, 2026 •

Copy link
Copy Markdown
Member

New

  • gap, gapx, gapy on the padding scale
  • aspect-ratio and object-fit
  • flex--space-around-main and flex--space-evenly-main
  • rotate, scale
  • animation-shimmer: a loading sweep that works on any background color except white
  • visible-on-parent-hover: hides an element until its parent is hovered or contains keyboard focus
  • bg-canvas and bg-canvas--dark: a checkerboard fill for previewing transparency

Updated

  • grid is a 12-column CSS Grid, and a col without a width spans the full row
  • w-N/12 sets the column span and ml-N/12 the start column
  • grid--gut{n} uses column-gap instead of negative margins and col padding
  • [breaking] removes col--auto; content-sized columns move to flex
  • [breaking] left/right margin classes on a grid col are reset, except the ml-N/12 offset
  • [breaking] txt-break-word uses overflow-wrap: anywhere, so words break only when they would
    overflow, instead of word-break: break-all
  • Fixes media variant order so -mm, -ml and -mxl rules follow breakpoint order and larger
    breakpoints win

tristen and others added 7 commits October 5, 2026 11:55
New CSS on top of the UnoCSS port (sand/uno):

- gap, gapx, gapy on the padding scale
- gridbox (CSS Grid) and its modifiers, track counts and child spans
- aspect-ratio and object-fit
- flex--space-around-main and flex--space-evenly-main
- rotate, scale and translate, plus dynamic rules for off-scale values
- dynamic fractions for w-N/M and h-viewport/hmax-viewport-N/M

Also adds media variants for the new classes, docs, layout-scale tables,
and an updated JIT example that uses them.

This reverts commit 2014f1a.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01BUG94ZjU1irRPAYaWcVBoX
@tristen tristen changed the title Add gap, gridbox, aspect-ratio, object-fit and transform utilities Add new and repurposes existing CSS utilities Oct 19, 2026
@tristen tristen changed the title Add new and repurposes existing CSS utilities Add + repurpose existing CSS utilities Oct 19, 2026
@tristen
tristen marked this pull request as ready for review October 19, 2026 19:40
@tristen
tristen requested a review from a team as a code owner October 19, 2026 19:40

@jcary741 jcary741 left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ah, the classic problem of how to update grid systems. Bootstrap and MUI have both had their fair share of code churn around this.

Looks good through the testing I did! Definitely a big change!

@tristen
tristen merged commit d35a6d9 into sand/uno Oct 22, 2026
2 checks passed
@tristen
tristen deleted the sand/uno-utilities branch October 22, 2026 17:28
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