
Research
Two Malicious Rust Crates Impersonate Popular Logger to Steal Wallet Keys
Socket uncovers malicious Rust crates impersonating fast_log to steal Solana and Ethereum wallet keys from source code.
@ptb/style
Advanced tools
@ptb/style is a CSS compiler with a powerful, intuitive API that makes authoring CSS faster and easier.
Let’s imagine the perfect styling system. Styling should be easy, predictable, and maintainable. All the features of CSS should be usable: media queries, any & all selectors, animations, and custom properties. Modifying styles should be effortless and without side effects. It should be simple enough for a novice developer and powerful enough for the needs of an experienced team. Re-using styles should be uncomplicated or better yet, automatic. Minimized CSS output should be automatically (or easily) added to our workflow and compatible with all our current tools, whatever they may be.
The core of @ptb/style
is a single function named css
, that parses JavaScript objects containing CSS styles, applies them to the current web page, and returns the class names.
Declare the styles you want and that’s it.
css
function accepts styles, selectors, media queries, and shortcuts.$
-prefixed names and re-use them anywhere else.Add @ptb/style
to your project:
npm install @ptb/style # or: yarn add @ptb/style
Import the css
function and use with the className
prop:
import { css } from "@ptb/style"
export default function ({ children }) {
return (
<div
className={css({
display: "flex",
textAlign: "center"
})}
>
{children}
</div>
)
}
Check out the demo and the documentation for live examples.
Distributed under the Apache License. See LICENSE
for more information.
FAQs
CSS compiler with a powerful, intuitive API that makes authoring CSS faster and easier.
The npm package @ptb/style receives a total of 0 weekly downloads. As such, @ptb/style popularity was classified as not popular.
We found that @ptb/style 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
Socket uncovers malicious Rust crates impersonating fast_log to steal Solana and Ethereum wallet keys from source code.
Research
A malicious package uses a QR code as steganography in an innovative technique.
Research
/Security News
Socket identified 80 fake candidates targeting engineering roles, including suspected North Korean operators, exposing the new reality of hiring as a security function.