Vladislav Kravchuk

frequent-styles - Streamlined CSS Classes for Enhanced Styling

Introduction

Dive into the world of streamlined styling with my latest project, "frequent-styles" - a comprehensive package of commonly used CSS classes. As a frontend developer, I've crafted this library to simplify and enhance the styling process, offering a range of versatile and intuitive classes for various design elements.

Project Features

📦 Set of Frequently Used CSS Classes

📥 Installation

Npm

npm i frequent-styles

Yarn

yarn add frequent-styles

📍 Margin and Padding Spacing

Abbreviations:
Values: 5, 10, 15, 20, 25, 30, 35, 40, 45, 50, 75, 100;

Examples:

ClassValue
mr-10 mb-50margin-right: 10px; margin-bottom: 50px;
m-25margin: 25px;
p-50padding: 50px;
pr-35 pl-100padding-right: 35px; padding-left: 100px;

📍 Text Styles

ClassValue
text-centertext-align: center;
text-capitalizetext-transform: capitalize;
text-uppercasetext-transform: uppercase;
text-lowercasetext-transform: lowercase;
text-truncatewhite-space: nowrap; overflow: hidden; text-overflow: ellipsis;
fw-normalfont-weight: normal;
fw-boldfont-weight: bold;

📍 Opacity

ClassValue
opacity-1opacity: 0.1;
opacity-2opacity: 0.2;
opacity-3opacity: 0.3;
opacity-4opacity: 0.4;
opacity-5opacity: 0.5;
opacity-6opacity: 0.6;
opacity-7opacity: 0.7;
opacity-8opacity: 0.8;
opacity-9opacity: 0.9;
opacity-10opacity: 1;

📍 Flex, Positioning, Sizing

ClassValue
h100height: 100%;
w100width: 100%;
d-ibdisplay: inline-block;
d-ifdisplay: inline-flex;
d-flexdisplay: flex;
d-blockdisplay: block;
justify-betweenjustify-content: space-between;
justify-aroundjustify-content: space-around;
justify-centerjustify-content: center;
justify-endjustify-content: flex-end;
align-centeralign-items: center;
align-endalign-items: flex-end;
align-startdisplay: inline-block;
flex-columnflex-direction: column;
flex-rowflex-direction: row;
m-automargin: auto;
ml-automargin-left: auto;
mr-automargin-right: auto;
pos-rposition: relative;
pos-aposition: absolute;

📍 Miscellaneous

ClassValue
cu-pcursor: pointer;

Explore frequent-styles on NPM

Visit the NPM page to install and integrate the frequent-styles package into your projects: frequent-styles on NPM

Links