Skip to content

Yumma CSS 3.2

Yumma CSS 3.2.0

Today, we are releasing Yumma CSS 3.2. This update introduces box model, border radius, and color utilities, along with size values from the breakpoint system.

You may also want to take a look at some of the release notes but, anyway, these are the most noticeable shifts:

This is an incremental update that may contain breaking changes. Minor releases follow semantic versioning conventions. In other words, a migration is necessary to continue using the framework.


Even more new utilities

New values have just arrived for the box model and border radius utilities.

New Box Model utilities

Use px to set the height and width of an element to 1px. Applies to max and min utilities as well.

Terminal window
<div class="d-px ..."></div>
<div class="h-px ..."></div>
<div class="w-px ..."></div>

Use px to set the padding of an element to 1px. Applies to all logical and physical margin and padding utilities.

Terminal window
<div class="m-px"></div>
<div class="p-px"></div>

We’re also adding viewport-percentage length units utilities:

  • Use the *-dvw unit to apply 100dvw to an element.
  • Use the *-vh unit to apply 100vh to an element.
  • Use the *-vw unit to apply 100vw to an element.

Use the dvw unit to represent viewport-percentage length unit based on the large viewport size.

Terminal window
<div class="d-dvw ..."></div>
<div class="h-vh ..."></div>
<div class="w-vw ..."></div>

New size utility values

Using the 0-100 range scale has its limitations with utilities like Dimension, Height, and Width. That’s why we’re adding size value options directly from our breakpoint system, with no special rules.

ClassValue
*-sm40rem
*-md48rem
*-lg48rem
*-xl48rem
*-xxl48rem

New Border Radius utilities

Now you can use the 9 in the rad-* utilities. This will apply a border-radius of 9999px to an element for perfectly rounded corners.

<button class="bg-indigo rad-9 b-0 tc-white c-p fw-600 py-1 px-5 h:bg-indigo-8">Subscribe</button>

Renaming lead to slate

We’re renaming the lead color utility to slate. This is a more accurate representation of the color and its intended use.

You can easily find and replace all instances of -lead with -slate with your editor’s find and replace feature.

index.html
<div class="bg-lead ..."></div>
<div class="bg-slate ..."></div>

New currentColor utilities

All color utilities now support the currentColor value. This is super useful for creating themeable UI components.

Use *-current to apply the currentColor value to a utility. This will make the child element color inherit the color of its parent element.

<div class="tc-blue">
<svg class="h-10 w-10 f-current" viewBox="0 0 16 16" xmlns="http://www.w3.org/2000/svg">
<circle cx="8" cy="8" r="8" />
</svg>
</div>

CLI improvements

In this release we made some small messaging improvements to the CLI. You can now expect different errors related to the init and build commands.

If you’re still getting issues after upgrading, please open an issue and we’ll be happy to help.


Upgrade

You can upgrade your projects by getting the latest version of yummacss from npm:

Terminal
pnpm add yummacss@latest