
Research
/Security News
Laravel Lang Compromised with RCE Backdoor Across 700+ Versions
Laravel Lang packages were compromised with an RCE backdoor across hundreds of versions, exposing cloud, CI/CD, and developer secrets.
@solid-primitives/styles
Advanced tools
Collection of reactive primitives focused on styles.
createRemSize - Create a reactive signal of css rem size in pixels.npm install @solid-primitives/styles
# or
yarn add @solid-primitives/styles
# or
pnpm add @solid-primitives/styles
createRemSizeCreates a reactive signal with value of the current rem size in pixels, and tracks it's changes.
It takes no arguments and returns a number signal.
import { createRemSize } from "@solid-primitives/styles";
const remSize = createRemSize();
console.log(remSize()); // 16
createEffect(() => {
console.log(remSize()); // remSize value will be logged on every change to the root font size
});
useRemSizeThis primitive provides a shared root variant that will reuse signals, HTML elements and the ResizeObserver instance across all dependents that use it.
It's behavior is the same as createRemSize.
import { useRemSize } from "@solid-primitives/styles";
const remSize = useRemSize();
console.log(remSize()); // 16
When using this primitive on the server, it will return a signal with a value of 16 by default. You can override this value by calling the setServerRemSize helper with a new value, before calling createRemSize or useRemSize.
import { setServerRemSize, createRemSize } from "@solid-primitives/styles";
setServerRemSize(10);
const remSize = createRemSize();
console.log(remSize()); // 10 instead of 16 (only on the server!)
TODO
See CHANGELOG.md
FAQs
Collection of reactive primitives focused on styles.
The npm package @solid-primitives/styles receives a total of 85,266 weekly downloads. As such, @solid-primitives/styles popularity was classified as popular.
We found that @solid-primitives/styles demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 3 open source maintainers 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
Laravel Lang packages were compromised with an RCE backdoor across hundreds of versions, exposing cloud, CI/CD, and developer secrets.

Security News
Socket found a malicious postinstall hook across 700+ GitHub repos, including PHP packages on Packagist and Node.js project repositories.

Security News
Vibe coding at scale is reshaping how packages are created, contributed, and selected across the software supply chain