Blog/March 21, 2024

Yumma CSS 1.2

We've been planning to revamp the color palette of Yumma CSS for a while, happy to announce the new version Yumma CSS v1.2.0! It has a reworked color palette, new variants for dimension utilities, line-height utilities, and more.

Yumma CSS 1.2

This update shouldn't be difficult to upgrade, but you may want to check out the release notes.


All-new utilities

We added dozens of new utilities to Yumma CSS v1.2.0. Here are a few of the most notable ones:

Box Model

It's been a while since we've seen new utilities for height, width, and dimension. Well, here it is - fit-content!

ClassStyle
h-fcheight: fit-content;
w-fcwidth: fit-content;
max-h-fcmax-height: fit-content;
min-h-fcmin-height: fit-content;
max-w-*max-width: fit-content;
min-w-*min-width: fit-content;
dim-1height: 0.25rem; width: 0.25rem;
max-dim-1max-height: 0.25rem; max-width: 0.25rem;
min-dim-1min-height: 0.25rem; min-width: 0.25rem;

Flex

ClassStyle
f-autoflex: auto;
f-fullflex: 100%;
f-halfflex: 50%;

Line Height

ClassStyle
lh-1line-height: 1;
lh-2line-height: 1.25;
lh-3line-height: 1.375;
lh-4line-height: 1.5;
lh-5line-height: 1.625;
lh-6line-height: 2;

...and more

You can check the release notes for the full list of new utilities.

New colors

In the past, the colors weren't as rich as we wanted them to be, which was a bit of a limitation because colors with less contrast can go unnoticed in many scenarios.

6
5
4
3
2
1
Base
1
2
3
4
5
6

Red

Orange

Yellow

Green

Teal

Cyan

Blue

Indigo

Violet

Pink

Gray

Lead

New transparent color variant

Oh, another thing, though it's not a technically color, we added support for transparent in all color utilities.

index.html
<div class="bg-transparent">Transparent</div>

Dimension media query support

We added media query support for the Dimension utilities.

index.html
<div class="d-4 md:d-16"></div>

Upgrade

You can get the latest version of Yumma CSS from npm:

Terminal window
pnpm up yummacss