
Security News
The Next Open Source Security Race: Triage at Machine Speed
Claude Opus 4.6 has uncovered more than 500 open source vulnerabilities, raising new considerations for disclosure, triage, and patching at scale.
@css-hooks/solid
Advanced tools
Hooks add CSS features to native inline styles, enabling you to apply styles
conditionally based on pseudo-classes, custom selectors, media queries, and
more—all without leaving the style prop. By exploiting the hidden
programmability of CSS Variables, CSS Hooks delivers a flexible CSS-in-JS
experience without runtime style injection or build steps.
<button
style={pipe(
{
background: "#004982",
color: "#eeeff0",
},
on("&:hover", {
background: "#1b659c",
}),
on("&:active", {
background: "#9f3131",
}),
)}
>
Save changes
</button>
<label>
<input type="checkbox" checked />
<span
style={pipe(
{},
on(":checked + &", {
textDecoration: "line-through",
}),
)}
>
Simplify CSS architecture
</span>
</label>
<>
<span
style={pipe(
{},
on(not("@container (width < 400px)"), {
display: "none",
}),
)}
>
sm
</span>
<span
style={pipe(
{},
on("@container (width < 400px)", {
display: "none",
}),
)}
>
lg
</span>
</>
React | ![]() Preact | ![]() Solid | ![]() Qwik |
|---|---|---|---|
![]() Chrome | ![]() Edge | ![]() Safari | ![]() Firefox | ![]() Opera |
|---|---|---|---|---|
49+ | 16+ | 10+ | 31+ | 36+ |
Please visit css-hooks.com to get started.
Contributions are welcome. Please see the contributing guidelines for more information.
CSS Hooks is offered under the MIT license.
FAQs
CSS Hooks for Solid
The npm package @css-hooks/solid receives a total of 651 weekly downloads. As such, @css-hooks/solid popularity was classified as not popular.
We found that @css-hooks/solid 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
Claude Opus 4.6 has uncovered more than 500 open source vulnerabilities, raising new considerations for disclosure, triage, and patching at scale.

Research
/Security News
Malicious dYdX client packages were published to npm and PyPI after a maintainer compromise, enabling wallet credential theft and remote code execution.

Security News
gem.coop is testing registry-level dependency cooldowns to limit exposure during the brief window when malicious gems are most likely to spread.