
Research
5 Malicious Chrome Extensions Enable Session Hijacking in Enterprise HR and ERP Systems
Five coordinated Chrome extensions enable session hijacking and block security controls across enterprise HR and ERP platforms.
css-hooks-basic
Advanced tools
This is a utility library for simplifying the usage of CSS Hooks, providing a basic API for styling components without advanced conditions.
npm install css-hooks-basic
css functionIf you prefer to avoid using advanced conditions (the on field) entirely, you
can convert your global css function to use the basic API provided by this
library:
basic function in your CSS module.css function produced by createHooks.css.// src/css.ts
import { createHooks } from "@css-hooks/react";
import { basic } from "css-hooks-basic";
const { styleSheet, css: cssAdvanced } = createHooks({
// ...configuration...
});
export { styleSheet };
export const css = basic(cssAdvanced);
Now, you can use the basic version of the css function throughout your
project, providing an easier way to define styles.
Alternatively, you can choose to use the basic API on a case-by-case basis. This allows you to mix basic and advanced styling conditions according to your needs.
In a component module, simply import css from your CSS module and the basic
function from css-hooks-basic; and then use them together to style your
component:
// src/easy-button.tsx
import { css } from "./css";
import { basic } from "css-hooks-basic";
export const EasyButton = () => (
<button
style={basic(css)({
color: "black",
"&:enabled": {
"&:hover": {
color: "blue",
},
"&:active": {
color: "red",
},
},
"&:disabled": {
color: "gray",
},
})}
>
Easy
</button>
);
With this approach, you have the flexibility to choose between basic and advanced styling conditions for different components as needed.
Contributions to css-hooks-basic are welcome! If you find any issues or have suggestions for improvements, please open an issue or submit a pull request on the GitHub repository.
css-hooks-basic is licensed under the MIT License. See the LICENSE file for details.
FAQs
A simplified CSS Hooks API for basic use cases
The npm package css-hooks-basic receives a total of 0 weekly downloads. As such, css-hooks-basic popularity was classified as not popular.
We found that css-hooks-basic 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
Five coordinated Chrome extensions enable session hijacking and block security controls across enterprise HR and ERP platforms.

Research
Node.js patched a crash bug where AsyncLocalStorage could cause stack overflows to bypass error handlers and terminate production servers.

Research
/Security News
A malicious Chrome extension steals newly created MEXC API keys, exfiltrates them to Telegram, and enables full account takeover with trading and withdrawal rights.