Skip to content

Add bg-{position,size}-* utilities #17432

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
Mar 28, 2025
Merged

Conversation

thecrypticace
Copy link
Contributor

This PR adds bg-{position,size}-* utilities that support arbitrary values. This exist as the new preferred version of something like this:

bg-[120px_120px]

Is it size or position (hint: it's the 2nd one).

To override it you'd have to provide a data type:

bg-[size:120px_120px]

Now you can be more explicit and have better intellisense by writing these:

bg-position-[120px_120px]
bg-size-[120px_120px]

@thecrypticace thecrypticace requested a review from a team as a code owner March 28, 2025 16:04
@thecrypticace thecrypticace enabled auto-merge (squash) March 28, 2025 16:38
@thecrypticace thecrypticace merged commit 3412a96 into main Mar 28, 2025
6 checks passed
@thecrypticace thecrypticace deleted the feat/bg-position-size-arbitrary branch March 28, 2025 16:40
philipp-spiess pushed a commit that referenced this pull request Mar 28, 2025
This PR adds `bg-{position,size}-*` utilities that support arbitrary
values. This exist as the new preferred version of something like this:

```
bg-[120px_120px]
```

Is it size or position (hint: it's the 2nd one).

To override it you'd have to provide a data type:
```
bg-[size:120px_120px]
```


Now you can be more explicit and have better intellisense by writing
these:
```
bg-position-[120px_120px]
bg-size-[120px_120px]
```
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