Cssville is a utility-first CSS framework with zero dependencies. Develop faster using classes like dis-flex, cur-pointer, and pad-y-2.
A CSS utility-first framework is a CSS framework that provides pre-built utility classes to style HTML elements. Unlike traditional CSS frameworks, where styles are defined in large blocks or files, utility-first frameworks provide small, reusable classes.
The advantage of utility-first frameworks is that they provide a very efficient way of creating and customizing styles. Because the classes are small and modular, it is easy to create new styles simply by combining and stacking classes together.
This approach also results in smaller CSS files and faster load times, making utility-first frameworks a popular choice for responsive web design and mobile-first development. Each class can be combined and customized to create any desired styling.
In a utility-first framework, each class is designed to target a specific aspect of the style, such as font size, color, margin, or padding. The classes are named according to the property they control, such as fle-dir-row, cur-pointer, mar-x-4, pad-y-2, and so on. These classes can be added directly to HTML elements, without the need for additional CSS styling.
The example below shows some classes in action:

<div className="dis-flex wid-full pos-relative max-wid-sm">
<img src="img/house.webp" className="wid-full max-wid-full bor-rad-4 obj-fit-cover" />
<div className="dis-flex pos-absolute hei-100 wid-full">
<div className="dis-flex fle-dir-column pad-4 wid-full">
<img src="img/star.svg" className="hei-7 wid-7" />
<div className="fle-gro-1"></div>
<div className="dis-flex wid-full">
<img src="img/profile.svg" className="hei-10 wid-10 bac-col-white bor-rad-max" />
<div className="dis-flex jus-con-center pad-lef-3 fle-dir-column fle-gro-1">
<span className="fon-wei-bold col-white">Naomi Rivers</span>
<span className="fon-siz-small col-white opa-07">Available for hire</span>
</div>
<div className="dis-flex ali-ite-flex-end">
<img src="img/bookmark.svg" className="hei-7 wid-7" />
</div>
</div>
</div>
</div>
</div>The same classes can be used with predefined screen-size prefixes. When prefix is used, the style is applied only for specific screen resolution. See the example below for the dis-flex property:
@media screen and (max-width: 1280px) {
.xl-dis-flex {
display: flex;
}
}@media screen and (max-width: 1012px) {
.lg-dis-flex {
display: flex;
}
}@media screen and (max-width: 768px) {
.md-dis-flex {
display: flex;
}
}@media screen and (max-width: 544px) {
.sm-dis-flex {
display: flex;
}
}@media screen and (max-width: 320px) {
.xs-dis-flex {
display: flex;
}
}Utility classes are a specific type of class that is designed to provide a single, focused styling property, such as padding, margin, or font size. Unlike traditional classes, which might be used to define more complex styles, utility classes are very simple and focused on a single aspect of the style.