
Research
2025 Report: Destructive Malware in Open Source Packages
Destructive malware is rising across open source registries, using delays and kill switches to wipe code, break builds, and disrupt CI/CD.
css-fx-layout
Advanced tools
This is a lightweight and modular SCSS flexbox library. It is inspired by Angular's Flex-Layout and can replace the most popular functions of the (by now deprecated) Angular library.
This library gives you the option between using CSS classes or data-attributes. Both options give you the same features but the CSS classes can be more verbose when you want a more complex layout.
Please refer to the documentation on https://philmtd.github.io/css-fx-layout for a full list of all available selectors and features.
Using the data attributes is the easiest way to use this library and easier to migrate to from Angular Flex-Layout:
For example css-fx-layout provides attributes like the following, which can be configured through the values passed to them:
data-layout and data-layout-aligndata-layout-gapdata-hide-... and data-show-...data-flexUsing the CSS classes is more verbose and the more "CSS-y" way of styling your HTML:
For example css-fx-layout provides classes with naming patterns like:
fx-layout-... and fx-align-...fx-gap-...show-... and hide-...fx-flex-...The library provides a responsive API which allows to create different layouts for different screen sizes using known breakpoints
like xs, sm, md, lg, xl and including lt- and gt- variations of them. Please check out the documentation
for details on how to use it.
Add the library to your project's package.json:
npm i -s css-fx-layout
Then follow the Getting Started guide in the documentation.
These are some basic examples how to use css-fx-layout. The file ./test/index.html contains more examples.
This is the simplest example. It will make the div a flex container and align the three spans in a row:
| CSS Classes | Data Attributes |
|---|---|
|
|
The resulting layout:
An advanced example that aligns the items in reverse order with a gap of four pixels and vertically centered:
| CSS Classes | Data Attributes |
|---|---|
|
|
The resulting layout:
Vertically and horizontally center an element in its parent.
| CSS Classes | Data Attributes |
|---|---|
|
|
The resulting layout:
This will hide the first span on sm sized screens and show the second span only on lg sized screens. The third span is always visible.
| CSS Classes | Data Attributes |
|---|---|
|
|
Initially I created this library because I liked the convenient syntax of Angular Flex-Layout and wanted to use it in non-Angular projects and without JavaScript.
By now Angular Flex-Layout has been deprecated and this library can be a replacement for most of the popular parts.
FAQs
A lightweight SCSS flexbox library inspired by Angular Flex-Layout.
The npm package css-fx-layout receives a total of 236 weekly downloads. As such, css-fx-layout popularity was classified as not popular.
We found that css-fx-layout demonstrated a not healthy version release cadence and project activity because the last version was released 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
Destructive malware is rising across open source registries, using delays and kill switches to wipe code, break builds, and disrupt CI/CD.

Security News
Socket CTO Ahmad Nassri shares practical AI coding techniques, tools, and team workflows, plus what still feels noisy and why shipping remains human-led.

Research
/Security News
A five-month operation turned 27 npm packages into durable hosting for browser-run lures that mimic document-sharing portals and Microsoft sign-in, targeting 25 organizations across manufacturing, industrial automation, plastics, and healthcare for credential theft.