Research
Security News
Malicious npm Packages Inject SSH Backdoors via Typosquatted Libraries
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
A breeze of fresh air when using TailwindCSS.
brise
offers an API that is very similar to styled-components but leverages TailwindCSS (or any other global CSS classnames) instead.
import { tw } from 'brise';
const Headline = tw.h1`
text-3xl
text-blue-500
`;
const UnderlinedHeadline = tw(Headline)`
underline
${props => (props.important ? 'font-bold' : '')}
`;
The styles
helper can be used to create style compositions that can be reused across multiple components but maintain the ability to access properties.
const withImportant = styles`
${props => (props.important ? 'text-bold' : '')}
`;
const Text = tw`
text-base
${withImportant}
`;
const Headline = tw`
text-3xl
underline
${withImportant}
`;
The property
helper can be used to map from properties to styles.
const Headline = tw.h1`
text-blue-600
${property(
'size', // name of the property
{
small: 'text-2xl', // value can be a string
medium: styles`text-4xl`, // or a reusable style
large: props => 'text-6xl', // or a function
},
'medium' // default value
)}
`;
It is possible to use the css
utility from emotion
and probably other CSS-in-JS libraries to include custom CSS.
const Button = tw.button`
py-2 px-4
border border-transparent
rounded
bg-blue-500
text-white
hover:bg-blue-700
${css`
&:hover {
text-decoration: underline;
}
`}
`;
FAQs
A breeze of fresh air when using TailwindCSS.
The npm package brise receives a total of 0 weekly downloads. As such, brise popularity was classified as not popular.
We found that brise 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
Security News
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
Security News
MITRE's 2024 CWE Top 25 highlights critical software vulnerabilities like XSS, SQL Injection, and CSRF, reflecting shifts due to a refined ranking methodology.
Security News
In this segment of the Risky Business podcast, Feross Aboukhadijeh and Patrick Gray discuss the challenges of tracking malware discovered in open source softare.