Security News
Weekly Downloads Now Available in npm Package Search Results
Socket's package search now displays weekly downloads for npm packages, helping developers quickly assess popularity and make more informed decisions.
layout-craft
Advanced tools
**Layout Craft** is a collection of opinionated CSS utility classes designed to accelerate the declaration of your initial layout state. These utilities provide a quick start for your projects, allowing you to achieve a solid foundation with minimal effor
Layout Craft is a collection of opinionated CSS utility classes designed to accelerate the declaration of your initial layout state. These utilities provide a quick start for your projects, allowing you to achieve a solid foundation with minimal effort.
Install Layout Craft using NPM:
npm i layout-craft
Add the following import statement to your global stylesheet:
@import 'layout-craft/utilities.css';
Alternatively, you can use the CDN to include Layout Craft directly in your project:
@import 'https://www.unpkg.com/layout-craft@0.1.1/dist/utilities.css';
Efficiency with Utilities:
Markup-Friendly Approach:
Where() for a Hassle-Free Experience:
:where()
selector, eliminating the need for unnecessary battles. They simply support your layout goals.block
:
Alignment:
block-start-start
, block-start-center
, block-start-end
, ...
inline
:
Alignment:
inline-start-start
, inline-start-center
, inline-start-end
, ...
inline-wrap
:
space-between
:
justify-content: space-between
to create consistent space between items.space-between-block
:
align-content: space-between
for space control in block containers.Note: Layout Craft exclusively supports justify-content: space-between
and align-content: space-between
for controlling space. Other values such as start
, end
, and center
are intentionally excluded to maintain consistency.
gap-1
, gap-2
, gap-3
, gap-4
:
0.5rem
, 1rem
, 1.5rem
, 2rem
) between grid or flex items.content-1
, content-2
, content-3
, content-4
:
min(100%, ...)
. Adjusts to different viewport sizes.
content-1
: min(100%, 370px)
.content-2
: min(100%, 620px)
.content-3
: min(100%, 1230px)
.content-4
: min(100%, 1600px)
.Explore how these utilities work and how to override them in this demo.
Your feedback and contributions are highly valued.
Happy crafting!
FAQs
**Layout Craft** is a collection of opinionated CSS utility classes designed to accelerate the declaration of your initial layout state. These utilities provide a quick start for your projects, allowing you to achieve a solid foundation with minimal effor
The npm package layout-craft receives a total of 423 weekly downloads. As such, layout-craft popularity was classified as not popular.
We found that layout-craft demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Socket's package search now displays weekly downloads for npm packages, helping developers quickly assess popularity and make more informed decisions.
Security News
A Stanford study reveals 9.5% of engineers contribute almost nothing, costing tech $90B annually, with remote work fueling the rise of "ghost engineers."
Research
Security News
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.