Skip to content

Add typed support for (a few more) gap and multicolumn CSS properties#599

Open
mfonism wants to merge 4 commits into
rtfeldman:masterfrom
mfonism:mfonism/add-support-for-additional-css-properties
Open

Add typed support for (a few more) gap and multicolumn CSS properties#599
mfonism wants to merge 4 commits into
rtfeldman:masterfrom
mfonism:mfonism/add-support-for-additional-css-properties

Conversation

@mfonism

@mfonism mfonism commented Mar 6, 2026

Copy link
Copy Markdown

This is NOT a PR for the phantom-types project

This PR adds typed support for a few CSS properties that come up naturally when building layouts, especially when spacing items in flex/grid containers or working with multicolumn content.

It adds support for the following CSS properties:

  • gap
  • row-gap
  • column-gap
  • column-count
  • column-width
  • column-rule-color
  • column-rule-width
  • column-rule-style

The following related shorthands were intentionally not covered:

  • columns
  • column-rule

A clean typed API for both shorthand forms would require introducing new dedicated value types, as opposed to reusing existing ones loosely.

Potential future additions:

  • word-spacing
  • word-break

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