Skip to content

Conversation

@mdo
Copy link
Member

@mdo mdo commented Oct 20, 2025

Unrelated:

API:

  • Updates the API to allow multiple property keys

Display:

  • Removed print display utilities, and all print logic in the utility API.

Flex & Grid:

  • Moved .grid-cols-* classes to the utility API.
  • Added utilities for grid-auto-flow
  • Added grid and gap docs pages for utilities

Type/Font:

  • Added .font-body utility. This joins the existing .font-monospace.
  • Dropped .display-* typography classes.
  • Added new .text-* utilities that set font-size and line-height in sizes xs6xl. This also updates the font-size .fs-{size} utilities.
  • Added font-size, font-family, font-weight, and line-height pages (splitting out from the old, long-winded text page)

Todos:

  • Fix font-size vs new-font-size Sass maps
  • Double check font/type/text docs
  • Resolve the clamp() experiment to potentially replace RFS

Follow-ups:

  • Switch from an infix to a prefix for responsive and state/pseudo utilities (e.g., hover:opacity-50 and md:d-block)
  • Move from state to pseudo-classes and pseudo-elements
  • Restore print in the API maybe? But leave disabled for display
  • Split utilities to a whole new top-level nav link?

@mdo mdo added this to v6.0.0 Oct 20, 2025
@mdo mdo added the css label Oct 20, 2025
@mdo mdo requested a review from a team as a code owner October 20, 2025 02:17
@github-project-automation github-project-automation bot moved this to Inbox in v6.0.0 Oct 20, 2025
@theodorejb
Copy link

Why remove the print display utilities? It's common for business apps to have certain pages which need to support printing to PDF, and the print display utilities have been very handy to hide or display content as needed when printing.

@mdo
Copy link
Member Author

mdo commented Oct 20, 2025

Why remove the print display utilities? It's common for business apps to have certain pages which need to support printing to PDF, and the print display utilities have been very handy to hide or display content as needed when printing.

Not opposed to bringing back, but it's definitely a less common use case overall. I think at the very least we'd disable having print enabled on display utilities by default.

@theodorejb
Copy link

While less common, it has still been a useful feature to always have available. E.g. I made a library for Bootstrap projects which uses d-print-none to hide certain elements when printing, and if this class isn't always enabled then the library would have to implement it separately in order to rely on it.

@mdo
Copy link
Member Author

mdo commented Oct 20, 2025

While less common, it has still been a useful feature to always have available. E.g. I made a library for Bootstrap projects which uses d-print-none to hide certain elements when printing, and if this class isn't always enabled then the library would have to implement it separately in order to rely on it.

The utility API has always been extensible, so enabling isn't a huge issue unless you're pulling in from CSS only vs source Sass. As long as you're able to modify the map—which is documented—we could keep the ability and just disable it to start.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

Status: Inbox

Development

Successfully merging this pull request may close these issues.

3 participants