
Security News
/Research
Wallet-Draining npm Package Impersonates Nodemailer to Hijack Crypto Transactions
Malicious npm package impersonates Nodemailer and drains wallets by hijacking crypto transactions across multiple blockchains.
@amendable/colors-polished
Advanced tools
This is a drop-in replacement of [@amendable/colors](https://github.com/amendable/colors) that also adds support for [polished](https://polished.js.org) color transforms. You can now write `primary-darken10` and it will just work.
This is a drop-in replacement of @amendable/colors that also adds support for polished color transforms. You can now write primary-darken10
and it will just work.
All polished values that go from 0 to 1 in this resolver syntax goes from 0 to 100. So if you want to transform with darken(0.5, 'red')
you have to write red-darken50
.
import { render } from 'react-dom'
import Box, { AmendableProvider } from '@amendable/core'
import colorsPolished from '@amendable/colors-polished'
import inlineStyles from '@amendable/inline-styles'
render(
<AmendableProvider
resolvers={[
colorsPolished({ colors: { primary: '#0055ff', red: '#F5BCCF' } }),
inlineStyles(),
]}
>
<Box color='primary-darken10' backgroundColor='red'>
Primary color, darkened by 10 percent
</Box>
</AmendableProvider>
)
Note
You can both create your own color names or redefine existing CSS colors (like
red
,blue
, etc.)
The same props that @amendable/colors support.
adjust-hue
complement
darken
desaturate
grayscale
invert
lighten
opacify
saturate
set-hue
set-lightness
set-saturation
shade
tint
transparentize
This resolver also supports transform chaining:
// you can even write this if you'd like:
color='primary-opacify10-darken50-invert'
FAQs
This is a drop-in replacement of [@amendable/colors](https://github.com/amendable/colors) that also adds support for [polished](https://polished.js.org) color transforms. You can now write `primary-darken10` and it will just work.
We found that @amendable/colors-polished demonstrated a not healthy version release cadence and project activity because the last version was released 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.
Security News
/Research
Malicious npm package impersonates Nodemailer and drains wallets by hijacking crypto transactions across multiple blockchains.
Security News
This episode explores the hard problem of reachability analysis, from static analysis limits to handling dynamic languages and massive dependency trees.
Security News
/Research
Malicious Nx npm versions stole secrets and wallet info using AI CLI tools; Socket’s AI scanner detected the supply chain attack and flagged the malware.