Blog/October 11, 2024

Yumma CSS 2.1

We've got another new one coming your way! This new version is going to give you a lot more control over Border, Outline, and other utilities. It'll also improve the default rules in the base styles, along with a few other things.

Yumma CSS 2.1

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


All-new utilities

We're adding a few more utilities to Yumma CSS v2.1.0. Here are a few of the most notable ones:

Align Content

ClassStyle
ac-balign-content: baseline;

Align Items

ClassStyle
ai-balign-items: baseline;

Cursor

ClassStyle
c-crcol-resize
c-ddefault
c-nerne-resize
c-neswrnesw-resize
c-nonenone
c-nwrnw-resize
c-nwsernwse-resize
c-prprogress
c-rsrow-resize
c-srs-resize
c-serse-resize
c-swrsw-resize
c-wrw-resize
c-zizoom-in
c-zozoom-out

Border Radius

In this context, the base value is 0.25rem.

ClassStyle
rad-0border-radius: 0rem;
rad-1border-radius: 0.25rem;
rad-2border-radius: 0.5rem;
rad-3border-radius: 0.75rem;
rad-4border-radius: 1rem;
rad-5border-radius: 1.25rem;
rad-6border-radius: 1.5rem;
rad-7border-radius: 1.75rem;
rad-8border-radius: 2rem;
rad-fullborder-radius: 100%;
rad-halfborder-radius: 50%;

Flex

In this context, the f-1 for example is a shorthand to flex: 1 1 0%;

ClassStyle
f-1flex: 1 1 0%;
f-2flex: 2 2 0%;
f-3flex: 3 3 0%;
f-4flex: 4 4 0%;
f-5flex: 5 5 0%;
f-6flex: 6 6 0%;
f-7flex: 7 7 0%;
f-8flex: 8 8 0%;
f-autoflex: 1 1 auto;
f-noneflex: none;

Border Width

In this context, the sequence is always constant, starting from 1px to 8px.

ClassStyle
b-0border-width: 0px;
b-1border-width: 1px;
b-2border-width: 2px;
b-3border-width: 3px;
b-4border-width: 4px;
b-5border-width: 5px;
b-6border-width: 6px;
b-7border-width: 7px;
b-8border-width: 8px;

Outline Offset

In this context, the base value is 0.25rem.

ClassStyle
oo-0outline-offset: 0px;
oo-1outline-offset: 1px;
oo-2outline-offset: 2px;
oo-3outline-offset: 3px;
oo-4outline-offset: 4px;

Outline Width

In this context, the base value is 0.25rem.

ClassStyle
ow-0outline-width: 0px;
ow-1outline-width: 1px;
ow-2outline-width: 2px;
ow-3outline-width: 3px;
ow-4outline-width: 4px;

Base styles

So buttons can act more like buttons.

_base.scss
button {
cursor: pointer;
}

New font-size: inherit and font-weight: inherit default rules.

_base.scss
h1,
h2,
h3,
h4,
h5,
h6,
p {
font-size: inherit;
font-weight: inherit;
overflow-wrap: break-word;
}

Font Size

We added a base utility: fs-b, and a fs-9xl utility variant.


Upgrade

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

Terminal window
pnpm up yummacss