1.8.0 • Published 7 months ago

@muhammedbilal/layout-css v1.8.0

Weekly downloads
-
License
MIT
Repository
-
Last release
7 months ago

Layout CSS Utilities

A lightweight and customizable utility-first CSS framework for spacing — built with SCSS.
Use intuitive class names like lp-l5, lm-y2, lp-a0 to apply layout padding and margin instantly.


🚀 Installation

npm install @muhammedbilal/layout-css

📦 Usage

In HTML

<link
  rel="stylesheet"
  href="node_modules/@muhammedbilal/layout-css/dist/layout.css"
/>

In SCSS

@import "@muhammedbilal/layout-css/dist/layout.css";

🧱 Class Naming Convention

Each class follows this pattern:

l[p/m]-[a/t/b/l/r/x/y][value]
PrefixMeaning
lpLayout Padding
lmLayout Margin
SuffixApplies to
aAll sides
tTop
bBottom
lLeft
rRight
xLeft and Right
yTop and Bottom

Examples:

ClassResult
.lp-a5padding: 5px
.lp-l2padding-left: 2px
.lm-y4margin-top: 4px; margin-bottom: 4px
.lm-r0margin-right: 0px

🔧 Customization

You can customize the $space-range in scss/_spacing.scss before building:

$space-range: 0, 2, 4, 8, 16, 32;

Then run:

npm run build

📁 Output

The built CSS is available at:

dist/layout.css

You can also generate a minified version if needed.


📃 License

MIT License — free to use and modify.


🤝 Contribute

Feel free to open issues, suggest new utilities, or submit pull requests!

1.8.0

7 months ago

1.7.0

7 months ago

1.5.2

7 months ago

1.5.0

7 months ago

1.3.0

7 months ago

1.1.0

7 months ago

1.0.0

7 months ago