Research
Security News
Malicious npm Packages Inject SSH Backdoors via Typosquatted Libraries
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
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@1.0.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
, content-full
:
min(100%, ...)
. Adjusts to different viewport sizes.
content-1
: min(100%, 366px)
.content-2
: min(100%, 692px)
.content-3
: min(100%, 980px)
.content-4
: min(100%, 1600px)
.content-full
: 100%
.container
: Sets responsive inline size with breakpoints.
:where(.container) {
--_container: 366px;
inline-size: min(100%, var(--_container));
/* --lg-only */
@media (768px <= width <= 1024px) {
--_container: 692px;
}
/* --lg-n-above */
@media (width >= 1024px) {
--_container: 980px;
}
}
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
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.
Research
Security News
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
Security News
MITRE's 2024 CWE Top 25 highlights critical software vulnerabilities like XSS, SQL Injection, and CSRF, reflecting shifts due to a refined ranking methodology.
Security News
In this segment of the Risky Business podcast, Feross Aboukhadijeh and Patrick Gray discuss the challenges of tracking malware discovered in open source softare.