Skip to content

Yumma CSS 2.1

Yumma CSS

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.

Play

Cursor Utilities - What's new in Yumma CSS v2.1?

Borders & Outlines — What's new in Yumma CSS v2.1?

You might also want to check out the release notes. Anyway, these are the most noticeable changes:

This is an incremental update that may contain bug fixes. Minor releases follow semantic versioning conventions. In other words, this should be an easy update for you.


All-new utilities

In this new update, We’ve made a few changes to the utilities in the Yumma CSS Library. You can now have more control over the layout and add more properties to a certain utility class.

Align Content

New baseline property for ac-* utility.

Class Properties

ac-b

align-content: baseline;

Align Items

New baseline property for ai-* utility.

Class Properties

ai-b

align-items: baseline;

Cursor

We’ve also added several new variants for the Cursor (c-*) utility classes.

Class Properties

c-cr

col-resize

c-d

default

c-ner

ne-resize

c-neswr

nesw-resize

c-none

none

c-nwr

nw-resize

c-nwser

nwse-resize

c-pr

progress

c-rs

row-resize

c-sr

s-resize

c-ser

se-resize

c-swr

sw-resize

c-wr

w-resize

c-zi

zoom-in

c-zo

zoom-out

Border Radius

We’ve tweaked the base value for Border radius utility classes to give you more precise options and better overall layout control.

In this context, the base value is 0.25rem.

Class Properties

rad-0

border-radius: 0rem;

rad-1

border-radius: 0.25rem;

rad-2

border-radius: 0.5rem;

rad-3

border-radius: 0.75rem;

rad-4

border-radius: 1rem;

rad-5

border-radius: 1.25rem;

rad-6

border-radius: 1.5rem;

rad-7

border-radius: 1.75rem;

rad-8

border-radius: 2rem;

rad-full

border-radius: 100%;

rad-half

border-radius: 50%;

Flex

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

Class Properties

f-1

flex: 1 1 0%;

f-2

flex: 2 2 0%;

f-3

flex: 3 3 0%;

f-4

flex: 4 4 0%;

f-5

flex: 5 5 0%;

f-6

flex: 6 6 0%;

f-7

flex: 7 7 0%;

f-8

flex: 8 8 0%;

f-auto

flex: 1 1 auto;

f-none

flex: none;

Border Width

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

Class Properties

b-0

border-width: 0px;

b-1

border-width: 1px;

b-2

border-width: 2px;

b-3

border-width: 3px;

b-4

border-width: 4px;

b-5

border-width: 5px;

b-6

border-width: 6px;

b-7

border-width: 7px;

b-8

border-width: 8px;

Outline Offset

In this context, the base value is 0.25rem.

Class Properties

oo-0

outline-offset: 0px;

oo-1

outline-offset: 1px;

oo-2

outline-offset: 2px;

oo-3

outline-offset: 3px;

oo-4

outline-offset: 4px;

Outline Width

In this context, the base value is 0.25rem.

Class Properties

ow-0

outline-width: 0px;

ow-1

outline-width: 1px;

ow-2

outline-width: 2px;

ow-3

outline-width: 3px;

ow-4

outline-width: 4px;

Base Styles

New cursor: pointer default rule to <button> element.

_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

Finally, We’ve updated the font size utilities and changed the base value. We’ve also added a base utility: fs-b, and a fs-9xl variant.

In this context, the base value is 0.75rem.

Class Properties

fs-xs

font-size: 0.75rem;

fs-b

font-size: 1rem;

fs-sm

font-size: 1.5rem;

fs-md

font-size: 2.25rem;

fs-lg

font-size: 3rem;

fs-xl

font-size: 3.75rem;

fs-xxl

font-size: 4.5rem;

fs-3xl

font-size: 5.25rem;

fs-6xl

font-size: 6rem;

fs-9xl

font-size: 6.75rem;

Upgrade

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

Terminal window
npm install yummacss@latest

Community

Join the Yumma CSS community! Share your experiences and help Yumma CSS grow and be the best it can be.